linux/arch/riscv/kernel
Tiezhu Yang 526129937c riscv: uprobes: Restore thread.bad_cause
[ Upstream commit 58b1294dd1 ]

thread.bad_cause is saved in arch_uprobe_pre_xol(), it should be restored
in arch_uprobe_{post,abort}_xol() accordingly, otherwise the save operation
is meaningless, this change is similar with x86 and powerpc.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Fixes: 74784081aa ("riscv: Add uprobes supported")
Link: https://lore.kernel.org/r/1682214146-3756-1-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-19 16:21:40 +02:00
..
compat_vdso RISC-V: Stop emitting attributes 2023-03-17 08:50:14 +01:00
probes riscv: uprobes: Restore thread.bad_cause 2023-07-19 16:21:40 +02:00
vdso
.gitignore
alternative.c
asm-offsets.c
cacheinfo.c
compat_signal.c
compat_syscall_table.c
cpu_ops_sbi.c
cpu_ops_spinwait.c
cpu_ops.c RISC-V: Align SBI probe implementation with spec 2023-05-11 23:03:04 +09:00
cpu-hotplug.c
cpu.c
cpufeature.c RISC-V: take text_mutex during alternative patching 2023-05-17 11:53:41 +02:00
crash_dump.c
crash_save_regs.S
efi-header.S
efi.c
elf_kexec.c
entry.S
fpu.S
ftrace.c RISC-V: Don't check text_mutex during stop_machine 2023-03-17 08:50:29 +01:00
head.h
head.S
image-vars.h
irq.c
jump_label.c
kexec_relocate.S
kgdb.c
machine_kexec_file.c
machine_kexec.c
Makefile riscv: compat_syscall_table: Fixup compile warning 2023-05-17 11:53:35 +02:00
mcount-dyn.S riscv: ftrace: Reduce the detour code size to half 2023-03-10 09:34:30 +01:00
mcount.S
module-sections.c
module.c
patch.c RISC-V: Don't check text_mutex during stop_machine 2023-03-17 08:50:29 +01:00
perf_callchain.c
perf_regs.c
process.c
ptrace.c
reset.c
riscv_ksyms.c
sbi.c RISC-V: Align SBI probe implementation with spec 2023-05-11 23:03:04 +09:00
setup.c riscv: Do not set initial_boot_params to the linear address of the dtb 2023-05-01 08:26:28 +09:00
signal.c riscv: add icache flush for nommu sigreturn trampoline 2023-04-20 12:35:12 +02:00
smp.c
smpboot.c riscv: Move call to init_cpu_topology() to later initialization stage 2023-02-01 08:34:48 +01:00
soc.c
stacktrace.c riscv: Use READ_ONCE_NOCHECK in imprecise unwinding stack mode 2023-03-17 08:50:29 +01:00
suspend_entry.S
suspend.c
sys_riscv.c
syscall_table.c
time.c RISC-V: time: initialize hrtimer based broadcast clock event device 2023-03-10 09:33:03 +01:00
trace_irq.c
trace_irq.h
traps_misaligned.c
traps.c riscv: Avoid enabling interrupts in die() 2023-03-10 09:34:29 +01:00
vdso.c
vmlinux-xip.lds.S
vmlinux.lds.S