summaryrefslogtreecommitdiffstats
path: root/net/ncsi
diff options
context:
space:
mode:
authorEric Dumazet2017-10-19 01:14:52 +0200
committerDavid S. Miller2017-10-21 02:51:34 +0200
commit509c7a1ecc8601f94ffba8a00889fefb239c00c6 (patch)
treef9dcb3f8a8782f6c6bbc6231e9eea2382146d36b /net/ncsi
parenttcp/dccp: fix ireq->opt races (diff)
downloadkernel-qcow2-linux-509c7a1ecc8601f94ffba8a00889fefb239c00c6.tar.gz
kernel-qcow2-linux-509c7a1ecc8601f94ffba8a00889fefb239c00c6.tar.xz
kernel-qcow2-linux-509c7a1ecc8601f94ffba8a00889fefb239c00c6.zip
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