Skip to contentSkip to conversation

infoleak fix2 in signal

PATCH In review Kangjie Lu 2 participants 2 messages May 3, 2016 – May 4, 2016

lore
Share & tools
lore

Kangjie Lu

author
#0 lore raw

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.

---
 kernel/signal.c | 1 +
 1 file changed, 1 insertion(+)
kernel/signal.c +1 -0
index f40f0b3..26fdb74 100644
@@ -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
#1 lore raw
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.