aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlabel/netlabel_unlabeled.h
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2012-08-15 11:31:57 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-02 09:47:22 -0700
commit7a62b446c607d994f82a578bbca5995a0aa0183d (patch)
tree62fad98f506c174534f06835f1695c8d58c38f7e /net/netlabel/netlabel_unlabeled.h
parentb56518548aa6e99e80c6c67b5a7d7f2c8c614c74 (diff)
downloadkernel_samsung_crespo-7a62b446c607d994f82a578bbca5995a0aa0183d.zip
kernel_samsung_crespo-7a62b446c607d994f82a578bbca5995a0aa0183d.tar.gz
kernel_samsung_crespo-7a62b446c607d994f82a578bbca5995a0aa0183d.tar.bz2
net: fix info leak in compat dev_ifconf()
[ Upstream commit 43da5f2e0d0c69ded3d51907d9552310a6b545e8 ] The implementation of dev_ifconf() for the compat ioctl interface uses an intermediate ifc structure allocated in userland for the duration of the syscall. Though, it fails to initialize the padding bytes inserted for alignment and that for leaks four bytes of kernel stack. Add an explicit memset(0) before filling the structure to avoid the info leak. Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/netlabel/netlabel_unlabeled.h')
0 files changed, 0 insertions, 0 deletions