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
History
File Mode Size
boot
configs
include
kernel
lib
mm
oprofile
tbx
Kconfig -rw-r--r-- 7.0 KB
Kconfig.debug -rw-r--r-- 1.1 KB
Kconfig.soc -rw-r--r-- 1.5 KB
Makefile -rw-r--r-- 2.5 KB

back to top