Re: [PATCH v10 09/15] x86/traps: Consolidate user fixups in exc_general_protection()
From: Sohil Mehta
Date: Tue Oct 07 2025 - 18:41:42 EST
On 10/7/2025 10:46 AM, Edgecombe, Rick P wrote:
> On Mon, 2025-10-06 at 23:51 -0700, Sohil Mehta wrote:
>> Move the UMIP exception fixup along with the other user mode fixups,
>> that is, under the common "if (user_mode(regs))" condition where the
>> rest of the fixups reside.
>
> Can you mention that it also drops static_cpu_has(X86_FEATURE_UMIP) check
> because fixup_umip_exception() already checks
> cpu_feature_enabled(X86_FEATURE_UMIP)?
>
There is no existing check. The current patch moves the X86_FEATURE_UMIP
check to fixup_umip_exception().
I can add a sentence to say that the current check is split into two
separate locations. But, is it not obvious from the diff?