loop2: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: use-after-free in dtMoveEntry fs/jfs/jfs_dtree.c:3922 [inline] BUG: KASAN: use-after-free in dtSplitPage+0x1aba/0x31d0 fs/jfs/jfs_dtree.c:1561 Write of size 1 at addr ffff88801d3ee000 by task syz.2.3/4431 CPU: 1 PID: 4431 Comm: syz.2.3 Not tainted 6.1.143-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x220 mm/kasan/report.c:427 kasan_report+0x10b/0x140 mm/kasan/report.c:531 dtMoveEntry fs/jfs/jfs_dtree.c:3922 [inline] dtSplitPage+0x1aba/0x31d0 fs/jfs/jfs_dtree.c:1561 dtSplitUp fs/jfs/jfs_dtree.c:1092 [inline] dtInsert+0xfbd/0x58a0 fs/jfs/jfs_dtree.c:871 jfs_create+0x69d/0xa50 fs/jfs/namei.c:137 lookup_open fs/namei.c:3482 [inline] open_last_lookups fs/namei.c:3550 [inline] path_openat+0x1187/0x2e70 fs/namei.c:3780 do_filp_open+0x1c1/0x3c0 fs/namei.c:3810 do_sys_openat2+0x142/0x490 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_creat fs/open.c:1412 [inline] __se_sys_creat fs/open.c:1406 [inline] __x64_sys_creat+0x8c/0xb0 fs/open.c:1406 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7ff8db38e929 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff8dc280038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007ff8db5b5fa0 RCX: 00007ff8db38e929 RDX: 0000000000000000 RSI: 0000000000000032 RDI: 00002000000008c0 RBP: 00007ff8db410b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ff8db5b5fa0 R15: 00007ffceb5c1c98 The buggy address belongs to the physical page: page:ffffea000074fb80 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x0 pfn:0x1d3ee flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0001ea1308 ffffea0000c09208 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 1, migratetype Unmovable, gfp_mask 0x52800(GFP_NOWAIT|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 3919, tgid 3919 (touch), ts 45051788819, free_ts 82877806567 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 alloc_slab_page+0x5d/0x160 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x87/0x2c0 mm/slub.c:1992 ___slab_alloc+0xbc6/0x1220 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x1b7/0x2f0 mm/slub.c:3422 mt_alloc_one lib/maple_tree.c:152 [inline] mas_alloc_nodes+0x2ec/0x890 lib/maple_tree.c:1277 mas_node_count_gfp lib/maple_tree.c:1359 [inline] mas_node_count lib/maple_tree.c:1373 [inline] mas_root_expand+0x208/0xa70 lib/maple_tree.c:3682 mas_store_gfp+0x2aa/0x3f0 lib/maple_tree.c:5764 do_mas_align_munmap+0x4bc/0x1220 mm/mmap.c:2516 do_mas_munmap+0x240/0x2b0 mm/mmap.c:2646 __mmap_region mm/mmap.c:2694 [inline] mmap_region+0x713/0x1d30 mm/mmap.c:2912 do_mmap+0x894/0xf30 mm/mmap.c:1432 vm_mmap_pgoff+0x1b2/0x2b0 mm/util.c:520 ksys_mmap_pgoff+0x516/0x6f0 mm/mmap.c:1478 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] __kmem_cache_alloc_node+0x140/0x260 mm/slub.c:3437 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc_node+0xa0/0x240 mm/slab_common.c:943 kmalloc_node include/linux/slab.h:589 [inline] kzalloc_node include/linux/slab.h:710 [inline] qdisc_alloc+0x95/0xa50 net/sched/sch_generic.c:948 qdisc_create_dflt+0x5f/0x4b0 net/sched/sch_generic.c:1009 attach_one_default_qdisc net/sched/sch_generic.c:1173 [inline] netdev_for_each_tx_queue include/linux/netdevice.h:2465 [inline] attach_default_qdiscs net/sched/sch_generic.c:1191 [inline] dev_activate+0x393/0x11a0 net/sched/sch_generic.c:1250 __dev_open+0x334/0x420 net/core/dev.c:1497 __dev_change_flags+0x20a/0x6a0 net/core/dev.c:8626 dev_change_flags+0x82/0x1a0 net/core/dev.c:8697 do_setlink+0xc31/0x3c40 net/core/rtnetlink.c:2833 __rtnl_newlink net/core/rtnetlink.c:3608 [inline] rtnl_newlink+0x17d6/0x1ff0 net/core/rtnetlink.c:3655 Memory state around the buggy address: ffff88801d3edf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801d3edf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801d3ee000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88801d3ee080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88801d3ee100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================