Re: [PATCH 4.19 49/49] x86/Xen: swap NX determination and GDT setup on BSP

From: Greg Kroah-Hartman
Date: Tue May 25 2021 - 02:55:37 EST


On Tue, May 25, 2021 at 07:11:21AM +0200, Juergen Gross wrote:
> On 24.05.21 17:26, Greg Kroah-Hartman wrote:
> > From: Jan Beulich <jbeulich@xxxxxxxx>
> >
> > commit ae897fda4f507e4b239f0bdfd578b3688ca96fb4 upstream.
> >
> > xen_setup_gdt(), via xen_load_gdt_boot(), wants to adjust page tables.
> > For this to work when NX is not available, x86_configure_nx() needs to
> > be called first.
> >
> > [jgross] Note that this is a revert of 36104cb9012a82e73 ("x86/xen:
> > Delay get_cpu_cap until stack canary is established"), which is possible
> > now that we no longer support running as PV guest in 32-bit mode.
> >
> > Cc: <stable.vger.kernel.org> # 5.9
>
> Sorry for messing up the stable link, but please don't include this
> patch in stable kernels before 5.9

Now dropped, thanks for reminding me.

greg k-h