]> git.baikalelectronics.ru Git - kernel.git/commit
unix_diag: fix info leak
authorMathias Krause <minipli@googlemail.com>
Mon, 30 Sep 2013 20:05:40 +0000 (22:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2013 20:08:24 +0000 (16:08 -0400)
commitb8a43cdfb85031ad51bc625288c7b83933d6308b
treea970a98630b927756028377cb1d28b83535982be
parent39bf34e6614d7437aefeea2efd6307e2b8f835f3
unix_diag: fix info leak

When filling the netlink message we miss to wipe the pad field,
therefore leak one byte of heap memory to userland. Fix this by
setting pad to 0.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/diag.c