]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
MIPS: kernel: Fix random segmentation faults
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 20 Nov 2025 12:10:29 +0000 (13:10 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 21 Nov 2025 12:24:05 +0000 (13:24 +0100)
commit14b46ba92bf547508b4a49370c99aba76cb53b53
treeb4bb6979f2f0e94089f4f85b035f14b6fd1ada94
parent9f048fa487409e364cf866c957cf0b0d782ca5a3
MIPS: kernel: Fix random segmentation faults

Commit 69896119dc9d ("MIPS: vdso: Switch to generic storage
implementation") switches to a generic vdso storage, which increases
the number of data pages from 1 to 4. But there is only one page
reserved, which causes segementation faults depending where the VDSO
area is randomized to. To fix this use the same size of reservation
and allocation of the VDSO data pages.

Fixes: 69896119dc9d ("MIPS: vdso: Switch to generic storage implementation")
Reviewed-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/process.c