------------[ cut here ]------------
WARNING: CPU: 1 PID: 10034 at net/ipv4/af_inet.c:154 inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154
Modules linked in:
CPU: 1 PID: 10034 Comm: syz-executor.3 Not tainted 6.2.0-syzkaller-13110-g1d2aea1bcf68 #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 25 b2 da f8 0f 0b e9 07 fe ff ff e8 19 b2 da f8 0f 0b e9 3f fe ff ff e8 0d b2 da f8 0f 0b e9 95 fd ff ff e8 01 b2 da f8 <0f> 0b e9 9f fe ff ff e8 35 42 2b f9 e9 7a fc ff ff 4c 89 e7 e8 68
RSP: 0018:ffffc900005c8c28 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00000000ffff9000 RCX: 0000000000000100
RDX: ffff88801e944180 RSI: ffffffff88a970af RDI: 0000000000000005
RBP: ffff88801de92240 R08: 0000000000000005 R09: 0000000000000000
R10: 00000000ffff9000 R11: 0000000000000029 R12: ffff88801de92268
R13: ffff88801de924b4 R14: ffff88801de922c0 R15: 1ffff920000b91a6
FS: 00007f9b5e01a700(0000) GS:ffff88802ca80000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020634000 CR3: 000000004b73a000 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+0x1da/0x800 kernel/time/timer.c:1700
expire_timers+0x2c6/0x5e0 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+0x2e3/0xae3 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:preempt_schedule_irq+0x4d/0x90 kernel/sched/core.c:6934
Code: 55 65 48 8b 2c 25 c0 b8 03 00 53 48 89 eb 48 c1 eb 03 48 01 c3 bf 01 00 00 00 e8 de 70 3e f7 e8 a9 4c 71 f7 fb bf 01 00 00 00 4e 98 ff ff 9c 58 fa f6 c4 02 75 1a bf 01 00 00 00 e8 3c 51 3e
RSP: 0018:ffffc9000670f788 EFLAGS: 00000206
RAX: 00000000000102a5 RBX: ffffed1003d28830 RCX: 1ffffffff22a2336
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffff88801e944180 R08: 0000000000000001 R09: ffffffff914d4c27
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
irqentry_exit+0x35/0x80 kernel/entry/common.c:432
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:write_comp_data+0x3c/0x90 kernel/kcov.c:236
Code: 01 00 00 49 89 f8 65 48 8b 14 25 c0 b8 03 00 a9 00 01 ff 00 74 0e 85 f6 74 59 8b 82 74 15 00 00 85 c0 74 4f 8b 82 50 15 00 00 <83> f8 03 75 44 48 8b 82 58 15 00 00 8b 92 54 15 00 00 48 8b 38 48
RSP: 0018:ffffc9000670f858 EFLAGS: 00000246
RAX: 0000000000000002 RBX: ffff88806f47a000 RCX: ffffffff81f4a245
RDX: ffff88801e944180 RSI: 0000000000000000 RDI: 0000000000000007
RBP: ffffea00015d6040 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffea00015d6040
R13: ffffea00015d6040 R14: 0000000000000000 R15: 0000000000408c40
folio_memcg include/linux/memcontrol.h:430 [inline]
page_memcg include/linux/memcontrol.h:437 [inline]
alloc_page_buffers+0x135/0x790 fs/buffer.c:866
create_empty_buffers+0x30/0xf30 fs/buffer.c:1586
ext4_block_write_begin+0x10aa/0x1780 fs/ext4/inode.c:1079
ext4_da_write_begin+0x450/0xb70 fs/ext4/inode.c:3081
generic_perform_write+0x256/0x570 mm/filemap.c:3926
ext4_buffered_write_iter+0x15b/0x460 fs/ext4/file.c:289
ext4_file_write_iter+0xbe0/0x1740 fs/ext4/file.c:710
call_write_iter include/linux/fs.h:1851 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x9ed/0xe10 fs/read_write.c:584
ksys_write+0x12b/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:0x7f9b5d28c0f9
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:00007f9b5e01a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9b5d3abf80 RCX: 00007f9b5d28c0f9
RDX: 000000000208e24b RSI: 0000000020000000 RDI: 0000000000000006
RBP: 00007f9b5d2e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe387fd5df R14: 00007f9b5e01a300 R15: 0000000000022000
----------------
Code disassembly (best guess):
0: 55 push %rbp
1: 65 48 8b 2c 25 c0 b8 mov %gs:0x3b8c0,%rbp
8: 03 00
a: 53 push %rbx
b: 48 89 eb mov %rbp,%rbx
e: 48 c1 eb 03 shr $0x3,%rbx
12: 48 01 c3 add %rax,%rbx
15: bf 01 00 00 00 mov $0x1,%edi
1a: e8 de 70 3e f7 callq 0xf73e70fd
1f: e8 a9 4c 71 f7 callq 0xf7714ccd
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 4e 98 ff ff callq 0xffff987d <-- trapping instruction
2f: 9c pushfq
30: 58 pop %rax
31: fa cli
32: f6 c4 02 test $0x2,%ah
35: 75 1a jne 0x51
37: bf 01 00 00 00 mov $0x1,%edi
3c: e8 .byte 0xe8
3d: 3c 51 cmp $0x51,%al
3f: 3e ds