• E
    inet: fix request sock refcounting · 0470c8ca
    Eric Dumazet 提交于
    While testing last patch series, I found req sock refcounting was wrong.
    
    We must set skc_refcnt to 1 for all request socks added in hashes,
    but also on request sockets created by FastOpen or syncookies.
    
    It is tricky because we need to defer this initialization so that
    future RCU lookups do not try to take a refcount on a not yet
    fully initialized request socket.
    
    Also get rid of ireq_refcnt alias.
    Signed-off-by: NEric Dumazet <edumazet@google.com>
    Fixes: 13854e5a ("inet: add proper refcounting to request sock")
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    0470c8ca
request_sock.h 8.8 KB