aboutsummaryrefslogtreecommitdiff
path: root/certs
diff options
context:
space:
mode:
authorEric Dumazet2022-01-07 10:39:53 -0800
committerJakub Kicinski2022-01-07 19:11:55 -0800
commitbf44077c1b3ae86668bce02d9466e7134a6569ec (patch)
treec693e0915fe5444ecc81f982fbfbcbcb6ffe5db4 /certs
parentd8caa2ed47de0e55828a3bd0a81bbb81aa9e7e11 (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 <edumazet@google.com> Reported-by: syzbot <syzkaller@googlegroups.com> Link: https://lore.kernel.org/r/20220107183953.3886647-1-eric.dumazet@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions