]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/traps: Consolidate user fixups in the #GP handler
authorSohil Mehta <sohil.mehta@intel.com>
Mon, 9 Mar 2026 18:10:26 +0000 (11:10 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Thu, 19 Mar 2026 22:11:13 +0000 (15:11 -0700)
commit4e57fdd11083d5cd44febc4b6613777291ec936e
tree9939556b36c95d40de08220b005d2b51fb4e9dc5
parent3ddd2e12c704f22c28efb714817c88ee4e25688a
x86/traps: Consolidate user fixups in the #GP handler

Move the UMIP exception fixup under the common "if (user_mode(regs))"
condition where the rest of user mode fixups reside. Also, move the UMIP
feature check into its fixup function to keep the calling code
consistent and clean.

No functional change intended.

Suggested-by: Dave Hansen <dave.hansen@intel.com>
Signed-off-by: Sohil Mehta <sohil.mehta@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Tested-by: Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com>
Link: https://patch.msgid.link/20260309181029.398498-3-sohil.mehta@intel.com
arch/x86/kernel/traps.c
arch/x86/kernel/umip.c