aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2015-01-15 13:18:40 -0500
committerDavid S. Miller <davem@davemloft.net>2015-01-15 19:41:16 -0500
commitf812116b174e59a350acc8e4856213a166a91222 (patch)
tree9be0fd580d75289fec240cae10ab8ffcc6c85ed2 /tools/perf/scripts/python/export-to-postgresql.py
parentMerge tag 'linux-can-fixes-for-3.19-20150115' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can (diff)
downloadlinux-dev-f812116b174e59a350acc8e4856213a166a91222.tar.xz
linux-dev-f812116b174e59a350acc8e4856213a166a91222.zip
ip: zero sockaddr returned on error queue
The sockaddr is returned in IP(V6)_RECVERR as part of errhdr. That structure is defined and allocated on the stack as struct { struct sock_extended_err ee; struct sockaddr_in(6) offender; } errhdr; The second part is only initialized for certain SO_EE_ORIGIN values. Always initialize it completely. An MTU exceeded error on a SOCK_RAW/IPPROTO_RAW is one example that would return uninitialized bytes. Signed-off-by: Willem de Bruijn <willemb@google.com> ---- Also verified that there is no padding between errhdr.ee and errhdr.offender that could leak additional kernel data. Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions