Thread (5 messages) 5 messages, 4 authors, 8d ago

Re: [PATCH net] ipv4: free net->ipv4.sysctl_local_reserved_ports after unregister_net_sysctl_table()

From: Jason Xing <hidden>
Date: 2026-05-21 13:14:05

On Thu, May 21, 2026 at 8:30 PM Eric Dumazet [off-list ref] wrote:
ipv4_sysctl_exit_net() is currently freeing net->ipv4.sysctl_local_reserved_ports
too soon.

Only after unregister_net_sysctl_table() we can be sure no threads can possibly
use the sysctls, including /proc/sys/net/ipv4/ip_local_reserved_ports.

Fixes: 122ff243f5f1 ("ipv4: make ip_local_reserved_ports per netns")
Reported-by: Ji'an Zhou <redacted>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Cong Wang <redacted>
Reviewed-by: Jason Xing <redacted>

Thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help