aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorMathias Krause <[email protected]>2013-04-07 01:51:49 +0000
committerDavid S. Miller <[email protected]>2013-04-07 16:28:00 -0400
commit4683f42fde3977bdb4e8a09622788cc8b5313778 (patch)
tree37e0e2bd2666e7bcedd6630b029d88f740b3ddc7 /tools/perf/scripts/python/syscall-counts.py
parentef3313e84acbf349caecae942ab3ab731471f1a1 (diff)
Bluetooth: fix possible info leak in bt_sock_recvmsg()
In case the socket is already shutting down, bt_sock_recvmsg() returns with 0 without updating msg_namelen leading to net/socket.c leaking the local, uninitialized sockaddr_storage variable to userland -- 128 bytes of kernel stack memory. Fix this by moving the msg_namelen assignment in front of the shutdown test. Cc: Marcel Holtmann <[email protected]> Cc: Gustavo Padovan <[email protected]> Cc: Johan Hedberg <[email protected]> Signed-off-by: Mathias Krause <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions