loop6: detected capacity change from 0 to 2048 EXT4-fs warning (device loop7): ext4_enable_quotas:7164: Failed to enable quota tracking (type=0, err=-22, ino=3). Please run e2fsck to fix. ================================================================== BUG: KASAN: slab-use-after-free in flush_tlb_func+0x24d/0x560 Write of size 8 at addr ffff8880199e0980 by task syz-executor.7/19505 CPU: 1 UID: 0 PID: 19505 Comm: syz-executor.7 Not tainted 6.16.0-rc4-next-20250701 #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+0x37/0x1a0 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:console_flush_all+0x8c1/0xb70 Code: 01 4c 89 e8 48 c1 e8 03 42 80 3c 30 00 0f 85 6c 02 00 00 49 89 6f 58 e9 3a ff ff ff e8 c8 46 1f 00 e8 d3 70 27 00 fb 4c 89 e8 <48> c1 e8 03 42 80 3c 30 00 0f 84 19 ff ff ff 4c 89 ef e8 d8 a7 5a RSP: 0018:ffff888031f0f4a8 EFLAGS: 00000202 RAX: ffffffff85f35eb8 RBX: 0000000000000001 RCX: 0000000000000040 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff81544fbd RBP: 0000000000000200 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff86438657 R11: 0000000000000001 R12: 0000000000000000 R13: ffffffff85f35eb8 R14: dffffc0000000000 R15: ffffffff85f35e60 console_unlock+0xc2/0x1f0 vprintk_emit+0x437/0x680 _printk+0xbe/0xf0 __ext4_warning+0x1c6/0x1f0 ext4_enable_quotas+0x765/0xb10 ext4_fill_super+0x96e6/0xb990 get_tree_bdev_flags+0x38a/0x620 vfs_get_tree+0x93/0x340 path_mount+0x12b7/0x1fb0 __x64_sys_mount+0x27b/0x300 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f508072f04a Code: 48 c7 c2 bc ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 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:00007f507dca2fa8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007f508072f04a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f507dca3000 RBP: 00007f507dca3040 R08: 00007f507dca3040 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000020000000 R13: 0000000020000100 R14: 00007f507dca3000 R15: 0000000020013e00 Allocated by task 279: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 __kasan_slab_alloc+0x59/0x70 kmem_cache_alloc_noprof+0x13e/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 19506: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3c/0x90 __kasan_slab_free+0x3c/0x60 kmem_cache_free+0x2a5/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 ffff8880199e0000 which belongs to the cache mm_struct of size 2456 The buggy address is located 2432 bytes inside of freed 2456-byte region [ffff8880199e0000, ffff8880199e0998) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x199e0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88801e9a2e01 anon flags: 0x100000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0100000000000040 ffff888008c4bc80 0000000000000000 dead000000000001 raw: 0000000000000000 00000000800c000c 00000000f5000000 ffff88801e9a2e01 head: 0100000000000040 ffff888008c4bc80 0000000000000000 dead000000000001 head: 0000000000000000 00000000800c000c 00000000f5000000 ffff88801e9a2e01 head: 0100000000000003 ffffea0000667801 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880199e0880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880199e0900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880199e0980: fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880199e0a00: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff8880199e0a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs warning (device loop6): ext4_enable_quotas:7164: Failed to enable quota tracking (type=0, err=-22, ino=3). Please run e2fsck to fix. EXT4-fs (loop7): mount failed EXT4-fs (loop6): mount failed loop4: detected capacity change from 0 to 2216 loop3: detected capacity change from 0 to 2048 loop6: detected capacity change from 0 to 2048 loop2: detected capacity change from 0 to 2048 loop7: detected capacity change from 0 to 2048 loop5: detected capacity change from 0 to 2048 loop1: detected capacity change from 0 to 2048 EXT4-fs warning (device loop6): ext4_enable_quotas:7164: Failed to enable quota tracking (type=0, err=-22, ino=3). Please run e2fsck to fix. EXT4-fs warning (device loop3): ext4_enable_quotas:7164: Failed to enable quota tracking (type=0, err=-22, ino=3). Please run e2fsck to fix. EXT4-fs warning (device loop2): ext4_enable_quotas:7164: Failed to enable quota tracking (type=0, err=-22, ino=3). Please run e2fsck to fix. EXT4-fs (loop6): mount failed EXT4-fs (loop3): mount failed EXT4-fs (loop2): mount failed EXT4-fs (loop1): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. EXT4-fs (loop5): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. EXT4-fs (loop7): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. Quota error (device loop1): find_block_dqentry: Quota for id 0 referenced but not present Quota error (device loop1): qtree_read_dquot: Can't read quota structure for id 0 EXT4-fs error (device loop1): ext4_acquire_dquot:6931: comm syz-executor.1: Failed to acquire dquot type 1 EXT4-fs (loop5): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop1): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop7): unmounting filesystem 00000000-0000-0000-0000-000000000000. loop3: detected capacity change from 0 to 2048 loop2: detected capacity change from 0 to 2048 EXT4-fs warning (device loop3): ext4_enable_quotas:7164: Failed to enable quota tracking (type=0, err=-22, ino=3). Please run e2fsck to fix. EXT4-fs (loop3): mount failed EXT4-fs warning (device loop2): ext4_enable_quotas:7164: Failed to enable quota tracking (type=0, err=-22, ino=3). Please run e2fsck to fix. EXT4-fs (loop2): mount failed loop5: detected capacity change from 0 to 2048 EXT4-fs (loop5): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. ---------------- Code disassembly (best guess): 0: 01 4c 89 e8 add %ecx,-0x18(%rcx,%rcx,4) 4: 48 c1 e8 03 shr $0x3,%rax 8: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) d: 0f 85 6c 02 00 00 jne 0x27f 13: 49 89 6f 58 mov %rbp,0x58(%r15) 17: e9 3a ff ff ff jmpq 0xffffff56 1c: e8 c8 46 1f 00 callq 0x1f46e9 21: e8 d3 70 27 00 callq 0x2770f9 26: fb sti 27: 4c 89 e8 mov %r13,%rax * 2a: 48 c1 e8 03 shr $0x3,%rax <-- trapping instruction 2e: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) 33: 0f 84 19 ff ff ff je 0xffffff52 39: 4c 89 ef mov %r13,%rdi 3c: e8 .byte 0xe8 3d: d8 .byte 0xd8 3e: a7 cmpsl %es:(%rdi),%ds:(%rsi) 3f: 5a pop %rdx