aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorCong Wang <[email protected]>2021-07-31 12:50:38 -0700
committerDaniel Borkmann <[email protected]>2021-08-03 12:52:53 +0200
commit83f31535565c63ac4f62c7b8592210929a630d3d (patch)
tree5f089471eced90615aa2137b3532089934e9f7d9 /tools/perf/scripts/python
parentb61a28cf11d61f512172e673b8f8c4a6c789b425 (diff)
bpf, unix: Check socket type in unix_bpf_update_proto()
As of now, only AF_UNIX datagram socket supports sockmap. But unix_proto is shared for all kinds of AF_UNIX sockets, so we have to check the socket type in unix_bpf_update_proto() to explicitly reject other types, otherwise they could be added into sockmap, too. Fixes: c63829182c37 ("af_unix: Implement ->psock_update_sk_prot()") Reported-by: Jakub Sitnicki <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Jakub Sitnicki <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions