public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/1] x86/pkeys: update PKRU to enable pkey 0
@ 2024-03-21 21:56 Aruna Ramakrishna
  2024-03-21 21:56 ` [RFC PATCH v2 1/1] x86/pkeys: update PKRU to enable pkey 0 before XSAVE Aruna Ramakrishna
  0 siblings, 1 reply; 14+ messages in thread
From: Aruna Ramakrishna @ 2024-03-21 21:56 UTC (permalink / raw)
  To: linux-kernel
  Cc: x86, dave.hansen, tglx, matthias.neugschwandtner,
	andrew.brownsword

v2 updates:
- PKRU is passed as a parameter from handle_signal() all the way to
copy_fpregs_to_sigframe(), where it actually updates PKRU in the
sigframe

I'm working on adding a test case in
tools/testing/selftests/mm/protection_keys.c.

Aruna Ramakrishna (1):
  x86/pkeys: update PKRU to enable pkey 0 before XSAVE

 arch/x86/include/asm/fpu/signal.h  |  3 +-
 arch/x86/include/asm/sighandling.h | 10 +++----
 arch/x86/kernel/fpu/signal.c       | 44 ++++++++++++++++++++++++++----
 arch/x86/kernel/fpu/xstate.c       | 13 +++++++++
 arch/x86/kernel/fpu/xstate.h       |  1 +
 arch/x86/kernel/signal.c           | 40 +++++++++++++++++++++------
 arch/x86/kernel/signal_32.c        |  8 +++---
 arch/x86/kernel/signal_64.c        |  9 +++---
 8 files changed, 101 insertions(+), 27 deletions(-)

-- 
2.39.3


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-04-26 17:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-21 21:56 [RFC PATCH v2 0/1] x86/pkeys: update PKRU to enable pkey 0 Aruna Ramakrishna
2024-03-21 21:56 ` [RFC PATCH v2 1/1] x86/pkeys: update PKRU to enable pkey 0 before XSAVE Aruna Ramakrishna
2024-03-22  9:46   ` Ingo Molnar
2024-03-22 18:30     ` Aruna Ramakrishna
2024-04-25 22:03     ` jeffxu
2024-03-22 15:40   ` Dave Hansen
2024-03-22 18:28     ` Aruna Ramakrishna
2024-04-25 21:05   ` jeffxu
2024-04-25 22:49     ` Aruna Ramakrishna
2024-04-26  0:12       ` Jeff Xu
2024-04-26 16:13         ` Jeff Xu
2024-04-26 16:33           ` Edgecombe, Rick P
2024-04-26 17:13             ` Jeff Xu
2024-04-25 21:58   ` jeffxu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox