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

Edgecombe, Rick P
2025-10-07T18:43:38Z

On Mon, 2025-10-06 at 23:51 -0700, Sohil Mehta wrote:
> From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
>
> 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@linux.intel.com>
> Signed-off-by: Sohil Mehta <sohil.mehta@intel.com>
> ---
Reviewed-by: Rick Edgecombe <rick.p.edgecombe@intel.com>