diff options
author | Eric Dumazet <edumazet@google.com> | 2017-10-18 16:14:52 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-21 01:51:34 +0100 |
commit | 509c7a1ecc8601f94ffba8a00889fefb239c00c6 (patch) | |
tree | f9dcb3f8a8782f6c6bbc6231e9eea2382146d36b /net/ncsi | |
parent | c92e8c02fe664155ac4234516e32544bec0f113d (diff) | |
download | linux-509c7a1ecc8601f94ffba8a00889fefb239c00c6.tar.bz2 |
packet: avoid panic in packet_getsockopt()
syzkaller got crashes in packet_getsockopt() processing
PACKET_ROLLOVER_STATS command while another thread was managing
to change po->rollover
Using RCU will fix this bug. We might later add proper RCU annotations
for sparse sake.
In v2: I replaced kfree(rollover) in fanout_add() to kfree_rcu()
variant, as spotted by John.
Fixes: a9b6391814d5 ("packet: rollover statistics")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Cc: John Sperbeck <jsperbeck@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ncsi')
0 files changed, 0 insertions, 0 deletions