Re: [PATCH 08/10] x86, pkeys: default to a restrictive init PKRU

From
Dave Hansen <hidden>
Date
2016-07-29 17:50:58
Also in
linux-arch, linux-mm, lkml
Reply to
Andy Lutomirski, 2016-07-29
On 07/29/2016 10:29 AM, Andy Lutomirski wrote:
quoted
quoted
In the end, this ensures that threads which do not know how to
manage their own pkey rights can not do damage to data which is
pkey-protected.
I think you missed the fpu__clear() caller in kernel/fpu/signal.c.

ISTM it might be more comprehensible to change fpu__clear in general
and then special case things you want to behave differently.
The code actually already patched the generic fpu__clear():

	fpu__clear() ->
	copy_init_fpstate_to_fpregs() ->
	copy_init_pkru_to_fpregs()

So I think it hit the case you are talking about.
Thread (19 messages) 19 messages, 4 authors, last reply 2016-08-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help