fix infoleak in fcntl
Subsystems (2)
PATCH 1/1 fix infoleak in fcntl
The stack object “si” has a total size of 128 bytes; however, only 16 bytes are initialized. The remaining uninitialized bytes are sent to userland via send_signal.
Signed-off-by Kangjie Lu <[email protected]>
--- fs/fcntl.c | 1 + 1 file changed, 1 insertion(+)
fs/fcntl.c +1 -0
@@ -468,6 +468,7 @@ static void send_sigio_to_task(struct task_struct *p,delivered even if we can't queue. Failure to queue in this case _should_ be reported; we fall back to SIGIO in that case. --sct */ +memset (&si,0 ,sizeof (si)); si.si_signo = signum; si.si_errno =0 ; si.si_code = reason;
Signature · 1 line
1.9.1
Quoted 5 lines · Kangjie Lu
The stack object ???si??? has a total size of 128 bytes; however, only 16 bytes are initialized. The remaining uninitialized bytes are sent to userland via
send_signal.Signed-off-by Kangjie Lu <[email protected]>
Looks fine,
Reviewed-by Christoph Hellwig <[email protected]>
Quoted 3 lines · Kangjie Lu
The stack object “si” has a total size of 128 bytes; however, only 16 bytes are initialized. The remaining uninitialized bytes are sent to userland via
send_signal.
How did you find all these leaks?
Since you sent more than one patch I guess you used some tool, which one?
Signature · 2 lines
Thanks, //richard