]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/pkeys: Change caller of update_pkru_in_sigframe()
authorAruna Ramakrishna <aruna.ramakrishna@oracle.com>
Tue, 19 Nov 2024 17:45:19 +0000 (17:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:16 +0000 (20:03 +0100)
commit00dee8e1d7a9398077d8d162ff87f9d59bbfdde5
treea0e0391785384ba8a2f3b49cfc02bd40d79090be
parent554888798756e86eeab3e24e73ce9cf0849e51b8
x86/pkeys: Change caller of update_pkru_in_sigframe()

[ Upstream commit 6a1853bdf17874392476b552398df261f75503e0 ]

update_pkru_in_sigframe() will shortly need some information which
is only available inside xsave_to_user_sigframe(). Move
update_pkru_in_sigframe() inside the other function to make it
easier to provide it that information.

No functional changes.

Signed-off-by: Aruna Ramakrishna <aruna.ramakrishna@oracle.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20241119174520.3987538-2-aruna.ramakrishna%40oracle.com
Stable-dep-of: ae6012d72fa6 ("x86/pkeys: Ensure updated PKRU value is XRSTOR'd")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kernel/fpu/signal.c
arch/x86/kernel/fpu/xstate.h