commit | 7b789836f434c87168eab067cfbed1ec4783dffd | [log] [tgz] |
---|---|---|
author | Mathias Krause <minipli@googlemail.com> | Wed Sep 19 11:33:40 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Sep 20 18:08:39 2012 -0400 |
tree | fcebdddebb3990a07644c49f335b6193edaf6cb1 | |
parent | f778a636713a435d3a922c60b1622a91136560c1 [diff] |
xfrm_user: fix info leak in copy_to_user_policy() 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>