------------[ cut here ]------------ WARNING: CPU: 0 PID: 10184 at net/ipv4/af_inet.c:156 inet_sock_destruct+0x6fc/0x810 net/ipv4/af_inet.c:156 Modules linked in: CPU: 0 UID: 0 PID: 10184 Comm: syz-executor Not tainted 6.13.0-rc1-syzkaller-00268-g7ea2745766d7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:inet_sock_destruct+0x6fc/0x810 net/ipv4/af_inet.c:156 Code: 5a f7 90 0f 0b 90 e9 17 fe ff ff e8 fe 94 5a f7 90 0f 0b 90 41 80 3c 2c 00 0f 85 40 fe ff ff e9 43 fe ff ff e8 e5 94 5a f7 90 <0f> 0b 90 e9 b3 fe ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 00 fc RSP: 0018:ffffc90000007b50 EFLAGS: 00010246 RAX: ffffffff8a44dd3b RBX: 0000000000000fec RCX: ffff888056158000 RDX: 0000000000000100 RSI: 0000000000000fec RDI: 0000000000000000 RBP: ffff88807e72a880 R08: ffffffff8a44dbea R09: 1ffff1100fce5563 R10: dffffc0000000000 R11: ffffed100fce5564 R12: 1ffff1100fce5515 R13: ffff88807e72ad68 R14: ffff88807e72a8a8 R15: ffff88807e72a892 FS: 00005555896db500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7b4662a1c2 CR3: 000000006ae54000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __sk_destruct+0x58/0x5f0 net/core/sock.c:2260 rcu_do_batch kernel/rcu/tree.c:2567 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2823 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0xf7/0x220 kernel/softirq.c:655 irq_exit_rcu+0x9/0x30 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:jhash2 include/linux/jhash.h:129 [inline] RIP: 0010:hash_stack lib/stackdepot.c:514 [inline] RIP: 0010:stack_depot_save_flags+0x7a/0x830 lib/stackdepot.c:614 Code: 46 8d 34 cd 7b 71 f5 75 83 fe 04 72 75 44 89 f3 44 89 f0 4c 8b 44 24 08 4c 89 c2 03 02 03 5a 04 44 03 72 08 44 89 f7 c1 c7 04 <44> 29 f0 31 c7 41 01 de 29 fb 89 fd c1 c5 06 31 dd 44 01 f7 89 e9 RSP: 0018:ffffc90003c976d0 EFLAGS: 00000203 RAX: 00000000c1ff4ae2 RBX: 0000000027e16730 RCX: 00000000073c020e RDX: ffffc90003c9773c RSI: 0000000000000013 RDI: 00000000902be7f3 RBP: 000000000b8d5d32 R08: ffffc90003c97730 R09: 000000000000000b R10: dffffc0000000000 R11: fffffbfff2032a4f R12: 0000000000000c40 R13: 0000000000001000 R14: 000000003902be7f R15: ffffc90003c97730 kasan_save_stack mm/kasan/common.c:48 [inline] kasan_save_track+0x51/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4283 [inline] __kmalloc_noprof+0x285/0x4c0 mm/slub.c:4295 kmalloc_noprof include/linux/slab.h:905 [inline] tomoyo_realpath_from_path+0xcf/0x5e0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x2b7/0x740 security/tomoyo/file.c:822 tomoyo_path_symlink+0xde/0x120 security/tomoyo/tomoyo.c:212 security_path_symlink+0x16f/0x370 security/security.c:1979 do_symlinkat+0x136/0x3a0 fs/namei.c:4693 __do_sys_symlinkat fs/namei.c:4711 [inline] __se_sys_symlinkat fs/namei.c:4708 [inline] __x64_sys_symlinkat+0x95/0xb0 fs/namei.c:4708 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7b4657f457 Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 0a 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc900ee248 EFLAGS: 00000206 ORIG_RAX: 000000000000010a RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7b4657f457 RDX: 00007f7b465f5499 RSI: 00000000ffffff9c RDI: 00007ffc900ee2d0 RBP: 00007ffc900ee27c R08: 0000000000000017 R09: 00007ffc900edf97 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000032 R13: 000000000002b07d R14: 000000000002b068 R15: 00007ffc900ee2d0 ---------------- Code disassembly (best guess): 0: 46 8d 34 cd 7b 71 f5 lea 0x75f5717b(,%r9,8),%r14d 7: 75 8: 83 fe 04 cmp $0x4,%esi b: 72 75 jb 0x82 d: 44 89 f3 mov %r14d,%ebx 10: 44 89 f0 mov %r14d,%eax 13: 4c 8b 44 24 08 mov 0x8(%rsp),%r8 18: 4c 89 c2 mov %r8,%rdx 1b: 03 02 add (%rdx),%eax 1d: 03 5a 04 add 0x4(%rdx),%ebx 20: 44 03 72 08 add 0x8(%rdx),%r14d 24: 44 89 f7 mov %r14d,%edi 27: c1 c7 04 rol $0x4,%edi * 2a: 44 29 f0 sub %r14d,%eax <-- trapping instruction 2d: 31 c7 xor %eax,%edi 2f: 41 01 de add %ebx,%r14d 32: 29 fb sub %edi,%ebx 34: 89 fd mov %edi,%ebp 36: c1 c5 06 rol $0x6,%ebp 39: 31 dd xor %ebx,%ebp 3b: 44 01 f7 add %r14d,%edi 3e: 89 e9 mov %ebp,%ecx