kernel_samsung_a53x/arch/s390/kernel
Heiko Carstens 4c852d5c4e s390/vmlinux.lds.S: Move ro_after_init section behind rodata section
[ Upstream commit 75c10d5377d8821efafed32e4d72068d9c1f8ec0 ]

The .data.rel.ro and .got section were added between the rodata and
ro_after_init data section, which adds an RW mapping in between all RO
mapping of the kernel image:

---[ Kernel Image Start ]---
0x000003ffe0000000-0x000003ffe0e00000        14M PMD RO X
0x000003ffe0e00000-0x000003ffe0ec7000       796K PTE RO X
0x000003ffe0ec7000-0x000003ffe0f00000       228K PTE RO NX
0x000003ffe0f00000-0x000003ffe1300000         4M PMD RO NX
0x000003ffe1300000-0x000003ffe1331000       196K PTE RO NX
0x000003ffe1331000-0x000003ffe13b3000       520K PTE RW NX <---
0x000003ffe13b3000-0x000003ffe13d5000       136K PTE RO NX
0x000003ffe13d5000-0x000003ffe1400000       172K PTE RW NX
0x000003ffe1400000-0x000003ffe1500000         1M PMD RW NX
0x000003ffe1500000-0x000003ffe1700000         2M PTE RW NX
0x000003ffe1700000-0x000003ffe1800000         1M PMD RW NX
0x000003ffe1800000-0x000003ffe187e000       504K PTE RW NX
---[ Kernel Image End ]---

Move the ro_after_init data section again right behind the rodata
section to prevent interleaving RO and RW mappings:

---[ Kernel Image Start ]---
0x000003ffe0000000-0x000003ffe0e00000        14M PMD RO X
0x000003ffe0e00000-0x000003ffe0ec7000       796K PTE RO X
0x000003ffe0ec7000-0x000003ffe0f00000       228K PTE RO NX
0x000003ffe0f00000-0x000003ffe1300000         4M PMD RO NX
0x000003ffe1300000-0x000003ffe1353000       332K PTE RO NX
0x000003ffe1353000-0x000003ffe1400000       692K PTE RW NX
0x000003ffe1400000-0x000003ffe1500000         1M PMD RW NX
0x000003ffe1500000-0x000003ffe1700000         2M PTE RW NX
0x000003ffe1700000-0x000003ffe1800000         1M PMD RW NX
0x000003ffe1800000-0x000003ffe187e000       504K PTE RW NX
---[ Kernel Image End ]---

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:06 +01:00
..
syscalls syscalls: fix compat_sys_io_pgetevents_time64 usage 2024-11-19 14:19:34 +01:00
vdso64 s390/vdso: Add CFI for RA register to asm macro vdso_func 2024-11-19 11:32:42 +01:00
alternative.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asm-offsets.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
audit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
audit.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
base.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cache.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
compat_audit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
compat_linux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
compat_linux.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
compat_ptrace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
compat_signal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpcmd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crash_dump.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
diag.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dis.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dumpstack.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
early.c s390/smp,mcck: fix early IPI handling 2024-11-23 23:20:44 +01:00
early_printk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ebcdic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
entry.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
entry.S s390/entry: align system call table on 8 bytes 2024-11-19 09:23:10 +01:00
fpu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ftrace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
guarded_storage.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
head64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
idle.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ima_arch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ipl.c s390/ipl: Fix incorrect initialization of nvme dump block 2024-11-19 12:27:05 +01:00
ipl_vmparm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jump_label.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kdebugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kexec_elf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kexec_image.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kprobes.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kprobes_insn_page.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lgr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
machine_kexec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
machine_kexec_file.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
machine_kexec_reloc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mcount.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
module.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nospec-branch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nospec-sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
numa.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
os_info.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf_cpum_cf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf_cpum_cf_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf_cpum_cf_diag.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf_cpum_cf_events.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf_cpum_sf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf_event.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf_regs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pgm_check.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
process.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
processor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ptrace.c s390/ptrace: handle setting of fpc register correctly 2024-11-18 12:13:10 +01:00
reipl.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
relocate_kernel.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
runtime_instr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
setup.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
signal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smp.c s390/smp,mcck: fix early IPI handling 2024-11-23 23:20:44 +01:00
stacktrace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sthyi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sys_s390.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysinfo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
time.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
topology.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
traps.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
unwind_bc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uprobes.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vdso.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmlinux.lds.S s390/vmlinux.lds.S: Move ro_after_init section behind rodata section 2024-11-23 23:21:06 +01:00
vtime.c s390/vtime: fix average steal time calculation 2024-11-19 08:44:59 +01:00