linux/arch/csky/kernel
Guo Ren af89ebaa64 csky: Fixup regs.sr broken in ptrace
gpr_get() return the entire pt_regs (include sr) to userspace, if we
don't restore the C bit in gpr_set, it may break the ALU result in
that context. So the C flag bit is part of gpr context, that's why
riscv totally remove the C bit in the ISA. That makes sr reg clear
from userspace to supervisor privilege.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: stable@vger.kernel.org
2021-10-16 07:20:12 +08:00
..
probes arch/csky/kernel/probes/kprobes.c: fix bugon.cocci warnings 2021-09-03 09:58:09 -07:00
vdso
Makefile
asm-offsets.c
atomic.S
cpu-probe.c
entry.S
ftrace.c
head.S
irq.c
module.c
perf_callchain.c
perf_event.c
perf_regs.c
power.c
process.c
ptrace.c csky: Fixup regs.sr broken in ptrace 2021-10-16 07:20:12 +08:00
setup.c
signal.c csky: don't let sigreturn play with priveleged bits of status register 2021-10-16 07:20:12 +08:00
smp.c
stacktrace.c
syscall.c
syscall_table.c
time.c
traps.c
vdso.c
vmlinux.lds.S