Messages in this thread Patch in this message | | | From | Kangjie Lu <> | Subject | [PATCH] infoleak fix2 in signal | Date | Tue, 3 May 2016 16:42:46 -0400 |
| |
The stack object “info” has a total size of 128 bytes; however, only 32 bytes are initialized. The remaining uninitialized bytes are sent to userland via send_signal.
Signed-off-by: Kangjie Lu <kjlu@gatech.edu> --- kernel/signal.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/kernel/signal.c b/kernel/signal.c index f40f0b3..26fdb74 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -1689,6 +1689,7 @@ static void do_notify_parent_cldstop(struct task_struct *tsk, parent = tsk->real_parent; } + memset(&info, 0, sizeof(info)); info.si_signo = SIGCHLD; info.si_errno = 0; /* -- 1.9.1
| |