diff options
author | 2017-08-26 17:08:58 +0200 | |
---|---|---|
committer | 2017-08-28 10:58:02 +0200 | |
commit | 50329c8a340c9dea60d837645fcf13fc36bfb84d (patch) | |
tree | c54e85cb149711b653ef3953d6dbe18e4d444615 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | xfrm_user: fix info leak in copy_user_offload() (diff) | |
download | linux-dev-50329c8a340c9dea60d837645fcf13fc36bfb84d.tar.xz linux-dev-50329c8a340c9dea60d837645fcf13fc36bfb84d.zip |
xfrm_user: fix info leak in xfrm_notify_sa()
The memory reserved to dump the ID of the xfrm state includes a padding
byte in struct xfrm_usersa_id added by the compiler for alignment. To
prevent the heap info leak, memset(0) the whole struct before filling
it.
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Fixes: 0603eac0d6b7 ("[IPSEC]: Add XFRMA_SA/XFRMA_POLICY for delete notification")
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions