public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel•org>
To: Catalin Marinas <catalin.marinas@arm•com>
Cc: Will Deacon <will@kernel•org>, linux-arm-kernel@lists•infradead.org
Subject: Re: [PATCH v5 4/4] arm64: Use a variable to store non-global mappings decision
Date: Tue, 5 Nov 2019 17:44:45 +0000	[thread overview]
Message-ID: <20191105174445.GD4500@sirena.co.uk> (raw)
In-Reply-To: <20191105173005.GE22987@arrakis.emea.arm.com>


[-- Attachment #1.1: Type: text/plain, Size: 587 bytes --]

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.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2019-11-05 17:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-04 19:15 [PATCH v5 0/4] E0PD support Mark Brown
2019-11-04 19:15 ` [PATCH v5 1/4] arm64: Add initial support for E0PD Mark Brown
2019-11-04 19:15 ` [PATCH v5 2/4] arm64: Factor out checks for KASLR in KPTI code into separate function Mark Brown
2019-11-04 19:15 ` [PATCH v5 3/4] arm64: Don't use KPTI where we have E0PD Mark Brown
2019-11-04 19:15 ` [PATCH v5 4/4] arm64: Use a variable to store non-global mappings decision Mark Brown
2019-11-05 17:30   ` Catalin Marinas
2019-11-05 17:44     ` Mark Brown [this message]
2019-11-06  9:13       ` Catalin Marinas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191105174445.GD4500@sirena.co.uk \
    --to=broonie@kernel$(echo .)org \
    --cc=catalin.marinas@arm$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=will@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox