]> Gentwo Git Trees - linux/.git/commit
MIPS: mm: kmalloc tlb_vpn array to avoid stack overflow
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 28 Nov 2025 16:53:46 +0000 (16:53 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sat, 29 Nov 2025 12:36:05 +0000 (13:36 +0100)
commit841ecc979b18d3227fad5e2d6a1e6f92688776b5
treea9e37859e45da68bdad9a19eaea3b3c25b78563e
parentac3fd01e4c1efce8f2c054cdeb2ddd2fc0fb150d
MIPS: mm: kmalloc tlb_vpn array to avoid stack overflow

Owing to Config4.MMUSizeExt and VTLB/FTLB MMU features later MIPSr2+
cores can have more than 64 TLB entries.  Therefore allocate an array
for uniquification instead of placing too an small array on the stack.

Fixes: 35ad7e181541 ("MIPS: mm: tlb-r4k: Uniquify TLB entries on init")
Co-developed-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Cc: stable@vger.kernel.org # v6.17+: 9f048fa48740: MIPS: mm: Prevent a TLB shutdown on initial uniquification
Cc: stable@vger.kernel.org # v6.17+
Tested-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Tested-by: Klara Modin <klarasmodin@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/mm/tlb-r4k.c