------------[ cut here ]------------
WARNING: CPU: 0 PID: 22780 at net/ipv4/af_inet.c:154 inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154
Modules linked in:
CPU: 0 PID: 22780 Comm: syz-executor.2 Not tainted 6.3.0-rc6-syzkaller-00046-gde4664485abb #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 35 74 ec f8 0f 0b e9 07 fe ff ff e8 29 74 ec f8 0f 0b e9 3f fe ff ff e8 1d 74 ec f8 0f 0b e9 95 fd ff ff e8 11 74 ec f8 <0f> 0b e9 9f fe ff ff e8 15 99 3c f9 e9 7a fc ff ff 4c 89 e7 e8 48
RSP: 0018:ffffc90000007c48 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00000000ffff9000 RCX: 0000000000000100
RDX: ffff8880291340c0 RSI: ffffffff889587ff RDI: 0000000000000005
RBP: ffff8880250fa700 R08: 0000000000000005 R09: 0000000000000000
R10: 00000000ffff9000 R11: 0000000000000030 R12: ffff8880250fa728
R13: ffff8880250fa974 R14: ffff8880250fa780 R15: 0000000000000001
FS: 00007f4e40d9c700(0000) GS:ffff88802c600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4e377fe000 CR3: 000000004b6dd000 CR4: 0000000000150ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 00000000b04aff16
DR3: 0000000000000000 DR6: 00000000ffff0ff0 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:clear_page_erms+0xb/0x10 arch/x86/lib/clear_page_64.S:50
Code: 48 89 47 20 48 89 47 28 48 89 47 30 48 89 47 38 48 8d 7f 40 75 d9 90 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa b9 00 10 00 00 31 c0 aa c3 66 90 f3 0f 1e fa 89 c8 48 c1 e9 03 74 14 0f 1f 40 00 48
RSP: 0018:ffffc900032d7468 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000001000
RDX: ffffea0001e0b4c0 RSI: ffff888000000000 RDI: ffff8880782d3000
RBP: ffffea0001e0b4c0 R08: 0000160000000000 R09: ffffea0001e0b500
R10: fffff940003c169e R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
clear_page arch/x86/include/asm/page_64.h:53 [inline]
clear_highpage include/linux/highmem.h:240 [inline]
clear_highpage_kasan_tagged include/linux/highmem.h:250 [inline]
kernel_init_pages mm/page_alloc.c:1393 [inline]
post_alloc_hook+0x1b9/0x340 mm/page_alloc.c:2541
prep_new_page mm/page_alloc.c:2553 [inline]
get_page_from_freelist+0x1190/0x2e20 mm/page_alloc.c:4326
__alloc_pages+0x1cb/0x4a0 mm/page_alloc.c:5592
__folio_alloc+0x16/0x40 mm/page_alloc.c:5624
vma_alloc_folio+0x155/0x880 mm/mempolicy.c:2244
shmem_alloc_folio+0xff/0x1c0 mm/shmem.c:1574
shmem_alloc_and_acct_folio+0x15e/0x5d0 mm/shmem.c:1598
shmem_get_folio_gfp+0xacd/0x1950 mm/shmem.c:1937
shmem_get_folio mm/shmem.c:2068 [inline]
shmem_write_begin+0x14a/0x380 mm/shmem.c:2561
generic_perform_write+0x256/0x570 mm/filemap.c:3926
__generic_file_write_iter+0x2ae/0x500 mm/filemap.c:4054
generic_file_write_iter+0xe3/0x350 mm/filemap.c:4086
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:0x7f4e4003deef
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 99 fd ff ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 cc fd ff ff 48
RSP: 002b:00007f4e40d9bf10 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f4e4003deef
RDX: 0000000001000000 RSI: 00007f4e367ff000 RDI: 0000000000000003
RBP: 00007f4e367ff000 R08: 0000000000000000 R09: 00000000000050e7
R10: 0000000001000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00007f4e40d9bfdc R14: 00007f4e40d9bfe0 R15: 000000002000a2c2
----------------
Code disassembly (best guess):
0: 48 89 47 20 mov %rax,0x20(%rdi)
4: 48 89 47 28 mov %rax,0x28(%rdi)
8: 48 89 47 30 mov %rax,0x30(%rdi)
c: 48 89 47 38 mov %rax,0x38(%rdi)
10: 48 8d 7f 40 lea 0x40(%rdi),%rdi
14: 75 d9 jne 0xffffffef
16: 90 nop
17: c3 retq
18: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
1f: f3 0f 1e fa endbr64
23: b9 00 10 00 00 mov $0x1000,%ecx
28: 31 c0 xor %eax,%eax
* 2a: f3 aa rep stos %al,%es:(%rdi) <-- trapping instruction
2c: c3 retq
2d: 66 90 xchg %ax,%ax
2f: f3 0f 1e fa endbr64
33: 89 c8 mov %ecx,%eax
35: 48 c1 e9 03 shr $0x3,%rcx
39: 74 14 je 0x4f
3b: 0f 1f 40 00 nopl 0x0(%rax)
3f: 48 rex.W