diff options
author | Mathias Krause <minipli@googlemail.com> | 2012-08-15 11:31:57 +0000 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-09-19 15:04:55 +0100 |
commit | daf8fa93325e55ec605c4e725e6dc07d63d0d5c1 (patch) | |
tree | 5334c5674483e5abfeef55c97defe89774e3f3c7 /include | |
parent | 9b2a14018c8a62cf910e10efb4b24787549de5c4 (diff) |
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: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions