Message ID | 20250225182250.74650-1-kuniyu@amazon.com (mailing list archive) |
---|---|
Headers | show |
Series | ipv4: fib: Convert RTM_NEWROUTE and RTM_DELROUTE to per-netns RTNL. | expand |
On Tue, 25 Feb 2025 10:22:38 -0800 Kuniyuki Iwashima wrote: > Patch 1 is a misc cleanup. > Patch 2 ~ 8 converts two fib_info hash tables to per-netns. > Patch 9 ~ 12 converts rtnl_lock() to rtnl_net_lcok(). Breaks quite a few tests :( unreferenced object 0xffff88800bfc6800 (size 256): comm "ip", pid 577, jiffies 4294699578 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc 0): __kmalloc_node_noprof+0x35d/0x4a0 fib4_semantics_init+0x25/0xf0 fib_net_init+0x17e/0x340 ops_init+0x189/0x550 setup_net+0x189/0x750 copy_net_ns+0x1f7/0x340 create_new_namespaces+0x35f/0x920 unshare_nsproxy_namespaces+0x8d/0x130 ksys_unshare+0x2a9/0x660 __x64_sys_unshare+0x31/0x40 do_syscall_64+0xc1/0x1d0 entry_SYSCALL_64_after_hwframe+0x77/0x7f
From: Jakub Kicinski <kuba@kernel.org> Date: Tue, 25 Feb 2025 16:24:48 -0800 > On Tue, 25 Feb 2025 10:22:38 -0800 Kuniyuki Iwashima wrote: > > Patch 1 is a misc cleanup. > > Patch 2 ~ 8 converts two fib_info hash tables to per-netns. > > Patch 9 ~ 12 converts rtnl_lock() to rtnl_net_lcok(). > > Breaks quite a few tests :( Oh, sorry... why I didn't notice this silly mistake :/ I enabled kmemleak on my debug config. Will fix in v2. ---8<--- diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index b9ead0257340..34cfea5c127b 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c @@ -1666,7 +1666,7 @@ static void __net_exit fib_net_exit(struct net *net) { fib_proc_exit(net); nl_fib_lookup_exit(net); - fib4_semantics_init(net); + fib4_semantics_exit(net); } static void __net_exit fib_net_exit_batch(struct list_head *net_list) ---8<--- > > unreferenced object 0xffff88800bfc6800 (size 256): > comm "ip", pid 577, jiffies 4294699578 > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace (crc 0): > __kmalloc_node_noprof+0x35d/0x4a0 > fib4_semantics_init+0x25/0xf0 > fib_net_init+0x17e/0x340