EXT4-fs (loop0): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs error (device loop4): ext4_acquire_dquot:6931: comm syz-executor.4: Failed to acquire dquot type 1 ================================================================== BUG: KASAN: slab-use-after-free in flush_tlb_func+0x24d/0x560 Write of size 8 at addr ffff88803e5e7a40 by task swapper/0/0 CPU: 0 UID: 0 PID: 0 Comm: swapper/0 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:pv_native_safe_halt+0x1e/0x30 Code: 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 eb 0c 0f 1f 44 00 00 0f 00 2d 09 45 0d 00 0f 1f 44 00 00 fb f4 7d 6d 02 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 RSP: 0018:ffffffff85a07e00 EFLAGS: 00000202 RAX: 00000000002af683 RBX: 0000000000000000 RCX: ffffffff84b83987 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff814c6b04 RBP: dffffc0000000000 R08: 0000000000000001 R09: ffffed100d9c630a R10: ffff88806ce31853 R11: 0000000000000001 R12: ffffffff86438650 R13: 1ffffffff0b40fc7 R14: 0000000000000000 R15: 0000000000000000 default_idle+0xe/0x20 default_idle_call+0x6d/0xb0 do_idle+0x344/0x490 cpu_startup_entry+0x4f/0x60 rest_init+0x164/0x290 start_kernel+0x3f9/0x510 x86_64_start_reservations+0x18/0x30 x86_64_start_kernel+0x109/0x120 common_startup_64+0x13e/0x148 Allocated by task 6788: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 __kasan_slab_alloc+0x59/0x70 kmem_cache_alloc_noprof+0x13e/0x470 mm_alloc+0x1d/0xd0 alloc_bprm+0x2e3/0x6e0 do_execveat_common+0x235/0x770 __x64_sys_execve+0x95/0xc0 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 272: 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 finish_task_switch.isra.0+0x478/0x840 __schedule+0xe4e/0x3520 schedule+0xdb/0x390 do_wait+0x32a/0x560 kernel_waitid+0x101/0x170 __do_sys_waitid+0x201/0x240 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88803e5e70c0 which belongs to the cache mm_struct of size 2456 The buggy address is located 2432 bytes inside of freed 2456-byte region [ffff88803e5e70c0, ffff88803e5e7a58) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803e5e5200 pfn:0x3e5e0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88800df9e481 flags: 0x100000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0100000000000040 ffff888008c4bc80 ffffea0000231800 dead000000000002 raw: ffff88803e5e5200 00000000000c0003 00000000f5000000 ffff88800df9e481 head: 0100000000000040 ffff888008c4bc80 ffffea0000231800 dead000000000002 head: ffff88803e5e5200 00000000000c0003 00000000f5000000 ffff88800df9e481 head: 0100000000000003 ffffea0000f97801 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88803e5e7900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803e5e7980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88803e5e7a00: fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc ^ ffff88803e5e7a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88803e5e7b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== loop6: detected capacity change from 0 to 1024 loop4: detected capacity change from 0 to 1024 loop3: detected capacity change from 0 to 1024 loop1: detected capacity change from 0 to 1024 loop5: detected capacity change from 0 to 1024 __quota_error: 12 callbacks suppressed Quota error (device loop6): find_block_dqentry: Quota for id 0 referenced but not present Quota error (device loop6): qtree_read_dquot: Can't read quota structure for id 0 EXT4-fs error (device loop6): ext4_acquire_dquot:6931: comm syz-executor.6: Failed to acquire dquot type 1 loop0: detected capacity change from 0 to 1024 loop7: detected capacity change from 0 to 1024 Quota error (device loop4): find_block_dqentry: Quota for id 0 referenced but not present Quota error (device loop4): qtree_read_dquot: Can't read quota structure for id 0 EXT4-fs error (device loop4): ext4_acquire_dquot:6931: comm syz-executor.4: Failed to acquire dquot type 1 Quota error (device loop5): find_block_dqentry: Quota for id 0 referenced but not present Quota error (device loop5): qtree_read_dquot: Can't read quota structure for id 0 EXT4-fs error (device loop5): ext4_acquire_dquot:6931: comm syz-executor.5: Failed to acquire dquot type 1 Quota error (device loop3): find_block_dqentry: Quota for id 0 referenced but not present Quota error (device loop0): find_block_dqentry: Quota for id 0 referenced but not present Quota error (device loop3): qtree_read_dquot: Can't read quota structure for id 0 Quota error (device loop0): qtree_read_dquot: Can't read quota structure for id 0 EXT4-fs error (device loop3): ext4_acquire_dquot:6931: comm syz-executor.3: Failed to acquire dquot type 1 EXT4-fs error (device loop0): ext4_acquire_dquot:6931: comm syz-executor.0: Failed to acquire dquot type 1 loop4: detected capacity change from 0 to 1024 loop3: detected capacity change from 0 to 1024 loop6: detected capacity change from 0 to 1024 EXT4-fs error (device loop3): ext4_acquire_dquot:6931: comm syz-executor.3: Failed to acquire dquot type 1 EXT4-fs error (device loop4): ext4_acquire_dquot:6931: comm syz-executor.4: Failed to acquire dquot type 1 EXT4-fs error (device loop6): ext4_acquire_dquot:6931: comm syz-executor.6: Failed to acquire dquot type 1 loop5: detected capacity change from 0 to 1024 EXT4-fs mount: 22 callbacks suppressed EXT4-fs (loop5): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. loop3: detected capacity change from 0 to 1024 __quota_error: 6 callbacks suppressed Quota error (device loop5): find_block_dqentry: Quota for id 0 referenced but not present Quota error (device loop5): qtree_read_dquot: Can't read quota structure for id 0 EXT4-fs error (device loop5): ext4_acquire_dquot:6931: comm syz-executor.5: Failed to acquire dquot type 1 EXT4-fs (loop5): unmounting filesystem 00000000-0000-0000-0000-000000000000. loop0: detected capacity change from 0 to 1024 loop1: detected capacity change from 0 to 1024 loop4: detected capacity change from 0 to 1024 loop7: detected capacity change from 0 to 1024 loop6: detected capacity change from 0 to 1024 EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. EXT4-fs (loop3): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. EXT4-fs (loop1): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. EXT4-fs (loop4): 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. EXT4-fs (loop6): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. Quota error (device loop3): find_block_dqentry: Quota for id 0 referenced but not present Quota error (device loop3): qtree_read_dquot: Can't read quota structure for id 0 EXT4-fs error (device loop3): ext4_acquire_dquot:6931: comm syz-executor.3: Failed to acquire dquot type 1 Quota error (device loop0): find_block_dqentry: Quota for id 0 referenced but not present Quota error (device loop0): qtree_read_dquot: Can't read quota structure for id 0 EXT4-fs error (device loop0): ext4_acquire_dquot:6931: comm syz-executor.0: Failed to acquire dquot type 1 Quota error (device loop4): find_block_dqentry: Quota for id 0 referenced but not present Quota error (device loop4): qtree_read_dquot: Can't read quota structure for id 0 EXT4-fs error (device loop4): ext4_acquire_dquot:6931: comm syz-executor.4: Failed to acquire dquot type 1 Quota error (device loop6): find_block_dqentry: Quota for id 0 referenced but not present Quota error (device loop6): qtree_read_dquot: Can't read quota structure for id 0 EXT4-fs error (device loop6): ext4_acquire_dquot:6931: comm syz-executor.6: Failed to acquire dquot type 1 EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000. loop5: detected capacity change from 0 to 1024 EXT4-fs (loop1): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop5): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. EXT4-fs (loop3): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop0): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop6): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs error (device loop5): ext4_acquire_dquot:6931: comm syz-executor.5: Failed to acquire dquot type 1 EXT4-fs (loop7): unmounting filesystem 00000000-0000-0000-0000-000000000000. loop1: detected capacity change from 0 to 1024 EXT4-fs (loop5): unmounting filesystem 00000000-0000-0000-0000-000000000000. loop4: detected capacity change from 0 to 1024 loop2: detected capacity change from 0 to 264192 tmpfs: Bad value for 'nr_inodes' loop0: detected capacity change from 0 to 1024 EXT4-fs (loop1): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. EXT4-fs (loop4): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. EXT4-fs error (device loop4): ext4_acquire_dquot:6931: comm syz-executor.4: Failed to acquire dquot type 1 loop6: detected capacity change from 0 to 1024 EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. loop7: detected capacity change from 0 to 1024 EXT4-fs (loop6): 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. EXT4-fs error (device loop0): ext4_acquire_dquot:6931: comm syz-executor.0: Failed to acquire dquot type 1 EXT4-fs (loop1): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop7): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop0): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop6): unmounting filesystem 00000000-0000-0000-0000-000000000000. loop1: detected capacity change from 0 to 1024 loop4: detected capacity change from 0 to 1024 EXT4-fs (loop4): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. loop7: detected capacity change from 0 to 1024 EXT4-fs (loop1): 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. EXT4-fs error (device loop4): ext4_acquire_dquot:6931: comm syz-executor.4: Failed to acquire dquot type 1 EXT4-fs (loop1): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000. EXT4-fs (loop7): unmounting filesystem 00000000-0000-0000-0000-000000000000. loop2: detected capacity change from 0 to 264192 loop2: detected capacity change from 0 to 264192 tmpfs: Bad value for 'nr_inodes' loop2: detected capacity change from 0 to 264192 ---------------- Code disassembly (best guess): 0: 90 nop 1: 90 nop 2: 90 nop 3: 90 nop 4: 90 nop 5: 90 nop 6: 90 nop 7: 90 nop 8: 90 nop 9: 90 nop a: 90 nop b: 90 nop c: f3 0f 1e fa endbr64 10: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 15: eb 0c jmp 0x23 17: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 1c: 0f 00 2d 09 45 0d 00 verw 0xd4509(%rip) # 0xd452c 23: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 28: fb sti 29: f4 hlt * 2a: e9 7d 6d 02 00 jmpq 0x26dac <-- trapping instruction 2f: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) 36: 00 00 00 39: 0f 1f 00 nopl (%rax) 3c: 90 nop 3d: 90 nop 3e: 90 nop 3f: 90 nop