infoleak fix2 in signal
PATCH 1/1 infoleak fix2 in signal
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 <[email protected]>
--- kernel/signal.c | 1 + 1 file changed, 1 insertion(+)
kernel/signal.c +1 -0
@@ -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 ;/*
Signature · 1 line
1.9.1
Quoted 4 lines · Kangjie Lu
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.
The same, afaics. We do not send the uninitialized bytes to userland.
Oleg.