------------[ cut here ]------------ WARNING: CPU: 0 PID: 15774 at net/ipv4/af_inet.c:154 inet_sock_destruct+0x6df/0x8a0 net/ipv4/af_inet.c:154 Modules linked in: CPU: 0 PID: 15774 Comm: syz-executor.2 Not tainted 6.3.0-rc5-syzkaller-00153-gaa318c48808c #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 e5 87 ec f8 0f 0b e9 07 fe ff ff e8 d9 87 ec f8 0f 0b e9 3f fe ff ff e8 cd 87 ec f8 0f 0b e9 95 fd ff ff e8 c1 87 ec f8 <0f> 0b e9 9f fe ff ff e8 15 a8 3c f9 e9 7a fc ff ff 4c 89 e7 e8 48 RSP: 0018:ffffc90000007c48 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00000000ffff9000 RCX: 0000000000000100 RDX: ffff888023000180 RSI: ffffffff889570af RDI: 0000000000000005 RBP: ffff888026ccc380 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000ffff9000 R11: 0000000000000004 R12: ffff888026ccc3a8 R13: ffff888026ccc5f4 R14: ffff888026ccc400 R15: 0000000000000001 FS: 00007fd66b1ef700(0000) GS:ffff88802ca00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd660c7ec00 CR3: 0000000073966000 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_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x3c/0x70 kernel/locking/spinlock.c:194 Code: 74 24 10 e8 d6 c5 61 f7 48 89 ef e8 6e 32 62 f7 81 e3 00 02 00 00 75 25 9c 58 f6 c4 02 75 2d 48 85 db 74 01 fb bf 01 00 00 00 4f 6a 54 f7 65 8b 05 70 b8 01 76 85 c0 74 0a 5b 5d c3 e8 2c 80 RSP: 0018:ffffc9000e2cf8b8 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff229c35e RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001 RBP: ffff888058cc0050 R08: 0000000000000001 R09: ffffffff914c7bc7 R10: 0000000000000001 R11: 0000000000000000 R12: 000000000000000f R13: ffff88802ca36d70 R14: dffffc0000000000 R15: ffff88807ffd6000 spin_unlock_irqrestore include/linux/spinlock.h:405 [inline] unlock_page_lruvec_irqrestore include/linux/memcontrol.h:1639 [inline] folio_batch_move_lru+0x283/0x440 mm/swap.c:223 folio_batch_add_and_move+0xd4/0x130 mm/swap.c:234 folio_add_lru+0x376/0x7c0 mm/swap.c:517 shmem_get_folio_gfp+0x6d6/0x1950 mm/shmem.c:1972 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:0x7fd66a43deef 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:00007fd66b1eef10 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fd66a43deef RDX: 0000000000080000 RSI: 00007fd660bff000 RDI: 0000000000000003 RBP: 00007fd660bff000 R08: 0000000000000000 R09: 00000000000005e9 R10: 0000000000080000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fd66b1eefdc R14: 00007fd66b1eefe0 R15: 0000000020000682 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 24 10 and $0x10,%al 2: e8 d6 c5 61 f7 callq 0xf761c5dd 7: 48 89 ef mov %rbp,%rdi a: e8 6e 32 62 f7 callq 0xf762327d f: 81 e3 00 02 00 00 and $0x200,%ebx 15: 75 25 jne 0x3c 17: 9c pushfq 18: 58 pop %rax 19: f6 c4 02 test $0x2,%ah 1c: 75 2d jne 0x4b 1e: 48 85 db test %rbx,%rbx 21: 74 01 je 0x24 23: fb sti 24: bf 01 00 00 00 mov $0x1,%edi * 29: e8 4f 6a 54 f7 callq 0xf7546a7d <-- trapping instruction 2e: 65 8b 05 70 b8 01 76 mov %gs:0x7601b870(%rip),%eax # 0x7601b8a5 35: 85 c0 test %eax,%eax 37: 74 0a je 0x43 39: 5b pop %rbx 3a: 5d pop %rbp 3b: c3 retq 3c: e8 .byte 0xe8 3d: 2c 80 sub $0x80,%al