From: Mathias Krause Date: Wed, 15 Aug 2012 11:31:57 +0000 (+0000) Subject: net: fix info leak in compat dev_ifconf() X-Git-Tag: v3.6-rc3~10^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43da5f2e0d0c69ded3d51907d9552310a6b545e8;p=pandora-kernel.git net: fix info leak in compat dev_ifconf() 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed