summaryrefslogtreecommitdiff
path: root/net/ethernet
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2012-09-19 11:33:40 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-13 05:38:41 +0900
commit97f96eab8eb32f3178439f73acca4e286c091435 (patch)
treed7f2526d4bd16dadffc4ae2237ddf148d1e767a3 /net/ethernet
parentd5f1f7c230df5f2a198fb231547f1b298594c709 (diff)
downloadlinux-3.10-97f96eab8eb32f3178439f73acca4e286c091435.tar.gz
linux-3.10-97f96eab8eb32f3178439f73acca4e286c091435.tar.bz2
linux-3.10-97f96eab8eb32f3178439f73acca4e286c091435.zip
xfrm_user: fix info leak in copy_to_user_policy()
[ Upstream commit 7b789836f434c87168eab067cfbed1ec4783dffd ] The memory reserved to dump the xfrm policy includes multiple padding bytes added by the compiler for alignment (padding bytes in struct xfrm_selector and struct xfrm_userpolicy_info). Add an explicit memset(0) before filling the buffer to avoid the heap info leak. Signed-off-by: Mathias Krause <minipli@googlemail.com> Acked-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ethernet')
0 files changed, 0 insertions, 0 deletions