Skip to content
  • Patrick McHardy's avatar
    [NETFILTER]: Handle NAT module load race · 03486a4f
    Patrick McHardy authored
    
    
    When the NAT module is loaded when connections are already confirmed
    it must not change their tuples anymore. This is especially important
    with CONFIG_NETFILTER_DEBUG, the netfilter listhelp functions will
    refuse to remove an entry from a list when it can not be found on
    the list, so when a changed tuple hashes to a new bucket the entry
    is kept in the list until and after the conntrack is freed.
    
    Allocate the exact conntrack tuple for NAT for already confirmed
    connections or drop them if that fails.
    
    Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    03486a4f