================================================================== BUG: KASAN: slab-out-of-bounds in diWrite+0xbe6/0x1600 fs/jfs/jfs_imap.c:753 Read of size 32 at addr ffff88807041b7f0 by task syz.4.14/4471 CPU: 0 PID: 4471 Comm: syz.4.14 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0x188/0x24e 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+0x235/0x290 mm/kasan/generic.c:189 memcpy+0x25/0x60 mm/kasan/shadow.c:65 diWrite+0xbe6/0x1600 fs/jfs/jfs_imap.c:753 txCommit+0x869/0x5200 fs/jfs/jfs_txnmgr.c:1256 add_missing_indices+0x791/0xaa0 fs/jfs/jfs_dtree.c:2664 jfs_readdir+0x1ec9/0x3d10 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+0xf2/0x270 fs/readdir.c:354 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f65a499c799 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f65a2bd5028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f65a4c16090 RCX: 00007f65a499c799 RDX: 00000000000000e0 RSI: 0000200000000fc0 RDI: 0000000000000005 RBP: 00007f65a4a32c99 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f65a4c16128 R14: 00007f65a4c16090 R15: 00007ffe852e5a88 The buggy address belongs to the object at ffff88807041b780 which belongs to the cache jfs_ip of size 2240 The buggy address is located 112 bytes inside of 2240-byte region [ffff88807041b780, ffff88807041c040) The buggy address belongs to the physical page: page:ffffea0001c10600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x70418 head:ffffea0001c10600 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88807de56401 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff8881472c4500 raw: 0000000000000000 00000000800d000d 00000001ffffffff ffff88807de56401 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 4437, tgid 4432 (syz.4.14), ts 86597675688, free_ts 86105177219 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2559 prep_new_page mm/page_alloc.c:2566 [inline] get_page_from_freelist+0x1a1e/0x1ab0 mm/page_alloc.c:4357 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5657 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/0x1240 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 diReadSpecial+0x4e/0x700 fs/jfs/jfs_imap.c:426 jfs_mount+0x6f/0x860 fs/jfs/jfs_mount.c:87 jfs_fill_super+0x4e4/0xad0 fs/jfs/super.c:556 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 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1486 [inline] free_pcp_prepare mm/page_alloc.c:1536 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3413 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3508 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:306 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 anon_vma_chain_alloc mm/rmap.c:141 [inline] __anon_vma_prepare+0x64/0x420 mm/rmap.c:195 anon_vma_prepare include/linux/rmap.h:159 [inline] do_anonymous_page mm/memory.c:4187 [inline] handle_pte_fault mm/memory.c:5027 [inline] __handle_mm_fault mm/memory.c:5171 [inline] handle_mm_fault+0x38ad/0x3ee0 mm/memory.c:5292 do_user_addr_fault+0x51f/0xb10 arch/x86/mm/fault.c:1338 handle_page_fault arch/x86/mm/fault.c:1429 [inline] exc_page_fault+0x60/0x100 arch/x86/mm/fault.c:1482 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:608 Memory state around the buggy address: ffff88807041b680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807041b700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807041b780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88807041b800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807041b880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================