]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix writable sections being moved into the rodata region
authorNicholas Piggin <npiggin@gmail.com>
Wed, 16 Nov 2022 04:39:53 +0000 (14:39 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Nov 2022 10:37:14 +0000 (21:37 +1100)
commit674833b660b44f21c146a0a84e00314880ffa00e
treee068bcd5afdf00bc995b779bb1a05ccf5b38ba67
parent34ebaf1ecb98b36dcba43332589fe1e9b8bbe23b
powerpc: Fix writable sections being moved into the rodata region

.data.rel.ro*  catches .data.rel.root_cpuacct, and the kernel crashes on
a store in css_clear_dir. At least we know read-only data protection is
working...

Fixes: 97a0e7b619117 ("powerpc/build: move .data.rel.ro, .sdata2 to read-only")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221116043954.3307852-1-npiggin@gmail.com
arch/powerpc/kernel/vmlinux.lds.S