diff options
author | Eric Dumazet <[email protected]> | 2018-03-14 09:04:16 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-03-14 12:53:23 -0400 |
commit | 4dcb31d4649df36297296b819437709f5407059c (patch) | |
tree | c3f83c7300f9f8fe9612bf790efbfe150345ae88 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f89782c2d131e6eae0d1ea2569ba76bc4c5875fe (diff) |
net: use skb_to_full_sk() in skb_update_prio()
Andrei Vagin reported a KASAN: slab-out-of-bounds error in
skb_update_prio()
Since SYNACK might be attached to a request socket, we need to
get back to the listener socket.
Since this listener is manipulated without locks, add const
qualifiers to sock_cgroup_prioidx() so that the const can also
be used in skb_update_prio()
Also add the const qualifier to sock_cgroup_classid() for consistency.
Fixes: ca6fb0651883 ("tcp: attach SYNACK messages to request sockets instead of listener")
Signed-off-by: Eric Dumazet <[email protected]>
Reported-by: Andrei Vagin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions