]> git.itanic.dy.fi Git - linux-stable/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)
commit6865d1e834be84ddd5808d93d5035b492346c64a
treea970a98630b927756028377cb1d28b83535982be
parentd022af27908fad7696888196fe9a787c8995ab47
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