------------[ cut here ]------------ refcount_t: decrement hit 0; leaking memory. WARNING: CPU: 1 PID: 7560 at lib/refcount.c:31 refcount_warn_saturate+0xfa/0x1d0 lib/refcount.c:31 Modules linked in: CPU: 1 UID: 0 PID: 7560 Comm: syz.4.604 Not tainted 6.10.0-syzkaller-12610-g743ff02152bc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:refcount_warn_saturate+0xfa/0x1d0 lib/refcount.c:31 Code: b2 00 00 00 e8 87 89 e3 fc 5b 5d c3 cc cc cc cc e8 7b 89 e3 fc c6 05 d7 7d 31 0b 01 90 48 c7 c7 c0 17 40 8c e8 a7 97 a5 fc 90 <0f> 0b 90 90 eb d9 e8 5b 89 e3 fc c6 05 b4 7d 31 0b 01 90 48 c7 c7 RSP: 0018:ffffc900098a7940 EFLAGS: 00010246 RAX: e45f522131860100 RBX: ffff888063a5c180 RCX: 0000000000040000 RDX: ffffc9000afba000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 0000000000000004 R08: ffffffff81559432 R09: 1ffff1101726519a R10: dffffc0000000000 R11: ffffed101726519b R12: ffffc90001dc8b10 R13: dffffc0000000000 R14: 1ffff11008048038 R15: ffff888040240160 FS: 00007f8bfafc66c0(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020003e00 CR3: 000000001f770000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_dec include/linux/refcount.h:336 [inline] refcount_dec include/linux/refcount.h:351 [inline] inet_twsk_kill+0x74b/0x890 net/ipv4/inet_timewait_sock.c:70 inet_twsk_deschedule_put+0xec/0x2c0 net/ipv4/inet_timewait_sock.c:266 inet_twsk_purge+0x7fa/0x980 net/ipv4/inet_timewait_sock.c:349 tcp_twsk_purge+0xcb/0x140 net/ipv4/tcp_minisocks.c:401 tcp_sk_exit_batch+0x28/0x130 net/ipv4/tcp_ipv4.c:3517 ops_exit_list net/core/net_namespace.c:178 [inline] setup_net+0xa3b/0xca0 net/core/net_namespace.c:375 copy_net_ns+0x4e2/0x7b0 net/core/net_namespace.c:508 create_new_namespaces+0x425/0x7b0 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x124/0x180 kernel/nsproxy.c:228 ksys_unshare+0x619/0xc10 kernel/fork.c:3309 __do_sys_unshare kernel/fork.c:3380 [inline] __se_sys_unshare kernel/fork.c:3378 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3378 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8bfa1773b9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8bfafc6048 EFLAGS: 00000246 ORIG_RAX: 0000000000000110 RAX: ffffffffffffffda RBX: 00007f8bfa306058 RCX: 00007f8bfa1773b9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000062040200 RBP: 00007f8bfa1e48e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f8bfa306058 R15: 00007ffc4f7fc878