Code: 00 00 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb 85 66 2e 0f 1f 84 00 00 00 00 00 90 b8 0b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5ddb376f38 EFLAGS: 00000246 ORIG_RAX: 000000000000000b RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f5dda68c467 RDX: 0000000000020000 RSI: 0000000000020000 RDI: 00007f5dd0dff000 RBP: 00007f5dd0dff000 R08: 0000000000000000 R09: 0000000000000250 R10: 0000000000020000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5ddb376fdc R14: 00007f5ddb376fe0 R15: 0000000020000182 ================================================================== BUG: KASAN: slab-out-of-bounds in mt_slot lib/maple_tree.c:816 [inline] BUG: KASAN: slab-out-of-bounds in mas_slot lib/maple_tree.c:849 [inline] BUG: KASAN: slab-out-of-bounds in mt_validate_nulls lib/maple_tree.c:7172 [inline] BUG: KASAN: slab-out-of-bounds in mt_validate+0x51d9/0x5ca0 lib/maple_tree.c:7227 Read of size 8 at addr ffff88802cdbfb00 by task syz-executor.1/10851 CPU: 1 PID: 10851 Comm: syz-executor.1 Not tainted 6.4.0-syzkaller-10098-g995b406c7e97 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x175/0x1b0 mm/kasan/report.c:588 mt_slot lib/maple_tree.c:816 [inline] mas_slot lib/maple_tree.c:849 [inline] mt_validate_nulls lib/maple_tree.c:7172 [inline] mt_validate+0x51d9/0x5ca0 lib/maple_tree.c:7227 validate_mm+0xe7/0x500 mm/mmap.c:300 do_vmi_align_munmap+0x13b1/0x15c0 mm/mmap.c:2561 do_vmi_munmap+0x24d/0x2d0 mm/mmap.c:2619 __vm_munmap+0x230/0x450 mm/mmap.c:2899 __do_sys_munmap mm/mmap.c:2916 [inline] __se_sys_munmap mm/mmap.c:2913 [inline] __x64_sys_munmap+0x69/0x80 mm/mmap.c:2913 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5dda68c467 Code: 00 00 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb 85 66 2e 0f 1f 84 00 00 00 00 00 90 b8 0b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5ddb376f38 EFLAGS: 00000246 ORIG_RAX: 000000000000000b RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f5dda68c467 RDX: 0000000000020000 RSI: 0000000000020000 RDI: 00007f5dd0dff000 RBP: 00007f5dd0dff000 R08: 0000000000000000 R09: 0000000000000250 R10: 0000000000020000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5ddb376fdc R14: 00007f5ddb376fe0 R15: 0000000020000182 Allocated by task 10851: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x66/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x68/0x3a0 mm/slab.h:750 kmem_cache_alloc_bulk+0x3d2/0x4b0 mm/slub.c:4048 mt_alloc_bulk lib/maple_tree.c:164 [inline] mas_alloc_nodes+0x3df/0x800 lib/maple_tree.c:1304 mas_node_count_gfp lib/maple_tree.c:1362 [inline] mas_node_count lib/maple_tree.c:1376 [inline] mas_wr_spanning_store+0x4a6/0x1690 lib/maple_tree.c:4014 mas_store_gfp+0x30d/0x410 lib/maple_tree.c:5506 vma_iter_clear_gfp mm/mmap.c:162 [inline] do_vmi_align_munmap+0xfad/0x15c0 mm/mmap.c:2538 do_vmi_munmap+0x24d/0x2d0 mm/mmap.c:2619 __vm_munmap+0x230/0x450 mm/mmap.c:2899 __do_sys_munmap mm/mmap.c:2916 [inline] __se_sys_munmap mm/mmap.c:2913 [inline] __x64_sys_munmap+0x69/0x80 mm/mmap.c:2913 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Last potentially related work creation: kasan_save_stack+0x3f/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xad/0xc0 mm/kasan/generic.c:491 __call_rcu_common kernel/rcu/tree.c:2649 [inline] call_rcu+0x167/0xa70 kernel/rcu/tree.c:2763 mas_wr_node_store lib/maple_tree.c:4151 [inline] mas_wr_modify+0x1aec/0x2290 lib/maple_tree.c:4346 mas_store_prealloc+0x313/0x650 lib/maple_tree.c:5529 vma_complete+0x1ec/0xb40 mm/mmap.c:553 __split_vma+0x7c2/0x7f0 mm/mmap.c:2381 do_vmi_align_munmap+0x501/0x15c0 mm/mmap.c:2477 do_vmi_munmap+0x24d/0x2d0 mm/mmap.c:2619 mmap_region+0x82f/0x2310 mm/mmap.c:2669 do_mmap+0x8cf/0xf80 mm/mmap.c:1362 vm_mmap_pgoff+0x1db/0x410 mm/util.c:543 ksys_mmap_pgoff+0x4ff/0x6d0 mm/mmap.c:1408 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Second to last potentially related work creation: kasan_save_stack+0x3f/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xad/0xc0 mm/kasan/generic.c:491 __call_rcu_common kernel/rcu/tree.c:2649 [inline] call_rcu+0x167/0xa70 kernel/rcu/tree.c:2763 ma_free_rcu lib/maple_tree.c:189 [inline] mas_free lib/maple_tree.c:1344 [inline] mas_mat_free lib/maple_tree.c:1021 [inline] mas_wmb_replace+0xd8f/0x1380 lib/maple_tree.c:2801 mas_split lib/maple_tree.c:3587 [inline] mas_commit_b_node+0x157e/0x2460 lib/maple_tree.c:3638 mas_wr_bnode lib/maple_tree.c:4315 [inline] mas_wr_modify+0x6ec/0x2290 lib/maple_tree.c:4353 mas_store_prealloc+0x313/0x650 lib/maple_tree.c:5529 mmap_region+0x1680/0x2310 mm/mmap.c:2811 do_mmap+0x8cf/0xf80 mm/mmap.c:1362 vm_mmap_pgoff+0x1db/0x410 mm/util.c:543 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88802cdbfa00 which belongs to the cache maple_node of size 256 The buggy address is located 0 bytes to the right of allocated 256-byte region [ffff88802cdbfa00, ffff88802cdbfb00) The buggy address belongs to the physical page: page:ffffea0000b36f80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2cdbe head:ffffea0000b36f80 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010200 ffff88801324d000 ffffea0001ec8300 dead000000000004 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 8750, tgid 8750 (udevadm), ts 367597456800, free_ts 356695939822 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0x31e8/0x3370 mm/page_alloc.c:3221 __alloc_pages+0x255/0x670 mm/page_alloc.c:4477 alloc_slab_page+0x6a/0x160 mm/slub.c:1862 allocate_slab mm/slub.c:2009 [inline] new_slab+0x84/0x2f0 mm/slub.c:2062 ___slab_alloc+0xade/0x1100 mm/slub.c:3215 __kmem_cache_alloc_bulk mm/slub.c:3966 [inline] kmem_cache_alloc_bulk+0x196/0x4b0 mm/slub.c:4041 mt_alloc_bulk lib/maple_tree.c:164 [inline] mas_alloc_nodes+0x3df/0x800 lib/maple_tree.c:1304 mas_node_count_gfp lib/maple_tree.c:1362 [inline] mas_preallocate+0x131/0x350 lib/maple_tree.c:5546 vma_iter_prealloc mm/internal.h:1032 [inline] __split_vma+0x1e0/0x7f0 mm/mmap.c:2344 mprotect_fixup+0x5c5/0xa50 mm/mprotect.c:649 do_mprotect_pkey+0x8b3/0xd90 mm/mprotect.c:817 __do_sys_mprotect mm/mprotect.c:838 [inline] __se_sys_mprotect mm/mprotect.c:835 [inline] __x64_sys_mprotect+0x80/0x90 mm/mprotect.c:835 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1161 [inline] free_unref_page_prepare+0x903/0xa30 mm/page_alloc.c:2348 free_unref_page+0x37/0x3f0 mm/page_alloc.c:2443 __slab_free+0x2f6/0x390 mm/slub.c:3707 qlist_free_all+0x22/0x60 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x14b/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x23/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x68/0x3a0 mm/slab.h:750 slab_alloc_node mm/slub.c:3470 [inline] slab_alloc mm/slub.c:3478 [inline] __kmem_cache_alloc_lru mm/slub.c:3485 [inline] kmem_cache_alloc_lru+0x122/0x300 mm/slub.c:3501 alloc_inode_sb include/linux/fs.h:2729 [inline] ext4_alloc_inode+0x2e/0x580 fs/ext4/super.c:1382 alloc_inode fs/inode.c:260 [inline] iget_locked+0x1cc/0x830 fs/inode.c:1328 __ext4_iget+0x261/0x3f30 fs/ext4/inode.c:4670 ext4_lookup+0x3f9/0x750 fs/ext4/namei.c:1851 lookup_open fs/namei.c:3470 [inline] open_last_lookups fs/namei.c:3560 [inline] path_openat+0x11f1/0x3180 fs/namei.c:3790 do_filp_open+0x234/0x490 fs/namei.c:3820 do_sys_openat2+0x13e/0x1d0 fs/open.c:1407 do_sys_open fs/open.c:1422 [inline] __do_sys_openat fs/open.c:1438 [inline] __se_sys_openat fs/open.c:1433 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1433 Memory state around the buggy address: ffff88802cdbfa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802cdbfa80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88802cdbfb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802cdbfb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802cdbfc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 00 00 add %al,(%rax) 2: 48 c7 c2 b8 ff ff ff mov $0xffffffffffffffb8,%rdx 9: f7 d8 neg %eax b: 64 89 02 mov %eax,%fs:(%rdx) e: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax 15: eb 85 jmp 0xffffff9c 17: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) 1e: 00 00 00 21: 90 nop 22: b8 0b 00 00 00 mov $0xb,%eax 27: 0f 05 syscall * 29: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 2f: 73 01 jae 0x32 31: c3 retq 32: 48 c7 c1 b8 ff ff ff mov $0xffffffffffffffb8,%rcx 39: f7 d8 neg %eax 3b: 64 89 01 mov %eax,%fs:(%rcx) 3e: 48 rex.W