• Eric Dumazet's avatar
    inet: fix request sock refcounting · 0470c8ca
    Eric Dumazet authored
    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: default avatarEric Dumazet <edumazet@google.com>
    Fixes: 13854e5a ("inet: add proper refcounting to request sock")
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    0470c8ca
inet_sock.h 6.87 KB