Re: [PATCH v10 13/15] x86/traps: Generalize #GP address decode and hint code

From: Edgecombe, Rick P

Date: Tue Oct 07 2025 - 14:43:38 EST


On Mon, 2025-10-06 at 23:51 -0700, Sohil Mehta wrote:
> From: "Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx>
>
> In most cases, an access causing a LASS violation results in a #GP, for
> stack accesses (those due to stack-oriented instructions, as well as
> accesses that implicitly or explicitly use the SS segment register), a
> stack segment fault (#SS) is generated.
>
> Handlers for #GP and #SS will soon share code to decode the exception
> address and retrieve the exception hint string. Rename the helper
> function as well as the enum and array names to reflect that they are no
> longer specific to #GP.
>
> No functional change intended.
>
> Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
> Signed-off-by: Sohil Mehta <sohil.mehta@xxxxxxxxx>
> ---
Reviewed-by: Rick Edgecombe <rick.p.edgecombe@xxxxxxxxx>