Re: [PATCH v2 2/2] x86: Add Kconfig option to require NX bit support

2023-06-19 Thread Jan Beulich
On 15.06.2023 17:31, Alejandro Vallejo wrote: > This option hardens Xen by forcing it to write secure (NX-enhanced) PTEs > regardless of the runtime NX feature bit in boot_cpu_data. This prevents an > attacker with partial write support from affecting Xen's PTE generation > logic by overriding the

Re: [PATCH v2 2/2] x86: Add Kconfig option to require NX bit support

2023-06-16 Thread Andrew Cooper
On 15/06/2023 4:31 pm, Alejandro Vallejo wrote: > diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig > index 406445a358..fa97d4 100644 > --- a/xen/arch/x86/Kconfig > +++ b/xen/arch/x86/Kconfig > @@ -307,6 +307,22 @@ config MEM_SHARING > bool "Xen memory sharing support (UNSUPPORTED)

[PATCH v2 2/2] x86: Add Kconfig option to require NX bit support

2023-06-15 Thread Alejandro Vallejo
This option hardens Xen by forcing it to write secure (NX-enhanced) PTEs regardless of the runtime NX feature bit in boot_cpu_data. This prevents an attacker with partial write support from affecting Xen's PTE generation logic by overriding the NX feature flag. The patch asserts support for the NX