“102e3b8d3f3d5556c60f9ab6d92108649b68edc8”上不存在“arch/x86/include/asm/setup.h”
  • E
    packet: fix races in fanout_add() · d199fab6
    Eric Dumazet 提交于
    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: dc99f600 ("packet: Add fanout support.")
    Fixes: 0648ab70 ("packet: rollover prepare: per-socket state")
    Signed-off-by: NEric Dumazet <edumazet@google.com>
    Cc: Willem de Bruijn <willemb@google.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    d199fab6
af_packet.c 104.6 KB