WARNING: CPU: 2 PID: 10083 at net/ipv4/af_inet.c:154 inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154
Modules linked in:
CPU: 2 PID: 10083 Comm: syz-executor.3 Not tainted 6.3.0-rc7-syzkaller #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 a5 6d ec f8 0f 0b e9 07 fe ff ff e8 99 6d ec f8 0f 0b e9 3f fe ff ff e8 8d 6d ec f8 0f 0b e9 95 fd ff ff e8 81 6d ec f8 <0f> 0b e9 9f fe ff ff e8 85 92 3c f9 e9 7a fc ff ff 4c 89 e7 e8 b8
RSP: 0018:ffffc90000790c48 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00000000ffff9000 RCX: 0000000000000100
RDX: ffff88801bd5e100 RSI: ffffffff88959e8f RDI: 0000000000000005
RBP: ffff8880242b6ec0 R08: 0000000000000005 R09: 0000000000000000
R10: 00000000ffff9000 R11: 0000000000000001 R12: ffff8880242b6ee8
R13: ffff8880242b7134 R14: ffff8880242b6f40 R15: 0000000000000001
FS: 00007f81277ae700(0000) GS:ffff88802c800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020df8000 CR3: 000000007303a000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__sk_destruct+0x4d/0x770 net/core/sock.c:2135
sk_destruct net/core/sock.c:2183 [inline]
__sk_free+0x175/0x460 net/core/sock.c:2194
sk_free+0x7c/0xa0 net/core/sock.c:2205
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:1107
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x29/0x50 kernel/locking/spinlock.c:202
Code: 90 f3 0f 1e fa 55 48 8b 74 24 08 48 89 fd 48 83 c7 18 e8 4a 88 61 f7 48 89 ef e8 e2 f4 61 f7 e8 1d 54 86 f7 fb bf 01 00 00 00 d2 2c 54 f7 65 8b 05 a3 78 01 76 85 c0 74 02 5d c3 e8 10 45 fe
RSP: 0018:ffffc9002183fc18 EFLAGS: 00000202
RAX: 0000000000021443 RBX: dffffc0000000000 RCX: 1ffffffff1ceccf1
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffff888047cc6d30 R08: 0000000000000001 R09: 0000000000000001
R10: fffffbfff1ced2fa R11: 0000000000000000 R12: ffff88801bd5e100
R13: ffff888047cc6d30 R14: ffff888027883450 R15: ffffc9002183fcc0
spin_unlock_irq include/linux/spinlock.h:400 [inline]
snd_rawmidi_write+0x475/0xbb0 sound/core/rawmidi.c:1602
vfs_write+0x2db/0xe10 fs/read_write.c:582
ksys_write+0x1ec/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8126a8c169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f81277ae168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f8126babf80 RCX: 00007f8126a8c169
RDX: 00000000fffffd2c RSI: 0000000020000000 RDI: 0000000000000004
RBP: 00007f8126ae7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffee3a6cd0f R14: 00007f81277ae300 R15: 0000000000022000
----------------
Code disassembly (best guess):
0: 90 nop
1: f3 0f 1e fa endbr64
5: 55 push %rbp
6: 48 8b 74 24 08 mov 0x8(%rsp),%rsi
b: 48 89 fd mov %rdi,%rbp
e: 48 83 c7 18 add $0x18,%rdi
12: e8 4a 88 61 f7 callq 0xf7618861
17: 48 89 ef mov %rbp,%rdi
1a: e8 e2 f4 61 f7 callq 0xf761f501
1f: e8 1d 54 86 f7 callq 0xf7865441
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 d2 2c 54 f7 callq 0xf7542d01 <-- trapping instruction
2f: 65 8b 05 a3 78 01 76 mov %gs:0x760178a3(%rip),%eax # 0x760178d9
36: 85 c0 test %eax,%eax
38: 74 02 je 0x3c
3a: 5d pop %rbp
3b: c3 retq
3c: e8 .byte 0xe8
3d: 10 45 fe adc %al,-0x2(%rbp)