aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorChang S. Bae <chang.seok.bae@intel.com>2025-04-15 19:16:58 -0700
committerIngo Molnar <mingo@kernel.org>2025-04-16 10:01:03 +0200
commitd1e420772cd1eb0afe5858619c73ce36f3e781a1 (patch)
treee0ca7660229f78611d243744fc11589786a262f0 /scripts/gdb/linux/utils.py
parentx86/fpu: Refactor xfeature bitmask update code for sigframe XSAVE (diff)
downloadlinux-rng-d1e420772cd1eb0afe5858619c73ce36f3e781a1.tar.xz
linux-rng-d1e420772cd1eb0afe5858619c73ce36f3e781a1.zip
x86/pkeys: Simplify PKRU update in signal frame
The signal delivery logic was modified to always set the PKRU bit in xregs_state->header->xfeatures by this commit: ae6012d72fa6 ("x86/pkeys: Ensure updated PKRU value is XRSTOR'd") However, the change derives the bitmask value using XGETBV(1), rather than simply updating the buffer that already holds the value. Thus, this approach induces an unnecessary dependency on XGETBV1 for PKRU handling. Eliminate the dependency by using the established helper function. Subsequently, remove the now-unused 'mask' argument. Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Andy Lutomirski <luto@kernel.org> Cc: Aruna Ramakrishna <aruna.ramakrishna@oracle.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Tony W Wang-oc <TonyWWang-oc@zhaoxin.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Link: https://lore.kernel.org/r/20250416021720.12305-9-chang.seok.bae@intel.com
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions