diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2015-08-06 15:46:29 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-08-26 19:59:59 +0200 |
| commit | 3617989b9b8756fa18a010d20b29165783d758de (patch) | |
| tree | cd665b25dc72fbac75712a11a2ec88cb73bc18d8 /arch/mips/kernel | |
| parent | 652204c9ed43b125affefdae5c689523ee9bb640 (diff) | |
signal: fix information leak in copy_siginfo_to_user
commit 26135022f85105ad725cda103fa069e29e83bd16 upstream.
This function may copy the si_addr_lsb, si_lower and si_upper fields to
user mode when they haven'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>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'arch/mips/kernel')
0 files changed, 0 insertions, 0 deletions
