R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007fffebeba0ef R14: 00007fc5f4e65300 R15: 0000000000022000
==================================================================
BUG: KASAN: slab-use-after-free in vma_multi_allowed+0x172/0x1b0
Read of size 8 at addr ffff888013b0ae18 by task syz-executor.0/6945
CPU: 0 UID: 0 PID: 6945 Comm: syz-executor.0 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:0x7f2fd13b3b19
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:00007f2fce929188 EFLAGS: 00000246 ORIG_RAX: 0000000000000019
RAX: ffffffffffffffda RBX: 00007f2fd14c6f60 RCX: 00007f2fd13b3b19
RDX: 0000000000001000 RSI: 0000000000001000 RDI: 0000000020871000
RBP: 00007f2fd140df6d R08: 0000000020870000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff485ba65f R14: 00007f2fce929300 R15: 0000000000022000
Allocated by task 281:
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 6945:
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 ffff888013b0adc0
which belongs to the cache vm_area_struct of size 256
The buggy address is located 88 bytes inside of
freed 256-byte region [ffff888013b0adc0, ffff888013b0aec0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x13b0a
memcg:ffff888046356d01
flags: 0x100000000000000(node=0|zone=1)
page_type: f5(slab)
raw: 0100000000000000 ffff888008fffc80 dead000000000100 dead000000000122
raw: 0000000000000000 00000000000c000c 00000000f5000000 ffff888046356d01
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888013b0ad00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888013b0ad80: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
>ffff888013b0ae00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888013b0ae80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff888013b0af00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
netlink: 16 bytes leftover after parsing attributes in process `syz-executor.7'.
netlink: 16 bytes leftover after parsing attributes in process `syz-executor.7'.
netlink: 16 bytes leftover after parsing attributes in process `syz-executor.7'.
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 UID: 0 PID: 6971 Comm: syz-executor.6 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
ext4_mb_new_blocks+0x64e/0x45b0
ext4_new_meta_blocks+0x1df/0x320
ext4_ind_map_blocks+0x93e/0x2340
ext4_map_blocks+0xa9e/0x14a0
ext4_do_writepages+0x1ad0/0x38b0
ext4_writepages+0x369/0x7a0
do_writepages+0x244/0x5c0
filemap_fdatawrite_wbc+0x10b/0x150
__filemap_fdatawrite_range+0xb9/0x100
filemap_write_and_wait_range+0xa5/0x130
ext4_change_inode_journal_flag+0x157/0x930
ext4_fileattr_set+0x1390/0x1810
vfs_fileattr_set+0x748/0xb50
ioctl_setflags+0x192/0x1f0
do_vfs_ioctl+0x11d/0x1470
__x64_sys_ioctl+0x116/0x210
do_syscall_64+0xbf/0x360
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f91d2432b19
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:00007f91cf9a8188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f91d2545f60 RCX: 00007f91d2432b19
RDX: 0000000020000000 RSI: 0000000040086602 RDI: 0000000000000005
RBP: 00007f91cf9a81d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffc3761d06f R14: 00007f91cf9a8300 R15: 0000000000022000
netlink: 16 bytes leftover after parsing attributes in process `syz-executor.7'.
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 UID: 0 PID: 6978 Comm: syz-executor.3 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
ext4_mb_new_blocks+0x2414/0x45b0
ext4_new_meta_blocks+0x1df/0x320
ext4_ind_map_blocks+0x93e/0x2340
ext4_map_blocks+0xa9e/0x14a0
ext4_do_writepages+0x1ad0/0x38b0
ext4_writepages+0x369/0x7a0
do_writepages+0x244/0x5c0
filemap_fdatawrite_wbc+0x10b/0x150
__filemap_fdatawrite_range+0xb9/0x100
filemap_write_and_wait_range+0xa5/0x130
ext4_change_inode_journal_flag+0x157/0x930
ext4_fileattr_set+0x1390/0x1810
vfs_fileattr_set+0x748/0xb50
ioctl_setflags+0x192/0x1f0
do_vfs_ioctl+0x11d/0x1470
__x64_sys_ioctl+0x116/0x210
do_syscall_64+0xbf/0x360
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc5f78efb19
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:00007fc5f4e65188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fc5f7a02f60 RCX: 00007fc5f78efb19
RDX: 0000000020000000 RSI: 0000000040086602 RDI: 0000000000000005
RBP: 00007fc5f4e651d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007fffebeba0ef R14: 00007fc5f4e65300 R15: 0000000000022000
netlink: 16 bytes leftover after parsing attributes in process `syz-executor.7'.
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 UID: 0 PID: 6990 Comm: syz-executor.5 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
ext4_mb_new_blocks+0x64e/0x45b0
ext4_new_meta_blocks+0x1df/0x320
ext4_ind_map_blocks+0x93e/0x2340
ext4_map_blocks+0xa9e/0x14a0
ext4_do_writepages+0x1ad0/0x38b0
ext4_writepages+0x369/0x7a0
do_writepages+0x244/0x5c0
filemap_fdatawrite_wbc+0x10b/0x150
__filemap_fdatawrite_range+0xb9/0x100
filemap_write_and_wait_range+0xa5/0x130
ext4_change_inode_journal_flag+0x157/0x930
ext4_fileattr_set+0x1390/0x1810
vfs_fileattr_set+0x748/0xb50
ioctl_setflags+0x192/0x1f0
do_vfs_ioctl+0x11d/0x1470
__x64_sys_ioctl+0x116/0x210
do_syscall_64+0xbf/0x360
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa8485f6b19
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:00007fa845b6c188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fa848709f60 RCX: 00007fa8485f6b19
RDX: 0000000020000000 RSI: 0000000040086602 RDI: 0000000000000005
RBP: 00007fa845b6c1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffc5281832f R14: 00007fa845b6c300 R15: 0000000000022000
netlink: 16 bytes leftover after parsing attributes in process `syz-executor.7'.
audit: type=1326 audit(1755476154.545:28): auid=0 uid=0 gid=0 ses=4 subj=system_u:system_r:kernel_t:s0 pid=7006 comm="syz-executor.1" exe="/syz-executor.1" sig=9 arch=c000003e syscall=231 compat=0 ip=0x7f9dcdcd9b19 code=0x0
FAT-fs (loop4): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1)
audit: type=1326 audit(1755476155.376:29): auid=0 uid=0 gid=0 ses=4 subj=system_u:system_r:kernel_t:s0 pid=7006 comm="syz-executor.1" exe="/syz-executor.1" sig=9 arch=c000003e syscall=231 compat=0 ip=0x7f9dcdcd9b19 code=0x0