mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	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: b6adc6d6d3 ("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
			
			
This commit is contained in:
		
							parent
							
								
									02a771c9a6
								
							
						
					
					
						commit
						eb761a1760
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -142,7 +142,7 @@ SECTIONS | |||
| #endif | ||||
| 
 | ||||
| 	.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) { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Nicholas Piggin
						Nicholas Piggin