Revision 3ead7c52bdb0ab44f4bb1feed505a8323cc12ba7 authored by Amanieu d'Antras on 06 August 2015, 22:46:33 UTC, committed by Linus Torvalds on 07 August 2015, 01:39:40 UTC
This function may copy the si_addr_lsb field to user mode when it hasn't been initialized, which can leak kernel stack data to user mode. Just checking the value of si_code is insufficient because the same si_code value is shared between multiple signals. This is solved by checking the value of si_signo in addition to si_code. Signed-off-by: Amanieu d'Antras <amanieu@gmail.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Ingo Molnar <mingo@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 2613502
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 511 bytes |
asm-offsets.c | -rw-r--r-- | 2.5 KB |
cpuinfo.c | -rw-r--r-- | 5.6 KB |
early_printk.c | -rw-r--r-- | 3.0 KB |
entry.S | -rw-r--r-- | 14.5 KB |
head.S | -rw-r--r-- | 4.0 KB |
insnemu.S | -rw-r--r-- | 15.0 KB |
irq.c | -rw-r--r-- | 2.3 KB |
kgdb.c | -rw-r--r-- | 5.1 KB |
misaligned.c | -rw-r--r-- | 5.7 KB |
module.c | -rw-r--r-- | 3.4 KB |
nios2_ksyms.c | -rw-r--r-- | 879 bytes |
process.c | -rw-r--r-- | 6.5 KB |
prom.c | -rw-r--r-- | 2.8 KB |
ptrace.c | -rw-r--r-- | 4.4 KB |
setup.c | -rw-r--r-- | 5.3 KB |
signal.c | -rw-r--r-- | 8.4 KB |
sys_nios2.c | -rw-r--r-- | 1.2 KB |
syscall_table.c | -rw-r--r-- | 905 bytes |
time.c | -rw-r--r-- | 7.8 KB |
traps.c | -rw-r--r-- | 4.7 KB |
vmlinux.lds.S | -rw-r--r-- | 1.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...