From: Mathias Krause Date: Wed, 19 Sep 2012 11:33:40 +0000 (+0000) Subject: xfrm_user: fix info leak in copy_to_user_policy() X-Git-Tag: v3.2.31~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc39fa8d3deb34d5d0cfd86aafb8033ac4a4ed90;p=pandora-kernel.git 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 Acked-by: Steffen Klassert Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed