Re: [PATCH] arm64/mm: Fix ttbr0 values stored in struct thread_info for software-pan
From: Will Deacon
Date: Tue Jun 15 2021 - 15:18:31 EST
On Tue, 15 Jun 2021 15:02:58 +0530, Anshuman Khandual wrote:
> When using CONFIG_ARM64_SW_TTBR0_PAN, a task's thread_info::ttbr0 must be
> the TTBR0_EL1 value used to run userspace. With 52-bit PAs, the PA must be
> packed into the TTBR using phys_to_ttbr(), but we forget to do this in some
> of the SW PAN code. Thus, if the value is installed into TTBR0_EL1 (as may
> happen in the uaccess routines), this could result in UNPREDICTABLE
> behaviour.
>
> [...]
Applied to arm64 (for-next/mm), thanks!
[1/1] arm64/mm: Fix ttbr0 values stored in struct thread_info for software-pan
https://git.kernel.org/arm64/c/9163f0113030
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev