]> Gentwo Git Trees - linux/.git/commit
x86/traps: Communicate a LASS violation in #GP message
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Tue, 18 Nov 2025 18:29:08 +0000 (10:29 -0800)
committerDave Hansen <dave.hansen@linux.intel.com>
Tue, 18 Nov 2025 18:38:26 +0000 (10:38 -0800)
commit42fea0a3a707249cf88ee24aece1dfaba4953b97
tree8f79e8fe61aba82a1c7b30d1a376b16729c1e587
parent731d43750cf8d3c67df7aabc78cc567c6d684111
x86/traps: Communicate a LASS violation in #GP message

A LASS violation typically results in a #GP. With LASS active, any
invalid access to user memory (including the first page frame) would be
reported as a #GP, instead of a #PF.

Unfortunately, the #GP error messages provide limited information about
the cause of the fault. This could be confusing for kernel developers
and users who are accustomed to the friendly #PF messages.

To make the transition easier, enhance the #GP Oops message to include a
hint about LASS violations. Also, add a special hint for kernel NULL
pointer dereferences to match with the existing #PF message.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Sohil Mehta <sohil.mehta@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://patch.msgid.link/20251118182911.2983253-7-sohil.mehta%40intel.com
arch/x86/kernel/traps.c