Skip to content

Commit eb761a1

Browse files
npigginmpe
authored andcommitted
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: b6adc6d ("powerpc/build: move .data.rel.ro, .sdata2 to read-only") Signed-off-by: Nicholas Piggin <[email protected]> Reviewed-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 02a771c commit eb761a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/kernel/vmlinux.lds.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ SECTIONS
142142
#endif
143143

144144
.data.rel.ro : AT(ADDR(.data.rel.ro) - LOAD_OFFSET) {
145-
*(.data.rel.ro*)
145+
*(.data.rel.ro .data.rel.ro.*)
146146
}
147147

148148
.branch_lt : AT(ADDR(.branch_lt) - LOAD_OFFSET) {

0 commit comments

Comments
 (0)