mbox series

[v2,0/2] arm64: Taint the kernel on different GMID_EL1.BS

Message ID 20210526193621.21559-1-catalin.marinas@arm.com (mailing list archive)
Headers show
Series arm64: Taint the kernel on different GMID_EL1.BS | expand

Message

Catalin Marinas May 26, 2021, 7:36 p.m. UTC
Hi,

An updated version of the GMID_EL1.BS sanity check since the first one
broke the boot on CPUs not supporting MTE.

Changes since v1 [1]:

- Add an id_aa64pfr1_mte() function to check whether the CPU supports
  MTE before reading the GMID_EL1 register and updating the sanitised
  one

- Dropped Mark's ack on the second patch because of the changes.

[1] https://lore.kernel.org/r/20210511182322.3830-1-catalin.marinas@arm.com

Catalin Marinas (2):
  arm64: Change the cpuinfo_arm64 member type for some sysregs to u64
  arm64: Check if GMID_EL1.BS is the same on all CPUs

 arch/arm64/include/asm/cpu.h        | 11 ++++++-----
 arch/arm64/include/asm/cpufeature.h |  7 +++++++
 arch/arm64/kernel/cpufeature.c      | 21 +++++++++++++++++++++
 arch/arm64/kernel/cpuinfo.c         |  5 ++++-
 4 files changed, 38 insertions(+), 6 deletions(-)

Comments

Will Deacon May 26, 2021, 10:15 p.m. UTC | #1
On Wed, 26 May 2021 20:36:19 +0100, Catalin Marinas wrote:
> An updated version of the GMID_EL1.BS sanity check since the first one
> broke the boot on CPUs not supporting MTE.
> 
> Changes since v1 [1]:
> 
> - Add an id_aa64pfr1_mte() function to check whether the CPU supports
>   MTE before reading the GMID_EL1 register and updating the sanitised
>   one
> 
> [...]

Applied to arm64 (for-next/cpufeature), thanks!

[1/2] arm64: Change the cpuinfo_arm64 member type for some sysregs to u64
      https://git.kernel.org/arm64/c/7513cc8a1b74
[2/2] arm64: Check if GMID_EL1.BS is the same on all CPUs
      https://git.kernel.org/arm64/c/21047e91a5a6

Cheers,