--- zzzz-none-000/linux-4.9.279/net/ipv4/sysctl_net_ipv4.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/net/ipv4/sysctl_net_ipv4.c 2023-02-08 11:43:43.000000000 +0000 @@ -1040,7 +1040,9 @@ kfree(net->ipv4.sysctl_local_reserved_ports); table = net->ipv4.ipv4_hdr->ctl_table_arg; unregister_net_sysctl_table(net->ipv4.ipv4_hdr); - kfree(table); + + if (!net_eq(net, &init_net)) + kfree(table); } static __net_initdata struct pernet_operations ipv4_sysctl_ops = {