]> 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)
commit4ce46a3d9525048a537c00c3f45e66726a45838b
treea970a98630b927756028377cb1d28b83535982be
parentb0dad08e52374548e965541ec5c33face9ba532a
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