mirror of https://github.com/torvalds/linux.git
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 |
||
|---|---|---|
| .. | ||
| probes | ||
| 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 | ||
| setup.c | ||
| signal.c | ||
| smp.c | ||
| stacktrace.c | ||
| syscall.c | ||
| syscall_table.c | ||
| time.c | ||
| traps.c | ||
| vdso.c | ||
| vmlinux.lds.S | ||