summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/l2tp.h
diff options
context:
space:
mode:
authorEric Dumazet2017-02-14 18:03:51 +0100
committerDavid S. Miller2017-02-14 21:05:12 +0100
commitd199fab63c11998a602205f7ee7ff7c05c97164b (patch)
tree9977e38c6afb849d7f823820b73d160092415e60 /include/uapi/linux/l2tp.h
parentibmvnic: Fix initial MTU settings (diff)
downloadkernel-qcow2-linux-d199fab63c11998a602205f7ee7ff7c05c97164b.tar.gz
kernel-qcow2-linux-d199fab63c11998a602205f7ee7ff7c05c97164b.tar.xz
kernel-qcow2-linux-d199fab63c11998a602205f7ee7ff7c05c97164b.zip
packet: fix races in fanout_add()
Multiple threads can call fanout_add() at the same time. We need to grab fanout_mutex earlier to avoid races that could lead to one thread freeing po->rollover that was set by another thread. Do the same in fanout_release(), for peace of mind, and to help us finding lockdep issues earlier. Fixes: dc99f600698d ("packet: Add fanout support.") Fixes: 0648ab70afe6 ("packet: rollover prepare: per-socket state") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/l2tp.h')
0 files changed, 0 insertions, 0 deletions