linux/arch/sh/kernel
Al Viro 5fdb54270f sh: sanitize the flags on sigreturn
[ Upstream commit 573b22ccb7 ]

We fetch %SR value from sigframe; it might have been modified by signal
handler, so we can't trust it with any bits that are not modifiable in
user mode.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Rich Felker <dalias@libc.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-30 12:49:19 +02:00
..
cpu
syscalls
vsyscall
.gitignore
asm-offsets.c
crash_dump.c
debugtraps.S
disassemble.c
dma-coherent.c
dumpstack.c
dwarf.c
entry-common.S
ftrace.c
head_32.S
hw_breakpoint.c
idle.c
io_trapped.c
io.c
iomap.c
ioport.c
irq_32.c
irq.c asm-generic: Conditionally enable do_softirq_own_stack() via Kconfig. 2022-09-05 17:20:55 +02:00
kdebugfs.c
kgdb.c
kprobes.c
machine_kexec.c
machvec.c sh: machvec: Use char[] for section boundaries 2022-09-13 10:33:17 -07:00
Makefile kbuild: use obj-y instead extra-y for objects placed at the head 2022-10-02 18:04:05 +09:00
module.c
nmi_debug.c
perf_callchain.c
perf_event.c
process_32.c kernel: exit: cleanup release_thread() 2022-09-11 21:55:07 -07:00
process.c
ptrace_32.c
ptrace.c
reboot.c
relocate_kernel.S
return_address.c
setup.c
sh_bios.c
sh_ksyms_32.c
signal_32.c sh: sanitize the flags on sigreturn 2023-03-30 12:49:19 +02:00
smp.c
stacktrace.c
swsusp.c
sys_sh.c
sys_sh32.c
syscalls_32.S
time.c
topology.c
traps_32.c
traps.c
unwinder.c
vmlinux.lds.S sh: define RUNTIME_DISCARD_EXIT 2023-02-25 11:25:42 +01:00