loop4: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: slab-out-of-bounds in dtCompare fs/jfs/jfs_dtree.c:3629 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x161b/0x2050 fs/jfs/jfs_dtree.c:650 Read of size 1 at addr ffff888073ba4058 by task syz.4.221/5214 CPU: 0 PID: 5214 Comm: syz.4.221 Not tainted 5.15.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 dtCompare fs/jfs/jfs_dtree.c:3629 [inline] dtSearch+0x161b/0x2050 fs/jfs/jfs_dtree.c:650 jfs_lookup+0x152/0x380 fs/jfs/namei.c:1459 lookup_open fs/namei.c:3440 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x1003/0x2f30 fs/namei.c:3739 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_creat fs/open.c:1345 [inline] __se_sys_creat fs/open.c:1339 [inline] __x64_sys_creat+0x8c/0xb0 fs/open.c:1339 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f6c0647a969 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:00007f6c042e2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f6c066a1fa0 RCX: 00007f6c0647a969 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000040 RBP: 00007f6c064fcab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6c066a1fa0 R15: 00007ffc41856458 Allocated by task 5214: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x9c/0xd0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3233 jfs_alloc_inode+0x17/0x50 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x5f/0x210 fs/inode.c:1001 new_inode+0x25/0x1c0 fs/inode.c:1030 ialloc+0x49/0x940 fs/jfs/jfs_inode.c:48 jfs_create+0x187/0xa50 fs/jfs/namei.c:92 lookup_open fs/namei.c:3462 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x11e1/0x2f30 fs/namei.c:3739 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1280 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff888073ba3780 which belongs to the cache jfs_ip of size 2240 The buggy address is located 24 bytes to the right of 2240-byte region [ffff888073ba3780, ffff888073ba4040) The buggy address belongs to the page: page:ffffea0001cee800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x73ba0 head:ffffea0001cee800 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88807919a501 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888146710c80 raw: 0000000000000000 00000000800d000d 00000001ffffffff ffff88807919a501 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 5214, ts 136991889978, free_ts 97524153432 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5466 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x195/0x290 mm/slub.c:3233 jfs_alloc_inode+0x17/0x50 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x5f/0x210 fs/inode.c:1001 new_inode+0x25/0x1c0 fs/inode.c:1030 jfs_fill_super+0x392/0xaf0 fs/jfs/super.c:549 mount_bdev+0x287/0x3c0 fs/super.c:1400 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3013 do_mount fs/namespace.c:3356 [inline] __do_sys_mount fs/namespace.c:3564 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3541 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x94/0x280 mm/page_alloc.c:3396 free_slab mm/slub.c:2015 [inline] discard_slab mm/slub.c:2021 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2507 put_cpu_partial+0x12d/0x190 mm/slub.c:2587 qlist_free_all+0x35/0x90 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x150/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xd0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3233 alloc_extent_state+0x22/0x2e0 fs/btrfs/extent_io.c:340 set_extent_bit+0x1b6/0x1540 fs/btrfs/extent_io.c:1002 set_extent_uptodate fs/btrfs/extent-io-tree.h:236 [inline] btrfs_get_extent+0xe99/0x1770 fs/btrfs/inode.c:7336 __get_extent_map fs/btrfs/extent_io.c:3536 [inline] btrfs_do_readpage+0x83a/0x1240 fs/btrfs/extent_io.c:3616 contiguous_readpages fs/btrfs/extent_io.c:3759 [inline] extent_readahead+0xb28/0x1230 fs/btrfs/extent_io.c:5181 read_pages+0x165/0x920 mm/readahead.c:130 page_cache_ra_unbounded+0x830/0x930 mm/readahead.c:239 Memory state around the buggy address: ffff888073ba3f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888073ba3f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888073ba4000: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff888073ba4080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888073ba4100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================