linux-stable/arch
Jiaxun Yang 405a882852 MIPS: mm: tlb-r4k: Uniquify TLB entries on init
commit 35ad7e1815 upstream.

Hardware or bootloader will initialize TLB entries to any value, which
may collide with kernel's UNIQUE_ENTRYHI value. On MIPS microAptiv/M5150
family of cores this will trigger machine check exception and cause boot
failure. On M5150 simulation this could happen 7 times out of 1000 boots.

Replace local_flush_tlb_all() with r4k_tlb_uniquify() which probes each
TLB ENTRIHI unique value for collisions before it's written, and in case
of collision try a different ASID.

Cc: stable@kernel.org
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-15 16:39:34 +02:00
..
alpha
arc
arm ARM: s3c/gpio: complete the conversion to new GPIO value setters 2025-08-15 16:39:23 +02:00
arm64 KVM: arm64: Filter out HCR_EL2 bits when running in hypervisor context 2025-08-15 16:39:34 +02:00
csky
hexagon
loongarch
m68k m68k: Don't unregister boot console needlessly 2025-08-15 16:38:42 +02:00
microblaze
mips MIPS: mm: tlb-r4k: Uniquify TLB entries on init 2025-08-15 16:39:34 +02:00
nios2
openrisc
parisc
powerpc PCI: pnv_php: Fix surprise plug detection and recovery 2025-08-15 16:39:22 +02:00
riscv RISC-V: KVM: Fix inclusion of Smnpm in the guest ISA bitmap 2025-08-15 16:38:56 +02:00
s390 s390/mm: Remove possible false-positive warning in pte_free_defer() 2025-08-15 16:39:34 +02:00
sh sh: Do not use hyphen in exported variable name 2025-08-15 16:39:12 +02:00
sparc
um um: rtc: Avoid shadowing err in uml_rtc_start() 2025-08-15 16:38:45 +02:00
x86 KVM: VMX: Allow guest to set DEBUGCTL.RTM_DEBUG if RTM is supported 2025-08-15 16:39:34 +02:00
xtensa
.gitignore
Kconfig