list_add double add: new=ffff888090eac1e0, prev=ffffffff89cda480, next=ffff888090eac1e0. ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:29! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 7997 Comm: syz-executor.2 Not tainted 4.14.295-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 task: ffff8880b3bfe000 task.stack: ffff8880a0370000 RIP: 0010:__list_add_valid.cold+0x26/0x3c lib/list_debug.c:29 RSP: 0018:ffff8880a0377c88 EFLAGS: 00010082 RAX: 0000000000000058 RBX: ffff888090eac180 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff878bc9e0 RDI: ffffed101406ef87 RBP: ffff888090eac1e0 R08: 0000000000000058 R09: 0000000000000002 R10: 0000000000000000 R11: ffff8880b3bfe000 R12: ffff888090eac1e0 R13: ffff888090eac1e0 R14: ffff88804624f158 R15: ffffffff8c9b37a0 FS: 00005555573c1400(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f380839f1b8 CR3: 00000000ab1dc000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_add include/linux/list.h:60 [inline] list_add include/linux/list.h:79 [inline] __put_net+0x3a/0x100 net/core/net_namespace.c:533 put_net include/net/net_namespace.h:219 [inline] __sk_destruct+0x5f5/0x760 net/core/sock.c:1599 sk_destruct net/core/sock.c:1615 [inline] __sk_free+0xd9/0x2d0 net/core/sock.c:1623 sk_free+0x2b/0x40 net/core/sock.c:1634 sock_put include/net/sock.h:1664 [inline] tcp_close+0x98b/0xed0 net/ipv4/tcp.c:2308 inet_release+0xdf/0x1b0 net/ipv4/af_inet.c:425 __sock_release+0xcd/0x2b0 net/socket.c:602 sock_close+0x15/0x20 net/socket.c:1139 __fput+0x25f/0x7a0 fs/file_table.c:210 task_work_run+0x11f/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f380825d37b RSP: 002b:00007ffc01ff9550 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 00007ffc01ff95f0 RCX: 00007f380825d37b RDX: 0000000000000000 RSI: 000000c3f9c589e8 RDI: 0000000000000003 RBP: 0000000000000003 R08: 0000000000000000 R09: ffffffffffff0000 R10: 0000000000000010 R11: 0000000000000293 R12: 0000000000000032 R13: 0000000000034ae3 R14: 0000000000000003 R15: 00007ffc01ff9630 Code: e9 30 f5 0e fc 4c 89 e1 48 c7 c7 80 07 cd 87 e8 b6 f0 f7 ff 0f 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 c0 08 cd 87 e8 9f f0 f7 ff <0f> 0b 48 89 f1 48 c7 c7 40 08 cd 87 4c 89 e6 e8 8b f0 f7 ff 0f RIP: __list_add_valid.cold+0x26/0x3c lib/list_debug.c:29 RSP: ffff8880a0377c88 ---[ end trace 719716b04562a7d4 ]---