------------[ cut here ]------------ WARNING: CPU: 2 PID: 6857 at net/ipv4/af_inet.c:156 inet_sock_destruct+0x684/0x830 net/ipv4/af_inet.c:156 Modules linked in: CPU: 2 UID: 0 PID: 6857 Comm: syz.1.256 Not tainted 6.16.0-rc2-syzkaller #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:inet_sock_destruct+0x684/0x830 net/ipv4/af_inet.c:156 Code: 0f 0b 90 e9 12 fe ff ff e8 09 da bd f7 90 0f 0b 90 e9 5e fe ff ff e8 fb d9 bd f7 90 0f 0b 90 e9 94 fe ff ff e8 ed d9 bd f7 90 <0f> 0b 90 e9 d3 fe ff ff e8 9f b1 24 f8 e9 d7 fc ff ff 4c 89 ff e8 RSP: 0018:ffffc9000fe57c70 EFLAGS: 00010283 RAX: 0000000000001208 RBX: ffff8880560e6600 RCX: ffffc90005629000 RDX: 0000000000080000 RSI: ffffffff89fe4203 RDI: 0000000000000005 RBP: 0000000080003000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080003000 R11: 0000000000000001 R12: ffff8880560e6600 R13: ffff8880560e6690 R14: 0000000000000000 R15: ffff88805692dac0 FS: 00007f6db63ae6c0(0000) GS:ffff8880d6953000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c324ed4 CR3: 0000000036095000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __sk_destruct+0x81/0x980 net/core/sock.c:2347 sk_destruct+0xc2/0xf0 net/core/sock.c:2409 __sk_free+0xf4/0x3e0 net/core/sock.c:2420 sk_free+0x6a/0x90 net/core/sock.c:2431 sock_put include/net/sock.h:1960 [inline] tcp_close+0xd3/0x120 net/ipv4/tcp.c:3281 inet_release+0x13f/0x280 net/ipv4/af_inet.c:435 __sock_release+0xb0/0x270 net/socket.c:647 sock_close+0x1c/0x30 net/socket.c:1391 __fput+0x3ff/0xb70 fs/file_table.c:465 task_work_run+0x150/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:0x7f6db558e929 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:00007f6db63ae038 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f6db57b5fa0 RCX: 00007f6db558e929 RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000000 RBP: 00007f6db5610b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6db57b5fa0 R15: 00007ffe1cca1388