------------[ cut here ]------------ WARNING: CPU: 0 PID: 5153 at net/ipv4/af_inet.c:154 inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154 Modules linked in: CPU: 0 PID: 5153 Comm: syz-executor.3 Not tainted 6.3.0-syzkaller-07927-g32f7ad0fbe75 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154 Code: ff e8 b5 e1 e7 f8 0f 0b e9 07 fe ff ff e8 a9 e1 e7 f8 0f 0b e9 3f fe ff ff e8 9d e1 e7 f8 0f 0b e9 95 fd ff ff e8 91 e1 e7 f8 <0f> 0b e9 9f fe ff ff e8 e5 a7 39 f9 e9 7a fc ff ff 4c 89 e7 e8 18 RSP: 0018:ffffc90000007c48 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00000000ffff9000 RCX: 0000000000000100 RDX: ffff888017292400 RSI: ffffffff889bb5ef RDI: 0000000000000005 RBP: ffff888079ffe200 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000ffff9000 R11: 0000000000000036 R12: ffff888079ffe228 R13: ffff888079ffe474 R14: ffff888079ffe280 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff88802c600000(0063) knlGS:0000000056d00380 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f734e1b0 CR3: 000000006d470000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __sk_destruct+0x4d/0x770 net/core/sock.c:2130 sk_destruct net/core/sock.c:2178 [inline] __sk_free+0x175/0x460 net/core/sock.c:2189 sk_free+0x7c/0xa0 net/core/sock.c:2200 sock_put include/net/sock.h:1968 [inline] tcp_write_timer+0x24b/0x2b0 net/ipv4/tcp_timer.c:644 call_timer_fn+0x1a0/0x580 kernel/time/timer.c:1700 expire_timers+0x29b/0x4b0 kernel/time/timer.c:1751 __run_timers kernel/time/timer.c:2022 [inline] __run_timers kernel/time/timer.c:1995 [inline] run_timer_softirq+0x326/0x910 kernel/time/timer.c:2035 __do_softirq+0x1d4/0x905 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x114/0x190 kernel/softirq.c:650 irq_exit_rcu+0x9/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:lock_acquire+0x1f5/0x520 kernel/locking/lockdep.c:5659 Code: 50 9d 7e 83 f8 01 0f 85 b9 02 00 00 9c 58 f6 c4 02 0f 85 a4 02 00 00 48 83 7c 24 08 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 8b 84 24 RSP: 0018:ffffc90003a9fde8 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff92000753fbf RCX: ffffffff8164def6 RDX: 1ffff11002e525d8 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff914f3bdf R10: fffffbfff229e77b R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffff888023dd0498 R15: 0000000000000000 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] close_fd+0x50/0xa0 fs/file.c:659 __do_sys_close fs/open.c:1486 [inline] __se_sys_close fs/open.c:1484 [inline] __ia32_sys_close+0x33/0xa0 fs/open.c:1484 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7f03579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000ff9ab140 EFLAGS: 00000286 ORIG_RAX: 0000000000000006 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000002 RDX: 0000000000000000 RSI: 00000000f734e000 RDI: 00000000ff9ab1fc RBP: 00000000f7353e24 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 50 push %rax 1: 9d popfq 2: 7e 83 jle 0xffffff87 4: f8 clc 5: 01 0f add %ecx,(%rdi) 7: 85 b9 02 00 00 9c test %edi,-0x63fffffe(%rcx) d: 58 pop %rax e: f6 c4 02 test $0x2,%ah 11: 0f 85 a4 02 00 00 jne 0x2bb 17: 48 83 7c 24 08 00 cmpq $0x0,0x8(%rsp) 1d: 74 01 je 0x20 1f: fb sti 20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 27: fc ff df * 2a: 48 01 c3 add %rax,%rbx <-- trapping instruction 2d: 48 c7 03 00 00 00 00 movq $0x0,(%rbx) 34: 48 c7 43 08 00 00 00 movq $0x0,0x8(%rbx) 3b: 00 3c: 48 rex.W 3d: 8b .byte 0x8b 3e: 84 .byte 0x84 3f: 24 .byte 0x24