-
- Downloads
ipv4: Namespaceify tcp_fastopen_key knob
Different namespace application might require different tcp_fastopen_key independently of the host. David Miller pointed out there is a leak without releasing the context of tcp_fastopen_key during netns teardown. So add the release action in exit_batch path. Tested: 1. Container namespace: # cat /proc/sys/net/ipv4/tcp_fastopen_key: 2817fff2-f803cf97-eadfd1f3-78c0992b cookie key in tcp syn packets: Fast Open Cookie Kind: TCP Fast Open Cookie (34) Length: 10 Fast Open Cookie: 1e5dd82a8c492ca9 2. Host: # cat /proc/sys/net/ipv4/tcp_fastopen_key: 107d7c5f-68eb2ac7-02fb06e6-ed341702 cookie key in tcp syn packets: Fast Open Cookie Kind: TCP Fast Open Cookie (34) Length: 10 Fast Open Cookie: e213c02bf0afbc8a Signed-off-by:Haishuang Yan <yanhaishuang@cmss.chinamobile.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/netns/ipv4.h 4 additions, 0 deletionsinclude/net/netns/ipv4.h
- include/net/tcp.h 3 additions, 3 deletionsinclude/net/tcp.h
- net/ipv4/af_inet.c 1 addition, 1 deletionnet/ipv4/af_inet.c
- net/ipv4/sysctl_net_ipv4.c 12 additions, 9 deletionsnet/ipv4/sysctl_net_ipv4.c
- net/ipv4/tcp.c 1 addition, 1 deletionnet/ipv4/tcp.c
- net/ipv4/tcp_fastopen.c 43 additions, 21 deletionsnet/ipv4/tcp_fastopen.c
- net/ipv4/tcp_ipv4.c 6 additions, 0 deletionsnet/ipv4/tcp_ipv4.c
Loading
Please register or sign in to comment