loop0: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: slab-out-of-bounds in dtCompare fs/jfs/jfs_dtree.c:3345 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x1683/0x21b0 fs/jfs/jfs_dtree.c:650 Read of size 1 at addr ffff88805a242f88 by task syz.0.66/6346 CPU: 1 UID: 0 PID: 6346 Comm: syz.0.66 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 dtCompare fs/jfs/jfs_dtree.c:3345 [inline] dtSearch+0x1683/0x21b0 fs/jfs/jfs_dtree.c:650 jfs_lookup+0x155/0x380 fs/jfs/namei.c:1461 __lookup_slow+0x29d/0x3d0 fs/namei.c:1858 lookup_slow+0x53/0x70 fs/namei.c:1875 walk_component fs/namei.c:2221 [inline] link_path_walk+0xd1e/0x18d0 fs/namei.c:2589 path_lookupat+0xe4/0x8c0 fs/namei.c:2745 do_o_path+0x97/0x1f0 fs/namei.c:4758 path_openat+0x3674/0x3df0 fs/namei.c:4780 do_filp_open+0x1fa/0x410 fs/namei.c:4814 do_sys_openat2+0x121/0x200 fs/open.c:1430 do_sys_open fs/open.c:1436 [inline] __do_sys_openat fs/open.c:1452 [inline] __se_sys_openat fs/open.c:1447 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1447 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd4aebaf749 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:00007fd4ace16038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fd4aee05fa0 RCX: 00007fd4aebaf749 RDX: 0000000000200002 RSI: 00002000000000c0 RDI: ffffffffffffff9c RBP: 00007fd4aec33f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd4aee06038 R14: 00007fd4aee05fa0 R15: 00007ffe89a99398 The buggy address belongs to the object at ffff88805a242700 which belongs to the cache jfs_ip of size 2368 The buggy address is located 2184 bytes inside of allocated 2368-byte region [ffff88805a242700, ffff88805a243040) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805a2409c0 pfn:0x5a240 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88803c747901 flags: 0x80000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000040 ffff88801af4fc80 dead000000000122 0000000000000000 raw: ffff88805a2409c0 00000000800d000b 00000000f5000000 ffff88803c747901 head: 0080000000000040 ffff88801af4fc80 dead000000000122 0000000000000000 head: ffff88805a2409c0 00000000800d000b 00000000f5000000 ffff88803c747901 head: 0080000000000003 ffffea0001689001 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 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_RECLAIMABLE|__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5995, tgid 5994 (syz.1.15), ts 127228913489, free_ts 126585070822 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x234/0x290 mm/page_alloc.c:1846 prep_new_page mm/page_alloc.c:1854 [inline] get_page_from_freelist+0x28c0/0x2960 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5210 alloc_pages_mpol+0xd1/0x380 mm/mempolicy.c:2486 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab+0x86/0x3b0 mm/slub.c:3248 new_slab mm/slub.c:3302 [inline] ___slab_alloc+0xb10/0x1400 mm/slub.c:4651 __slab_alloc+0xc6/0x1f0 mm/slub.c:4774 __slab_alloc_node mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:5246 [inline] kmem_cache_alloc_lru_noprof+0x104/0x6c0 mm/slub.c:5277 jfs_alloc_inode+0x28/0x70 fs/jfs/super.c:105 alloc_inode+0x6a/0x1b0 fs/inode.c:346 new_inode+0x22/0x170 fs/inode.c:1175 diReadSpecial+0x52/0x710 fs/jfs/jfs_imap.c:426 jfs_mount+0x73/0x870 fs/jfs/jfs_mount.c:87 jfs_fill_super+0x6bc/0xd80 fs/jfs/super.c:523 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1691 vfs_get_tree+0x92/0x2a0 fs/super.c:1751 page last free pid 6015 tgid 6015 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xfe1/0x1170 mm/page_alloc.c:2943 __slab_free+0x1c3/0x210 mm/slub.c:5999 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:349 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4948 [inline] slab_alloc_node mm/slub.c:5258 [inline] __kmalloc_cache_noprof+0x18d/0x6d0 mm/slub.c:5766 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] kernfs_iop_get_link+0x66/0x6c0 fs/kernfs/symlink.c:137 vfs_readlink+0x24d/0x550 fs/namei.c:6140 do_readlinkat+0x215/0x500 fs/stat.c:590 __do_sys_readlink fs/stat.c:613 [inline] __se_sys_readlink fs/stat.c:610 [inline] __x64_sys_readlink+0x7f/0x90 fs/stat.c:610 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805a242e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805a242f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88805a242f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805a243000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805a243080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================