------------[ cut here ]------------ WARNING: CPU: 1 PID: 4905 at net/ipv4/af_inet.c:157 inet_sock_destruct+0x64d/0x740 Modules linked in: CPU: 1 PID: 4905 Comm: syz.3.173 Not tainted 5.15.171-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:inet_sock_destruct+0x64d/0x740 net/ipv4/af_inet.c:157 Code: 01 e8 17 e1 99 f8 0f 0b e9 61 fe ff ff e8 0b e1 99 f8 0f 0b e9 96 fe ff ff e8 ff e0 99 f8 0f 0b e9 be fe ff ff e8 f3 e0 99 f8 <0f> 0b e9 e6 fe ff ff 89 d9 80 e1 07 fe c1 38 c1 0f 8c 5b fd ff ff RSP: 0018:ffffc90000dd0b68 EFLAGS: 00010246 RAX: ffffffff88e692bd RBX: 0000000000000100 RCX: ffff888026171dc0 RDX: 0000000000000100 RSI: 0000000000000100 RDI: 0000000000000000 RBP: 0000000000000007 R08: ffffffff88e6919d R09: ffffed100cbec848 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888065f63fc0 R13: ffff888065f644c8 R14: dffffc0000000000 R15: ffff888065f63fd2 FS: 00007fecdd03d6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fecd5c1c000 CR3: 000000007a455000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000400 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: __sk_destruct+0x54/0x840 net/core/sock.c:1955 rcu_do_batch kernel/rcu/tree.c:2523 [inline] rcu_core+0xa15/0x1650 kernel/rcu/tree.c:2763 handle_softirqs+0x3a7/0x930 kernel/softirq.c:558 __do_softirq kernel/softirq.c:592 [inline] invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x157/0x240 kernel/softirq.c:641 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:try_charge_memcg+0x315/0x1530 mm/memcontrol.c:2604 Code: 74 08 4c 89 f7 e8 4b 8b fa ff f6 84 24 51 01 00 00 02 44 8b 74 24 10 0f 85 c9 06 00 00 41 f7 c7 00 02 00 00 74 01 fb 45 84 e4 <49> bc 00 00 00 00 00 fc ff df 0f 85 4f 0f 00 00 e9 ad 07 00 00 48 RSP: 0018:ffffc900030373e0 EFLAGS: 00000202 RAX: dffffc0000000000 RBX: 1ffff92000606ea6 RCX: ffffffff81632d78 RDX: dffffc0000000000 RSI: ffffffff8a8b2a80 RDI: ffffffff8ad90500 RBP: ffffc90003037610 R08: dffffc0000000000 R09: fffffbfff20ec634 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffffc90003037570 R14: 0000000000000001 R15: 0000000000000246 try_charge mm/memcontrol.c:2776 [inline] charge_memcg+0x10b/0x340 mm/memcontrol.c:6762 __mem_cgroup_charge+0x23/0x80 mm/memcontrol.c:6798 mem_cgroup_charge include/linux/memcontrol.h:700 [inline] shmem_add_to_page_cache+0xc22/0x17c0 mm/shmem.c:718 shmem_getpage_gfp+0x1aa1/0x3190 mm/shmem.c:1942 shmem_getpage mm/shmem.c:151 [inline] shmem_write_begin+0xce/0x1a0 mm/shmem.c:2479 generic_perform_write+0x2bf/0x5b0 mm/filemap.c:3785 __generic_file_write_iter+0x243/0x4f0 mm/filemap.c:3912 generic_file_write_iter+0xa7/0x1b0 mm/filemap.c:3944 call_write_iter include/linux/fs.h:2174 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0xacd/0xe50 fs/read_write.c:594 ksys_write+0x1a2/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fecdebc41ff Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 c9 8d 02 00 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 1c 8e 02 00 48 RSP: 002b:00007fecdd03cdf0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000001000000 RCX: 00007fecdebc41ff RDX: 0000000001000000 RSI: 00007fecd4c1d000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000005103 R10: 0000000000000002 R11: 0000000000000293 R12: 0000000000000003 R13: 00007fecdd03cef0 R14: 00007fecdd03ceb0 R15: 00007fecd4c1d000 ---------------- Code disassembly (best guess): 0: 74 08 je 0xa 2: 4c 89 f7 mov %r14,%rdi 5: e8 4b 8b fa ff call 0xfffa8b55 a: f6 84 24 51 01 00 00 testb $0x2,0x151(%rsp) 11: 02 12: 44 8b 74 24 10 mov 0x10(%rsp),%r14d 17: 0f 85 c9 06 00 00 jne 0x6e6 1d: 41 f7 c7 00 02 00 00 test $0x200,%r15d 24: 74 01 je 0x27 26: fb sti 27: 45 84 e4 test %r12b,%r12b * 2a: 49 bc 00 00 00 00 00 movabs $0xdffffc0000000000,%r12 <-- trapping instruction 31: fc ff df 34: 0f 85 4f 0f 00 00 jne 0xf89 3a: e9 ad 07 00 00 jmp 0x7ec 3f: 48 rex.W