TCP: too many orphaned sockets ------------[ cut here ]------------ WARNING: CPU: 0 PID: 4136 at net/core/stream.c:205 sk_stream_kill_queues+0x2eb/0x3d0 net/core/stream.c:205 Modules linked in: CPU: 0 PID: 4136 Comm: syz-executor676 Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:sk_stream_kill_queues+0x2eb/0x3d0 net/core/stream.c:205 Code: 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e ec 00 00 00 8b ab 30 02 00 00 e9 60 ff ff ff e8 9e 68 4e fa 0f 0b eb 97 e8 95 68 4e fa <0f> 0b eb a0 e8 8c 68 4e fa 0f 0b e9 6a fe ff ff e8 10 c7 95 fa e9 RSP: 0018:ffffc9000d4c7be8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8881acdb9d00 RSI: ffffffff87290e5b RDI: 0000000000000003 RBP: 0000000000000577 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff87290dfb R11: 0000000000000000 R12: ffff8881acd66e30 R13: ffffffff908872c0 R14: ffff8881acd66c28 R15: ffff8881acd66db8 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1a5cc58238 CR3: 000000007701a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: inet_csk_destroy_sock+0x1a5/0x440 net/ipv4/inet_connection_sock.c:1012 __tcp_close+0xd5b/0x12b0 net/ipv4/tcp.c:2906 tcp_close+0x29/0xc0 net/ipv4/tcp.c:2918 inet_release+0x12e/0x280 net/ipv4/af_inet.c:428 __sock_release+0xcd/0x280 net/socket.c:650 sock_close+0x18/0x20 net/socket.c:1318 __fput+0x286/0x9f0 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0xc14/0x2b40 kernel/exit.c:832 do_group_exit+0x125/0x310 kernel/exit.c:929 __do_sys_exit_group kernel/exit.c:940 [inline] __se_sys_exit_group kernel/exit.c:938 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:938 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f1a5cc13da9 Code: Unable to access opcode bytes at RIP 0x7f1a5cc13d7f. RSP: 002b:00007ffee52a3b98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007f1a5cc89330 RCX: 00007f1a5cc13da9 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000246 R12: 00007f1a5cc89330 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 irq event stamp: 1990 hardirqs last enabled at (2000): [] console_unlock+0x8d5/0xb70 kernel/printk/printk.c:2715 hardirqs last disabled at (2011): [] sysvec_apic_timer_interrupt+0xb/0xc0 arch/x86/kernel/apic/apic.c:1097 softirqs last enabled at (1374): [] sock_orphan include/net/sock.h:2019 [inline] softirqs last enabled at (1374): [] __tcp_close+0x6fd/0x12b0 net/ipv4/tcp.c:2836 softirqs last disabled at (1376): [] sock_orphan include/net/sock.h:2018 [inline] softirqs last disabled at (1376): [] __tcp_close+0x6ea/0x12b0 net/ipv4/tcp.c:2836 ---[ end trace 476bda22f1c70cc2 ]---