On 7/7/2025 1:03 AM, Kirill A. Shutemov wrote: > LASS throws a #GP for any violations except for stack register accesses, > in which case it throws a #SS instead. Handle this similarly to how other > LASS violations are handled. > > In case of FRED, before handling #SS as LASS violation, kernel has to > check if there's a fixup for the exception. It can address #SS due to > invalid user context on ERETU. See 5105e7687ad3 ("x86/fred: Fixup > fault on ERETU by jumping to fred_entrypoint_user") for more details. > > Co-developed-by: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx> > Signed-off-by: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx> > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> > --- > arch/x86/kernel/traps.c | 41 +++++++++++++++++++++++++++++++++++------ > 1 file changed, 35 insertions(+), 6 deletions(-) > Reviewed-by: Sohil Mehta <sohil.mehta@xxxxxxxxx>