------------[ cut here ]------------ WARNING: CPU: 0 PID: 9425 at net/ipv4/af_inet.c:154 inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154 Modules linked in: CPU: 0 PID: 9425 Comm: syz-executor.0 Not tainted 6.3.0-rc7-syzkaller-00043-gaf67688dca57 #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 6c ec f8 0f 0b e9 07 fe ff ff e8 29 6c ec f8 0f 0b e9 3f fe ff ff e8 1d 6c ec f8 0f 0b e9 95 fd ff ff e8 11 6c ec f8 <0f> 0b e9 9f fe ff ff e8 15 91 3c f9 e9 7a fc ff ff 4c 89 e7 e8 48 RSP: 0018:ffffc90000007c48 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00000000ffff9000 RCX: 0000000000000100 RDX: ffff888023fd4280 RSI: ffffffff88959fff RDI: 0000000000000005 RBP: ffff888029162ec0 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000ffff9000 R11: 000000000000002a R12: ffff888029162ee8 R13: ffff888029163134 R14: ffff888029162f40 R15: 0000000000000001 FS: 00007efca4553700(0000) GS:ffff88802c600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa920f15dc9 CR3: 000000002829a000 CR4: 0000000000150ef0 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:ffffc9000407f8a8 EFLAGS: 00000202 RAX: 000000000001571f RBX: 0000000000000001 RCX: 1ffffffff2299b86 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001 RBP: ffff88802a6103a8 R08: 0000000000000001 R09: ffffffff914c7b8f R10: 0000000000000001 R11: 0000000000000000 R12: ffff88802a6103a0 R13: ffff88802a6103a0 R14: ffff88802a6103a8 R15: 0000000000000005 spin_unlock_irq include/linux/spinlock.h:400 [inline] filemap_remove_folio+0x164/0x3f0 mm/filemap.c:258 truncate_inode_folio+0x4c/0x70 mm/truncate.c:196 shmem_undo_range+0x33e/0x1340 mm/shmem.c:942 shmem_truncate_range mm/shmem.c:1041 [inline] shmem_evict_inode+0x32f/0xb60 mm/shmem.c:1156 evict+0x2ed/0x6b0 fs/inode.c:665 iput_final fs/inode.c:1748 [inline] iput.part.0+0x50a/0x740 fs/inode.c:1774 iput+0x5c/0x80 fs/inode.c:1764 dentry_unlink_inode+0x2b1/0x460 fs/dcache.c:401 __dentry_kill+0x3c0/0x640 fs/dcache.c:607 dentry_kill fs/dcache.c:733 [inline] dput+0x865/0xe10 fs/dcache.c:913 __fput+0x3cc/0xa90 fs/file_table.c:329 task_work_run+0x16f/0x270 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7efca388bf57 Code: 3c 1c 48 f7 d8 49 39 c4 72 b8 e8 c4 57 02 00 85 c0 78 bd 48 83 c4 08 4c 89 e0 5b 41 5c c3 0f 1f 44 00 00 b8 10 00 00 00 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:00007efca4552f88 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 00000000000050ef RCX: 00007efca388bf57 RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000004 RBP: 00007efca45536b8 R08: 00007efca4553020 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff R13: 0000000000000011 R14: 00007efca4552fe0 R15: 0000000020001180 ---------------- 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)