diff options
author | Eric Dumazet <[email protected]> | 2022-01-07 10:39:53 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-01-07 19:11:55 -0800 |
commit | bf44077c1b3ae86668bce02d9466e7134a6569ec (patch) | |
tree | c693e0915fe5444ecc81f982fbfbcbcb6ffe5db4 /tools/perf/scripts/python/futex-contention.py | |
parent | d8caa2ed47de0e55828a3bd0a81bbb81aa9e7e11 (diff) |
af_packet: fix tracking issues in packet_do_bind()
It appears that my changes in packet_do_bind() were
slightly wrong.
syzbot found that calling bind() twice would trigger
a false positive.
Remove proto_curr/dev_curr variables and rewrite things
to be less confusing (like not having to use netdev_tracker_alloc(),
and instead use the standard dev_hold_track())
Fixes: f1d9268e0618 ("net: add net device refcount tracker to struct packet_type")
Signed-off-by: Eric Dumazet <[email protected]>
Reported-by: syzbot <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions