aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDave Watson <[email protected]>2017-06-26 08:36:47 -0700
committerDavid S. Miller <[email protected]>2017-06-27 15:39:11 -0400
commitd97af30f615eea23ecfefd0e80b2f5f2f41afe55 (patch)
tree1f50a7a904e2e5a42cdc548763605151f3557b0c /tools/perf/scripts/python
parent019b13ae85260cfab9d7ccb6ca58f094d18a24fd (diff)
tcp: fix null ptr deref in getsockopt(..., TCP_ULP, ...)
If icsk_ulp_ops is unset, it dereferences a null ptr. Add a null ptr check. BUG: KASAN: null-ptr-deref in copy_to_user include/linux/uaccess.h:168 [inline] BUG: KASAN: null-ptr-deref in do_tcp_getsockopt.isra.33+0x24f/0x1e30 net/ipv4/tcp.c:3057 Read of size 4 at addr 0000000000000020 by task syz-executor1/15452 Signed-off-by: Dave Watson <[email protected]> Reported-by: "Levin, Alexander (Sasha Levin)" <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions