Files
linux/fs
Amanieu d'Antras 5c233bffdb signalfd: fix information leak in signalfd_copyinfo
commit 3ead7c52bd upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-08-16 20:51:42 -07:00
..
2013-05-07 20:16:25 -07:00
2013-03-12 18:55:21 -07:00
2013-05-24 16:22:51 -07:00
2013-04-29 15:41:42 -04:00
2015-04-29 10:33:57 +02:00
2013-03-23 14:15:31 -07:00
2013-05-07 20:16:25 -07:00
2013-04-29 15:40:23 -04:00
2013-10-05 07:13:09 -07:00
2012-10-22 08:50:37 +03:00
2013-05-07 20:16:25 -07:00
2013-02-22 23:31:31 -05:00
2015-07-03 19:48:08 -07:00
2015-07-10 10:40:22 -07:00
2015-07-03 19:48:08 -07:00
2013-02-22 23:31:31 -05:00
2013-04-17 13:25:09 +01:00
2015-07-03 19:48:08 -07:00
2013-05-31 15:16:33 -04:00
2013-02-22 23:31:31 -05:00
2015-07-03 19:48:08 -07:00