jfs filesystem being mounted at /42/bus supports timestamps until 2106-02-07 (0xffffffff) ================================================================== BUG: KASAN: slab-out-of-bounds in addressPXD fs/jfs/jfs_types.h:80 [inline] BUG: KASAN: slab-out-of-bounds in dtReadFirst+0x512/0xc50 fs/jfs/jfs_dtree.c:3107 Read of size 4 at addr ffff88805c00bde8 by task syz.6.1608/15428 CPU: 0 UID: 0 PID: 15428 Comm: syz.6.1608 Not tainted 6.14.0-rc2-next-20250214-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:410 [inline] print_report+0x16b/0x5a0 mm/kasan/report.c:510 kasan_report+0x143/0x180 mm/kasan/report.c:623 addressPXD fs/jfs/jfs_types.h:80 [inline] dtReadFirst+0x512/0xc50 fs/jfs/jfs_dtree.c:3107 jfs_readdir+0x87a/0x3cb0 fs/jfs/jfs_dtree.c:2820 wrap_directory_iterator+0x91/0xd0 fs/readdir.c:65 iterate_dir+0x5a9/0x760 fs/readdir.c:108 __do_sys_getdents64 fs/readdir.c:403 [inline] __se_sys_getdents64+0x1e2/0x4b0 fs/readdir.c:389 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa72bf8cde9 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:00007fa72cebd038 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007fa72c1a5fa0 RCX: 00007fa72bf8cde9 RDX: 0000000000001000 RSI: 0000400000000f80 RDI: 0000000000000005 RBP: 00007fa72c00e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa72c1a5fa0 R15: 00007ffd19afbb28 The buggy address belongs to the object at ffff88805c00b750 which belongs to the cache jfs_ip of size 2232 The buggy address is located 1688 bytes inside of allocated 2232-byte region [ffff88805c00b750, ffff88805c00c008) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5c008 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888011db2701 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff888147281780 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800d000d 00000000f5000000 ffff888011db2701 head: 00fff00000000040 ffff888147281780 dead000000000122 0000000000000000 head: 0000000000000000 00000000800d000d 00000000f5000000 ffff888011db2701 head: 00fff00000000003 ffffea0001700201 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0xd2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_RECLAIMABLE), pid 13570, tgid 13569 (syz.1.1301), ts 854759957979, free_ts 852776231787 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1629 prep_new_page mm/page_alloc.c:1637 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3555 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4817 alloc_pages_mpol+0x311/0x660 mm/mempolicy.c:2270 alloc_slab_page mm/slub.c:2437 [inline] allocate_slab+0x8f/0x3a0 mm/slub.c:2601 new_slab mm/slub.c:2654 [inline] ___slab_alloc+0xc27/0x14a0 mm/slub.c:3840 __slab_alloc+0x58/0xa0 mm/slub.c:3930 __slab_alloc_node mm/slub.c:4005 [inline] slab_alloc_node mm/slub.c:4166 [inline] kmem_cache_alloc_lru_noprof+0x26c/0x390 mm/slub.c:4197 jfs_alloc_inode+0x28/0x70 fs/jfs/super.c:105 alloc_inode+0x69/0x1b0 fs/inode.c:346 iget_locked+0xf1/0x5a0 fs/inode.c:1482 jfs_iget+0x23/0x3e0 fs/jfs/inode.c:29 jfs_fill_super+0x8e4/0xd90 fs/jfs/super.c:547 get_tree_bdev_flags+0x48c/0x5c0 fs/super.c:1636 vfs_get_tree+0x90/0x2b0 fs/super.c:1759 do_new_mount+0x2be/0xb40 fs/namespace.c:3659 page last free pid 5204 tgid 5204 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1205 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2738 __slab_free+0x2c2/0x380 mm/slub.c:4534 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4129 [inline] slab_alloc_node mm/slub.c:4178 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4185 getname_flags+0xb7/0x530 fs/namei.c:139 getname include/linux/fs.h:2843 [inline] getname_maybe_null include/linux/fs.h:2850 [inline] vfs_fstatat+0x43/0x150 fs/stat.c:363 __do_sys_newfstatat fs/stat.c:532 [inline] __se_sys_newfstatat fs/stat.c:526 [inline] __x64_sys_newfstatat+0x11d/0x1a0 fs/stat.c:526 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805c00bc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805c00bd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88805c00bd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805c00be00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805c00be80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================