aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2017-10-18 16:14:52 -0700
committerDavid S. Miller <[email protected]>2017-10-21 01:51:34 +0100
commit509c7a1ecc8601f94ffba8a00889fefb239c00c6 (patch)
treef9dcb3f8a8782f6c6bbc6231e9eea2382146d36b /scripts/gcc-plugins/cyc_complexity_plugin.c
parentc92e8c02fe664155ac4234516e32544bec0f113d (diff)
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 <[email protected]> Cc: Willem de Bruijn <[email protected]> Cc: John Sperbeck <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions