Subject: Re: [PATCH v5 4/4] arm64: Use a variable to store non-global mappings decision

From: Mark Brown <[email-masked]>
Date: Tue, 5 Nov 2019 17:44:45 +0000

On Tue, Nov 05, 2019 at 05:30:06PM +0000, Catalin Marinas wrote:
> On Mon, Nov 04, 2019 at 07:15:24PM +0000, Mark Brown wrote:

> > +	/*
> > +	 * If know now we are going to need KPTI then use non-global
> > +	 * mappings from the start, avoiding the cost of rewriting
> > +	 * everything later.
> > +	 */
> > +	arm64_use_ng_mappings = kaslr_requires_kpti();
> >  }

> I think we need this even earlier in paging_init() before we start
> creating the kernel mappings.

OK, I'll move it.  I didn't see any global mappings getting created with
the current code but better safe than sorry.
_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel