mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
MIPS: mm: kmalloc tlb_vpn array to avoid stack overflow
commit841ecc979bupstream. 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:35ad7e1815("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+:9f048fa487: 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> [ Use memblock_free_ptr() for 5.15.y. ] Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
78bba9f739
commit
da0f6cd551
1 changed files with 16 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue