linux-stable/arch/csky
Guo Ren 0c97008859 csky: Fixup regs.sr broken in ptrace
commit af89ebaa64 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:44:58 +02:00
..
abiv1 csky: Coding convention in entry.S 2020-05-28 00:18:36 +00:00
abiv2 csky: Fixup kprobes handler couldn't change pc 2020-07-31 01:51:57 +00:00
boot treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
configs csky: Minimize defconfig to support buildroot config.fragment 2020-02-21 15:43:25 +08:00
include csky: change a Kconfig symbol name to fix e1000 build error 2021-04-28 13:40:02 +02:00
kernel csky: Fixup regs.sr broken in ptrace 2021-10-20 11:44:58 +02:00
lib csky: Add support for function error injection 2020-07-31 01:52:07 +00:00
mm csky: syscache: Fixup duplicate cache flush 2021-07-14 16:56:52 +02:00
Kconfig csky: change a Kconfig symbol name to fix e1000 build error 2021-04-28 13:40:02 +02:00
Kconfig.debug treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Kconfig.platforms csky/Kconfig: Add Kconfig.platforms to support some drivers 2020-02-21 15:43:24 +08:00
Makefile csky: Fixup calltrace panic 2020-05-13 17:55:06 +08:00