Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Catalin Marinas <catalin.marinas@arm.com>
To: Fuad Tabba <fuad.tabba@linux.dev>
Cc: Will Deacon <will@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Ard Biesheuvel <ardb@kernel.org>,
	Ryan Roberts <ryan.roberts@arm.com>,
	Anshuman Khandual <anshuman.khandual@arm.com>,
	Kevin Brodsky <kevin.brodsky@arm.com>,
	Vladimir Murzin <vladimir.murzin@arm.com>,
	Carl Worth <carl@os.amperecomputing.com>,
	Linu Cherian <linu.cherian@arm.com>,
	Yeoreum Yun <yeoreum.yun@arm.com>,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, Fuad Tabba <tabba@google.com>
Subject: Re: [PATCH 0/2] arm64: mm: Fix a TLBI operand and a TTBR1 write in the KPTI nG rewrite
Date: Fri, 4 Dec 2026 11:34:22 +0000	[thread overview]
Message-ID: <axKlPgZeStKLHT0a@arm.com> (raw)
In-Reply-To: <20261203132517.428942-1-fuad.tabba@linux.dev>

On Thu, Dec 03, 2026 at 01:25:15PM +0000, Fuad Tabba wrote:
> This series fixes a TLBI operand and a TTBR1_EL1 write in
> idmap_kpti_install_ng_mappings(). Both came up while I was working on
> the ISB fix to the same code [1].
> 
> The first masks the TLBI operand in kpti_map_pgtbl(). Its upper bits
> hold a wrong TTL hint on 4K and 16K kernels, which can leave kernel
> mappings global. I couldn't find a CPU with FEAT_TTL that requires
> KPTI, so hitting this takes kpti=on. The Falkor workaround in
> tramp_map_kernel has the same unmasked operand. I left it alone, as
> AFAICT the CPUs with that erratum predate FEAT_TTL.
> 
> The second converts the temporary pgd's address before writing it to
> TTBR1_EL1, which changes the value only for tables above 2^48 on a
> 52-bit PA kernel.
> 
> Both bugs were introduced by commit 47546a1912fc4 ("arm64: mm: install
> KPTI nG mappings with MMU enabled"). I left out the Fixes: tags, as I
> don't think either is worth a backport.

We could add Fixes: but without cc: stable. Anyway, we can do this when
applying (well, the Sasha's bot may pick them up either way). I don't
think it's worth queuing for -rc6, so I'll leave them to Will.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>


      parent reply	other threads:[~2026-12-04 11:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 13:25 [PATCH 0/2] arm64: mm: Fix a TLBI operand and a TTBR1 write in the KPTI nG rewrite Fuad Tabba
2026-12-03 13:25 ` [PATCH 1/2] arm64: mm: Mask the TLBI operand in kpti_map_pgtbl() Fuad Tabba
2026-12-03 13:25 ` [PATCH 2/2] arm64: mm: Convert the temporary KPTI pgd address for TTBR1_EL1 Fuad Tabba
2026-12-03 14:28 ` [PATCH 0/2] arm64: mm: Fix a TLBI operand and a TTBR1 write in the KPTI nG rewrite Ard Biesheuvel
2026-12-04 11:34 ` Catalin Marinas [this message]

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=axKlPgZeStKLHT0a@arm.com \
    --to=catalin.marinas@arm.com \
    --cc=anshuman.khandual@arm.com \
    --cc=ardb@kernel.org \
    --cc=carl@os.amperecomputing.com \
    --cc=fuad.tabba@linux.dev \
    --cc=kevin.brodsky@arm.com \
    --cc=linu.cherian@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=ryan.roberts@arm.com \
    --cc=tabba@google.com \
    --cc=vladimir.murzin@arm.com \
    --cc=will@kernel.org \
    --cc=yeoreum.yun@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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