Re: [PATCH] x86/fault: Fix wrong signal when vsyscall fails with pkey

From: Dave Hansen
Date: Thu Jul 29 2021 - 10:09:47 EST


On 7/28/21 11:24 PM, Jiashuo Liang wrote:
> I agree that using ARCH_DEFAULT_PKEY is better. I think I am supposed to
> send a patch v2 for the update?

Yes, please.

> By the way, the magic pkey number 0 also appears when bad_area_nosemaphore
> calls __bad_area_nosemaphore and bad_area calls __bad_area. Do they need to
> be changed to ARCH_DEFAULT_PKEY as well?

Yes, it would be best to change those as well. Ideally in a separate patch.