------------[ cut here ]------------ WARNING: CPU: 0 PID: 9560 at net/core/sock_map.c:1667 sock_map_destroy+0x2fe/0x870 net/core/sock_map.c:1667 Modules linked in: CPU: 0 UID: 0 PID: 9560 Comm: syz.0.1066 Not tainted 6.16.0-rc6-syzkaller-00002-g155a3c003e55 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:sock_map_destroy+0x2fe/0x870 net/core/sock_map.c:1667 Code: 5f c3 cc cc cc cc e8 11 76 3d f8 4c 89 ee 4c 89 e7 e8 a6 73 ff ff e8 01 76 3d f8 49 81 ff 90 79 7e 89 75 8d e8 f3 75 3d f8 90 <0f> 0b 90 eb 9a e8 e8 75 3d f8 48 89 eb 31 ff 48 83 e3 f8 48 89 de RSP: 0018:ffffc9000c79fb68 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffffff9b296e10 RCX: ffffc9000c79fb2c RDX: ffff88802b63c880 RSI: ffffffff897e7c8d RDI: ffffffff9b296e48 RBP: ffff8880263392e8 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff8880352d0d80 R13: 0000000000000000 R14: 1ffff920018f3f6e R15: ffffffff897e7990 FS: 000055555c5ad500(0000) GS:ffff8880d6713000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000020000000cf3d CR3: 000000003aa9b000 CR4: 0000000000352ef0 DR0: 0000000000000004 DR1: 0000000000000006 DR2: 0000000000000007 DR3: 0000000000001000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: inet_csk_destroy_sock+0x1a6/0x440 net/ipv4/inet_connection_sock.c:1306 __tcp_close+0xc05/0xff0 net/ipv4/tcp.c:3265 tcp_close+0x28/0x120 net/ipv4/tcp.c:3277 sock_map_close+0x3f0/0x9d0 net/core/sock_map.c:1705 inet_release+0x13c/0x280 net/ipv4/af_inet.c:435 inet6_release+0x4f/0x70 net/ipv6/af_inet6.c:487 __sock_release+0xb3/0x270 net/socket.c:647 sock_close+0x1c/0x30 net/socket.c:1391 __fput+0x3ff/0xb70 fs/file_table.c:465 task_work_run+0x14d/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:114 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] do_syscall_64+0x3f6/0x4c0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f084af8e929 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:00007fffcc76f568 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 000000000001c13a RCX: 00007f084af8e929 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f084b1b7ba0 R08: 0000000000000001 R09: 0000000fcc76f85f R10: 00007f084ae00000 R11: 0000000000000246 R12: 00007f084b1b5fac R13: 00007f084b1b5fa0 R14: ffffffffffffffff R15: 00007fffcc76f680