x86/pkeys: Change caller of update_pkru_in_sigframe()

[ Upstream commit 6a1853bdf1 ]

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: ae6012d72f ("x86/pkeys: Ensure updated PKRU value is XRSTOR'd")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Aruna Ramakrishna 2024-11-19 17:45:19 +00:00 • committed by Greg Kroah-Hartman
commit 00dee8e1d7
2 changed files with 16 additions and 19 deletions