diff options
author | 2017-08-26 17:08:59 +0200 | |
---|---|---|
committer | 2017-08-28 10:58:02 +0200 | |
commit | e3e5fc1698ae35ac60d075b477e84accb96e2652 (patch) | |
tree | bf5e774b618ef41b75b83c01e1d120f5c8376c7a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | xfrm_user: fix info leak in xfrm_notify_sa() (diff) | |
download | linux-dev-e3e5fc1698ae35ac60d075b477e84accb96e2652.tar.xz linux-dev-e3e5fc1698ae35ac60d075b477e84accb96e2652.zip |
xfrm_user: fix info leak in build_expire()
The memory reserved to dump the expired xfrm state includes padding
bytes in struct xfrm_user_expire added by the compiler for alignment. To
prevent the heap info leak, memset(0) the remainder of the struct.
Initializing the whole structure isn't needed as copy_to_user_state()
already takes care of clearing the padding bytes within the 'state'
member.
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