EXT4-fs error (device loop6): __ext4_iget:5464: inode #15: block 1803188595: comm syz-executor.6: invalid block EXT4-fs (loop4): Invalid log cluster size: 12910607 ================================================================== BUG: KASAN: slab-use-after-free in vma_multi_allowed+0x172/0x1b0 Read of size 8 at addr ffff888015bd8058 by task syz-executor.3/12077 CPU: 0 UID: 0 PID: 12077 Comm: syz-executor.3 Not tainted 6.17.0-rc1-next-20250815 #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/0x610 kasan_report+0xca/0x100 vma_multi_allowed+0x172/0x1b0 __do_sys_mremap+0xcb7/0x1410 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f913218eb19 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:00007f912f704188 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007f91322a1f60 RCX: 00007f913218eb19 RDX: 0000000000001000 RSI: 0000000000001000 RDI: 0000000020871000 RBP: 00007f91321e8f6d R08: 0000000020ffd000 R09: 0000000000000000 R10: 0000000000000007 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc3c93ca3f R14: 00007f912f704300 R15: 0000000000022000 Allocated by task 283: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 __kasan_slab_alloc+0x59/0x70 kmem_cache_alloc_noprof+0x13c/0x3d0 vm_area_dup+0x25/0x6f0 dup_mmap+0x80d/0x1d10 copy_process+0x6faf/0x73e0 kernel_clone+0xea/0x7f0 __do_sys_clone+0xce/0x120 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 12071: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3a/0x60 __kasan_slab_free+0x3f/0x50 slab_free_after_rcu_debug+0xd6/0x290 rcu_core+0x7c8/0x1800 handle_softirqs+0x1b1/0x770 __irq_exit_rcu+0xc4/0x100 irq_exit_rcu+0x9/0x20 sysvec_apic_timer_interrupt+0x70/0x80 asm_sysvec_apic_timer_interrupt+0x1a/0x20 Last potentially related work creation: kasan_save_stack+0x24/0x50 kasan_record_aux_stack+0x89/0xa0 kmem_cache_free+0x145/0x460 vms_complete_munmap_vmas+0x549/0x9f0 do_vmi_align_munmap+0x3db/0x550 do_vmi_munmap+0x1eb/0x3c0 do_munmap+0xbd/0x100 mremap_to+0x242/0x450 __do_sys_mremap+0xca2/0x1410 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888015bd8000 which belongs to the cache vm_area_struct of size 256 The buggy address is located 88 bytes inside of freed 256-byte region [ffff888015bd8000, ffff888015bd8100) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x15bd8 memcg:ffff88800a64a681 anon flags: 0x100000000000000(node=0|zone=1) page_type: f5(slab) raw: 0100000000000000 ffff888008fffc80 ffffea0000351600 dead000000000003 raw: 0000000000000000 00000000000c000c 00000000f5000000 ffff88800a64a681 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888015bd7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888015bd7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888015bd8000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888015bd8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888015bd8100: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs (loop6): unmounting filesystem 00000000-0000-0000-0000-000000000000. FAULT_INJECTION: forcing a failure. name fail_usercopy, interval 1, probability 0, space 0, times 0 CPU: 0 UID: 0 PID: 12088 Comm: syz-executor.2 Tainted: G B 6.17.0-rc1-next-20250815 #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 strncpy_from_user+0x3b/0x2f0 getname_flags.part.0+0x8d/0x540 getname_flags+0x95/0xe0 do_sys_openat2+0x9f/0x1b0 __x64_sys_openat+0x142/0x200 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7faf57efba04 Code: 84 00 00 00 00 00 44 89 54 24 0c e8 96 f9 ff ff 44 8b 54 24 0c 44 89 e2 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 89 44 24 0c e8 c8 f9 ff ff 8b 44 RSP: 002b:00007faf554bded0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007faf57f92970 RCX: 00007faf57efba04 RDX: 0000000000000002 RSI: 00007faf554be000 RDI: 00000000ffffff9c RBP: 00007faf554be000 R08: 0000000000000000 R09: ffffffffffffffff R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002 R13: 0000000000000004 R14: 0000000020000248 R15: 0000000000000003 loop1: detected capacity change from 0 to 4 EXT4-fs (loop1): VFS: Can't find ext4 filesystem loop6: detected capacity change from 0 to 512 loop4: detected capacity change from 0 to 4 EXT4-fs (loop6): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none. EXT4-fs (loop4): Invalid log cluster size: 12910607 loop1: detected capacity change from 0 to 4 EXT4-fs (loop1): couldn't mount as ext3 due to feature incompatibilities EXT4-fs error (device loop6): __ext4_iget:5464: inode #15: block 1803188595: comm syz-executor.6: invalid block FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 UID: 0 PID: 12207 Comm: syz-executor.2 Tainted: G B 6.17.0-rc1-next-20250815 #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_noprof+0x5f/0x3d0 alloc_empty_file+0x58/0x1e0 path_openat+0xe0/0x2880 do_filp_open+0x1e8/0x450 do_sys_openat2+0x104/0x1b0 __x64_sys_openat+0x142/0x200 do_syscall_64+0xbf/0x360 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7faf57efba04 Code: 84 00 00 00 00 00 44 89 54 24 0c e8 96 f9 ff ff 44 8b 54 24 0c 44 89 e2 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 89 44 24 0c e8 c8 f9 ff ff 8b 44 RSP: 002b:00007faf554bded0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007faf57f92970 RCX: 00007faf57efba04 RDX: 0000000000000002 RSI: 00007faf554be000 RDI: 00000000ffffff9c RBP: 00007faf554be000 R08: 0000000000000000 R09: ffffffffffffffff R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002 R13: 0000000000000004 R14: 0000000020000248 R15: 0000000000000003 EXT4-fs (loop6): unmounting filesystem 00000000-0000-0000-0000-000000000000.