mirror-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 arch: syscalls: simplify uapi/kapi directory creation 2022-03-31 12:03:46 +09:00
vsyscall
.gitignore
Makefile kbuild: use obj-y instead extra-y for objects placed at the head 2022-10-02 18:04:05 +09:00
asm-offsets.c
crash_dump.c vmcore: convert copy_oldmem_page() to take an iov_iter 2022-04-29 14:37:59 -07:00
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.c
io_trapped.c sh: remove CONFIG_SET_FS support 2022-02-25 09:36:06 +01:00
iomap.c
ioport.c
irq.c asm-generic: Conditionally enable do_softirq_own_stack() via Kconfig. 2022-09-05 17:20:55 +02:00
irq_32.c
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
module.c
nmi_debug.c
perf_callchain.c
perf_event.c
process.c
process_32.c kernel: exit: cleanup release_thread() 2022-09-11 21:55:07 -07:00
ptrace.c
ptrace_32.c ptrace: Create ptrace_report_syscall_{entry,exit} in ptrace.h 2022-03-10 13:35:08 -06:00
reboot.c sh: Use do_kernel_power_off() 2022-05-19 19:30:31 +02:00
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 drivers/base/node: consolidate node device subsystem initialization in node_dev_init() 2022-03-22 15:57:10 -07:00
traps.c
traps_32.c sh: remove CONFIG_SET_FS support 2022-02-25 09:36:06 +01:00
unwinder.c
vmlinux.lds.S sh: define RUNTIME_DISCARD_EXIT 2023-02-25 11:25:42 +01:00