------------[ cut here ]------------ sk->sk_forward_alloc WARNING: net/ipv4/af_inet.c:163 at inet_sock_destruct+0x653/0x800 net/ipv4/af_inet.c:163, CPU#1: syz.8.5157/23599 Modules linked in: CPU: 1 UID: 0 PID: 23599 Comm: syz.8.5157 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:inet_sock_destruct+0x653/0x800 net/ipv4/af_inet.c:163 Code: e3 4e ff e9 06 fd ff ff e8 7a 49 ff f7 90 0f 0b 90 e9 35 fe ff ff e8 6c 49 ff f7 90 0f 0b 90 e9 c5 fe ff ff e8 5e 49 ff f7 90 <0f> 0b 90 e9 04 ff ff ff e8 50 49 ff f7 90 0f 0b 90 e9 65 fe ff ff RSP: 0018:ffffc900006a0d98 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff888039c4e600 RCX: ffffffff8a09b2c7 RDX: ffff88803714c980 RSI: ffffffff8a09b3c2 RDI: ffff88803714c980 RBP: 0000000000000f70 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000f70 R11: 0000000000000000 R12: ffff888039c4e600 R13: ffff888039c4e690 R14: ffffffff81eebc9d R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880d643c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001000 CR3: 0000000053bfa000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 000000000000001e DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: __sk_destruct+0x85/0xbb0 net/core/sock.c:2350 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:179 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:194 Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 d6 3d 51 f6 48 89 df e8 be 8d 51 f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 65 ae 41 f6 65 8b 05 5e 6e 7a 08 85 c0 74 16 5b RSP: 0018:ffffc90003c07100 EFLAGS: 00000246 RAX: 0000000000000006 RBX: ffff888057db2198 RCX: 0000000000000080 RDX: 0000000000000000 RSI: ffffffff8de79dfe RDI: ffffffff8c1b1a20 RBP: 0000000000000246 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffc90003c07264 R13: dffffc0000000000 R14: ffffc90003c072e8 R15: ffffc90003c07328 spin_unlock_irqrestore include/linux/spinlock.h:407 [inline] unlock_page_lruvec_irqrestore include/linux/memcontrol.h:1495 [inline] folios_put_refs+0x4df/0x840 mm/swap.c:994 free_pages_and_swap_cache+0x3d9/0x480 mm/swap_state.c:426 __tlb_batch_free_encoded_pages+0xe9/0x280 mm/mmu_gather.c:138 tlb_batch_pages_flush mm/mmu_gather.c:151 [inline] tlb_flush_mmu_free mm/mmu_gather.c:398 [inline] tlb_flush_mmu+0xe9/0x590 mm/mmu_gather.c:405 zap_pte_range mm/memory.c:1968 [inline] zap_pmd_range mm/memory.c:2021 [inline] zap_pud_range mm/memory.c:2049 [inline] zap_p4d_range mm/memory.c:2070 [inline] unmap_page_range+0x2333/0x4840 mm/memory.c:2091 unmap_single_vma+0x153/0x240 mm/memory.c:2133 unmap_vmas+0x295/0x590 mm/memory.c:2171 exit_mmap+0x1ef/0xa30 mm/mmap.c:1302 __mmput+0x12a/0x410 kernel/fork.c:1175 mmput+0x67/0x80 kernel/fork.c:1198 exit_mm kernel/exit.c:581 [inline] do_exit+0x819/0x2b60 kernel/exit.c:964 do_group_exit+0xd5/0x2a0 kernel/exit.c:1118 get_signal+0x1ec7/0x21e0 kernel/signal.c:3034 arch_do_signal_or_restart+0x91/0x7a0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline] exit_to_user_mode_loop+0x86/0x4a0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] do_syscall_64+0x67c/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc0ab79c819 Code: Unable to access opcode bytes at 0x7fc0ab79c7ef. RSP: 002b:00007fc0ac6b80e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007fc0aba16188 RCX: 00007fc0ab79c819 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fc0aba16188 RBP: 00007fc0aba16180 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc0aba16218 R14: 00007fffd2937650 R15: 00007fffd2937738 ---------------- Code disassembly (best guess): 0: f5 cmc 1: 53 push %rbx 2: 48 8b 74 24 10 mov 0x10(%rsp),%rsi 7: 48 89 fb mov %rdi,%rbx a: 48 83 c7 18 add $0x18,%rdi e: e8 d6 3d 51 f6 call 0xf6513de9 13: 48 89 df mov %rbx,%rdi 16: e8 be 8d 51 f6 call 0xf6518dd9 1b: f7 c5 00 02 00 00 test $0x200,%ebp 21: 75 23 jne 0x46 23: 9c pushf 24: 58 pop %rax 25: f6 c4 02 test $0x2,%ah 28: 75 37 jne 0x61 * 2a: bf 01 00 00 00 mov $0x1,%edi <-- trapping instruction 2f: e8 65 ae 41 f6 call 0xf641ae99 34: 65 8b 05 5e 6e 7a 08 mov %gs:0x87a6e5e(%rip),%eax # 0x87a6e99 3b: 85 c0 test %eax,%eax 3d: 74 16 je 0x55 3f: 5b pop %rbx