Re: arch_set_user_pkey_access only works on the current task_struct

From: Dave Hansen
Date: Mon Jun 07 2021 - 13:52:24 EST


On 6/5/21 6:10 AM, Jiashuo Liang wrote:
> I am learning the kernel implementation of the x86 PKU feature. I find the
> arch_set_user_pkey_access function in arch/x86/kernel/fpu/xstate.c does not
> use its first parameter. So it is perhaps a bug?

I wouldn't really call it a bug. But, yes, it is something we should
clean up.