R10: 0000000000000002 R11: 0000000000000246 R12: 0000000008100000 R13: 0000000020000100 R14: 0000000000020000 R15: 0000000020000340 ================================================================== BUG: KASAN: slab-use-after-free in flush_tlb_func+0x24d/0x560 Write of size 8 at addr ffff888014e62840 by task ksoftirqd/1/22 CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xca/0x120 print_report+0xcb/0x670 kasan_report+0xca/0x100 kasan_check_range+0x39/0x1b0 flush_tlb_func+0x24d/0x560 __flush_smp_call_function_queue+0x20d/0x740 __sysvec_call_function_single+0x6d/0x360 sysvec_call_function_single+0xa1/0xc0 asm_sysvec_call_function_single+0x1a/0x20 RIP: 0010:unwind_next_frame+0x10/0x2540 Code: 26 bf 79 00 e9 3a ff ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 b8 00 00 00 00 00 fc ff df 41 57 <48> 89 fa 49 89 ff 41 56 48 c1 ea 03 41 55 41 54 55 53 48 83 ec 38 RSP: 0018:ffff8880097478b8 EFLAGS: 00000202 RAX: dffffc0000000000 RBX: ffffffff81604fe0 RCX: ffff88800974781c RDX: 1ffff110012e8f43 RSI: ffffffff81aec888 RDI: ffff8880097478c8 RBP: ffff888009747960 R08: ffffffff86891100 R09: ffff888009747908 R10: 000000000003bb04 R11: 0000000000024a58 R12: ffff888009747990 R13: 0000000000000000 R14: ffff88800972b700 R15: ffff88800ee28a68 arch_stack_walk+0x86/0xf0 stack_trace_save+0x8e/0xc0 kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3a/0x60 __kasan_slab_free+0x38/0x50 kmem_cache_free+0x2a1/0x460 rcu_core+0x7c8/0x1790 handle_softirqs+0x1b1/0x770 run_ksoftirqd+0x2e/0x60 smpboot_thread_fn+0x41d/0x9d0 kthread+0x3c8/0x740 ret_from_fork+0x34b/0x430 ret_from_fork_asm+0x1a/0x30 Allocated by task 281: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 __kasan_slab_alloc+0x59/0x70 kmem_cache_alloc_noprof+0x13c/0x470 copy_process+0x6f3a/0x73e0 kernel_clone+0xea/0x820 __do_sys_clone+0xce/0x120 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 8809: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3a/0x60 __kasan_slab_free+0x38/0x50 kmem_cache_free+0x2a1/0x460 mmput+0x305/0x390 do_exit+0x79d/0x2970 do_group_exit+0xd3/0x2a0 get_signal+0x2315/0x2340 arch_do_signal_or_restart+0x80/0x790 exit_to_user_mode_loop+0x8b/0x100 do_syscall_64+0x2f7/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888014e61ec0 which belongs to the cache mm_struct of size 2456 The buggy address is located 2432 bytes inside of freed 2456-byte region [ffff888014e61ec0, ffff888014e62858) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14e60 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888009b96101 flags: 0x100000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0100000000000040 ffff888008c4bc80 ffffea0000576200 dead000000000002 raw: 0000000000000000 00000000800c000c 00000000f5000000 ffff888009b96101 head: 0100000000000040 ffff888008c4bc80 ffffea0000576200 dead000000000002 head: 0000000000000000 00000000800c000c 00000000f5000000 ffff888009b96101 head: 0100000000000003 ffffea0000539801 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888014e62700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888014e62780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888014e62800: fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc ^ ffff888014e62880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888014e62900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== loop6: detected capacity change from 0 to 256 FAT-fs (loop6): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1) FAT-fs (loop6): Filesystem has been set read-only loop1: detected capacity change from 0 to 256 loop0: detected capacity change from 0 to 288 No source specified FAT-fs (loop0): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop1): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 UID: 0 PID: 8845 Comm: syz-executor.5 Tainted: G B 6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xfa/0x120 should_fail_ex+0x4d7/0x5e0 should_failslab+0xc2/0x120 __kmalloc_noprof+0xb4/0x4b0 genl_family_rcv_msg_attrs_parse.constprop.0+0xdb/0x290 genl_family_rcv_msg_doit+0xab/0x2f0 genl_rcv_msg+0x532/0x7e0 netlink_rcv_skb+0x147/0x430 genl_rcv+0x28/0x40 netlink_unicast+0x53d/0x7f0 netlink_sendmsg+0x8ac/0xd80 ____sys_sendmsg+0xa67/0xc20 ___sys_sendmsg+0x10f/0x1b0 __sys_sendmsg+0x150/0x200 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbdbd359b19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbdba8cf188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fbdbd46cf60 RCX: 00007fbdbd359b19 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003 RBP: 00007fbdba8cf1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffe6cc6f0df R14: 00007fbdba8cf300 R15: 0000000000022000 FAT-fs (loop1): error, invalid access to FAT (entry 0x000000ff) FAT-fs (loop1): Filesystem has been set read-only loop6: detected capacity change from 0 to 256 FAT-fs (loop6): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1) FAT-fs (loop6): Filesystem has been set read-only loop6: detected capacity change from 0 to 256 FAT-fs (loop6): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1) FAT-fs (loop6): Filesystem has been set read-only FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 UID: 0 PID: 8863 Comm: syz-executor.3 Tainted: G B 6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xfa/0x120 should_fail_ex+0x4d7/0x5e0 should_failslab+0xc2/0x120 kmem_cache_alloc_lru_noprof+0x73/0x460 ext4_alloc_inode+0x28/0x600 alloc_inode+0x67/0x250 new_inode+0x1e/0x160 __ext4_new_inode+0x35a/0x4b90 ext4_mkdir+0x331/0xb30 vfs_mkdir+0x59a/0x8d0 do_mkdirat+0x19f/0x3d0 __x64_sys_mkdir+0xf3/0x140 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1f535a6c27 Code: 73 01 c3 48 c7 c1 bc 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 53 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1f50b1cfa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1f535a6c27 RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000000020000300 RBP: 00007f1f50b1d040 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000200002c0 R13: 0000000020000300 R14: 00007f1f50b1d000 R15: 0000000020000740 loop0: detected capacity change from 0 to 288 FAT-fs (loop0): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) loop6: detected capacity change from 0 to 256 FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 0 CPU: 0 UID: 0 PID: 8876 Comm: syz-executor.1 Tainted: G B 6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xfa/0x120 should_fail_ex+0x4d7/0x5e0 should_fail_alloc_page+0xe0/0x110 prepare_alloc_pages+0x1af/0x500 __alloc_frozen_pages_noprof+0x17f/0x1f10 alloc_pages_mpol+0xed/0x340 folio_alloc_mpol_noprof+0x38/0x2a0 shmem_alloc_folio+0x11b/0x140 shmem_get_folio_gfp.constprop.0+0x4ea/0x13a0 shmem_write_begin+0x147/0x2e0 generic_perform_write+0x3a4/0x820 shmem_file_write_iter+0x111/0x140 vfs_write+0xbe9/0x10c0 __x64_sys_pwrite64+0x1f1/0x260 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9936e22ab7 Code: 08 89 3c 24 48 89 4c 24 18 e8 e5 f8 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 48 8b 74 24 08 8b 3c 24 b8 12 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 04 24 e8 15 f9 ff ff 48 8b RSP: 002b:00007f99343e4f20 EFLAGS: 00000293 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f9936eb9970 RCX: 00007f9936e22ab7 RDX: 000000000000002d RSI: 0000000020010000 RDI: 0000000000000004 RBP: 0000000000000002 R08: 0000000000000000 R09: ffffffffffffffff R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000004 R13: 0000000000000004 R14: 0000000020000200 R15: 0000000000000000 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 UID: 0 PID: 8879 Comm: syz-executor.5 Tainted: G B 6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) Tainted: [B]=BAD_PAGE Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xfa/0x120 should_fail_ex+0x4d7/0x5e0 should_failslab+0xc2/0x120 kmem_cache_alloc_node_noprof+0x71/0x470 __alloc_skb+0x2ab/0x370 netlink_ack+0x167/0xbf0 netlink_rcv_skb+0x344/0x430 genl_rcv+0x28/0x40 netlink_unicast+0x53d/0x7f0 netlink_sendmsg+0x8ac/0xd80 ____sys_sendmsg+0xa67/0xc20 ___sys_sendmsg+0x10f/0x1b0 __sys_sendmsg+0x150/0x200 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbdbd359b19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbdba8cf188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fbdbd46cf60 RCX: 00007fbdbd359b19 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003 RBP: 00007fbdba8cf1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffe6cc6f0df R14: 00007fbdba8cf300 R15: 0000000000022000 FAT-fs (loop6): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) FAT-fs (loop6): error, fat_get_cluster: invalid cluster chain (i_pos 1) FAT-fs (loop6): Filesystem has been set read-only loop1: detected capacity change from 0 to 256 FAT-fs (loop1): bogus number of reserved sectors FAT-fs (loop1): Can't find a valid FAT filesystem No source specified ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 79 00 jns 0x2 2: e9 3a ff ff ff jmpq 0xffffff41 7: 90 nop 8: 90 nop 9: 90 nop a: 90 nop b: 90 nop c: 90 nop d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: f3 0f 1e fa endbr64 1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 23: fc ff df 26: 41 57 push %r15 * 28: 48 89 fa mov %rdi,%rdx <-- trapping instruction 2b: 49 89 ff mov %rdi,%r15 2e: 41 56 push %r14 30: 48 c1 ea 03 shr $0x3,%rdx 34: 41 55 push %r13 36: 41 54 push %r12 38: 55 push %rbp 39: 53 push %rbx 3a: 48 83 ec 38 sub $0x38,%rsp