Commit eb761a17 authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Michael Ellerman

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: b6adc6d6 ("powerpc/build: move .data.rel.ro, .sdata2 to read-only")
Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
Reviewed-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221116043954.3307852-1-npiggin@gmail.com
parent 02a771c9
...@@ -142,7 +142,7 @@ SECTIONS ...@@ -142,7 +142,7 @@ SECTIONS
#endif #endif
.data.rel.ro : AT(ADDR(.data.rel.ro) - LOAD_OFFSET) { .data.rel.ro : AT(ADDR(.data.rel.ro) - LOAD_OFFSET) {
*(.data.rel.ro*) *(.data.rel.ro .data.rel.ro.*)
} }
.branch_lt : AT(ADDR(.branch_lt) - LOAD_OFFSET) { .branch_lt : AT(ADDR(.branch_lt) - LOAD_OFFSET) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment