linux/arch/riscv/kernel
Guo Ren 84814460ee
riscv: Fixup bootup failure with HARDENED_USERCOPY
6184358da0 ("riscv: Fixup static_obj() fail") attempted to elide a lockdep
failure by rearranging our kernel image to place all initdata within [_stext,
_end], thus triggering lockdep to treat these as static objects.  These objects
are released and eventually reallocated, causing check_kernel_text_object() to
trigger a BUG().

This backs out the change to make [_stext, _end] all-encompassing, instead just
moving initdata.  This results in initdata being outside of [__init_begin,
__init_end], which means initdata can't be freed.

Link: https://lore.kernel.org/linux-riscv/1593266228-61125-1-git-send-email-guoren@kernel.org/T/#t
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Reported-by: Aurelien Jarno <aurelien@aurel32.net>
Tested-by: Aurelien Jarno <aurelien@aurel32.net>
[Palmer: Clean up commit text]
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2020-10-06 18:34:00 -07:00
..
vdso riscv: disable stack-protector for vDSO 2020-08-04 15:02:49 -07:00
.gitignore
Makefile RISC-V: Remove CLINT related code from timer and arch 2020-08-20 10:58:13 -07:00
asm-offsets.c riscv: Cleanup unnecessary define in asm-offset.c 2020-07-30 11:37:44 -07:00
cacheinfo.c
cpu-hotplug.c
cpu.c
cpu_ops.c
cpu_ops_sbi.c
cpu_ops_spinwait.c
cpufeature.c
entry.S riscv: Cleanup unnecessary define in asm-offset.c 2020-07-30 11:37:44 -07:00
fpu.S
ftrace.c RISC-V: Take text_mutex in ftrace_init_nop() 2020-09-11 12:15:21 -07:00
head.S riscv: Setup exception vector for nommu platform 2020-08-14 16:28:20 -07:00
head.h
irq.c
jump_label.c
kgdb.c
mcount-dyn.S
mcount.S
module-sections.c
module.c
module.lds
patch.c
perf_callchain.c
perf_event.c
perf_regs.c
process.c RISC-V Patches for the 5.9 Merge Window, Part 1 2020-08-07 10:11:12 -07:00
ptrace.c
reset.c
riscv_ksyms.c
sbi.c RISC-V: Add mechanism to provide custom IPI operations 2020-08-20 10:55:40 -07:00
setup.c RISC-V: Remove CLINT related code from timer and arch 2020-08-20 10:58:13 -07:00
signal.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
smp.c RISC-V: Remove CLINT related code from timer and arch 2020-08-20 10:58:13 -07:00
smpboot.c RISC-V: Remove CLINT related code from timer and arch 2020-08-20 10:58:13 -07:00
soc.c
stacktrace.c
sys_riscv.c
syscall_table.c
time.c
traps.c RISC-V: Setup exception vector early 2020-07-30 11:37:48 -07:00
traps_misaligned.c
vdso.c
vmlinux.lds.S riscv: Fixup bootup failure with HARDENED_USERCOPY 2020-10-06 18:34:00 -07:00