linux/arch/csky
Guo Ren e9f457f056 csky: Fixup regs.sr broken in ptrace
commit af89ebaa64de726ca0a39bbb0bf0c81a1f43ad50 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-10-20 11:40:12 +02:00
..
abiv1 csky: Fixup msa highest 3 bits mask 2020-06-03 08:21:13 +02:00
abiv2 csky: Fixup abiv2 syscall_trace break a4 & a5 2020-06-17 16:40:21 +02:00
boot
configs
include csky: change a Kconfig symbol name to fix e1000 build error 2021-04-28 13:19:16 +02:00
kernel csky: Fixup regs.sr broken in ptrace 2021-10-20 11:40:12 +02:00
lib csky: Fixup raw_copy_from_user() 2020-06-03 08:21:15 +02:00
mm csky: Fixup get wrong psr value from phyical reg 2020-04-23 10:36:38 +02:00
Kconfig csky: change a Kconfig symbol name to fix e1000 build error 2021-04-28 13:19:16 +02:00
Kconfig.debug
Makefile