Re: [PATCH v3] MIPS: mm: kmalloc tlb_vpn array to avoid stack overflow

From: Maciej W. Rozycki

Date: Fri Nov 28 2025 - 00:57:44 EST


On Thu, 27 Nov 2025, Maciej W. Rozycki wrote:

> From: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>
>
> 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 small an array on the stack.
>
> Signed-off-by: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>
> Signed-off-by: Maciej W. Rozycki <macro@xxxxxxxxxxx>
> Fixes: 9f048fa48740 ("MIPS: mm: Prevent a TLB shutdown on initial uniquification")
> Cc: stable@xxxxxxxxxxxxxxx
> ---

Please scrap this version. I've sent v4 with tags updates as I didn't
realise stable backports haven't been pushed yet. So this will best be
sorted with a cherry-pick tag meaning no regression in the stable trees
except for the single place between the two consecutive commits.

Maciej