================================================================== BUG: KASAN: slab-out-of-bounds in diWrite+0xbe6/0x1600 fs/jfs/jfs_imap.c:753 Read of size 32 at addr ffff888071124130 by task syz.3.40/4572 CPU: 0 PID: 4572 Comm: syz.3.40 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/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/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x27b/0x290 mm/kasan/generic.c:189 memcpy+0x25/0x60 mm/kasan/shadow.c:65 diWrite+0xbe6/0x1600 fs/jfs/jfs_imap.c:753 txCommit+0x84b/0x51c0 fs/jfs/jfs_txnmgr.c:1255 add_missing_indices+0x791/0xaa0 fs/jfs/jfs_dtree.c:2664 jfs_readdir+0x1da7/0x3b40 fs/jfs/jfs_dtree.c:3020 iterate_dir+0x218/0x560 fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xe5/0x260 fs/readdir.c:354 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:0x7f686ab8eec9 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:00007f686ba04038 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f686ade6180 RCX: 00007f686ab8eec9 RDX: 00000000000000ef RSI: 0000200000000540 RDI: 0000000000000006 RBP: 00007f686ac11f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f686ade6218 R14: 00007f686ade6180 R15: 00007ffcd9074ba8 The buggy address belongs to the object at ffff8880711240c0 which belongs to the cache jfs_ip of size 2240 The buggy address is located 112 bytes inside of 2240-byte region [ffff8880711240c0, ffff888071124980) The buggy address belongs to the physical page: page:ffffea0001c44800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x71120 head:ffffea0001c44800 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88802d30fb01 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff88814137ec80 raw: 0000000000000000 00000000800d000d 00000001ffffffff ffff88802d30fb01 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 4553, tgid 4552 (syz.3.40), ts 102332945563, free_ts 101752505078 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:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2c0 mm/slub.c:1997 ___slab_alloc+0xbc6/0x1230 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc_lru+0x1ae/0x2e0 mm/slub.c:3390 alloc_inode_sb include/linux/fs.h:3245 [inline] jfs_alloc_inode+0x24/0x60 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x5f/0x1c0 fs/inode.c:1063 new_inode+0x25/0x1c0 fs/inode.c:1091 jfs_fill_super+0x392/0xac0 fs/jfs/super.c:544 mount_bdev+0x287/0x3c0 fs/super.c:1443 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x24a/0xa40 fs/namespace.c:3069 do_mount fs/namespace.c:3412 [inline] __do_sys_mount fs/namespace.c:3620 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3597 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:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc+0x123/0x2f0 mm/slub.c:3383 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_preallocate+0x161/0x3c0 lib/maple_tree.c:5807 vma_expand+0x27a/0x880 mm/mmap.c:544 __mmap_region mm/mmap.c:2740 [inline] mmap_region+0xc24/0x1c70 mm/mmap.c:2916 do_mmap+0x958/0xfd0 mm/mmap.c:1436 vm_mmap_pgoff+0x1b2/0x2b0 mm/util.c:520 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 Memory state around the buggy address: ffff888071124000: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff888071124080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888071124100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888071124180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888071124200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================