loop0: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: slab-out-of-bounds in ciCompare fs/jfs/jfs_dtree.c:3393 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x1d8c/0x2000 fs/jfs/jfs_dtree.c:639 Read of size 1 at addr ffff8880845060b4 by task syz-executor.0/21517 CPU: 0 PID: 21517 Comm: syz-executor.0 Not tainted 6.2.0-rc5-syzkaller-00205-gc96618275234 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:306 [inline] print_report+0x15e/0x461 mm/kasan/report.c:417 kasan_report+0xbf/0x1f0 mm/kasan/report.c:517 ciCompare fs/jfs/jfs_dtree.c:3393 [inline] dtSearch+0x1d8c/0x2000 fs/jfs/jfs_dtree.c:639 jfs_lookup+0x180/0x2f0 fs/jfs/namei.c:1454 lookup_open.isra.0+0x74c/0x1270 fs/namei.c:3391 open_last_lookups fs/namei.c:3481 [inline] path_openat+0x975/0x2a50 fs/namei.c:3711 do_filp_open+0x1ba/0x410 fs/namei.c:3741 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __x64_sys_openat+0x143/0x1f0 fs/open.c:1337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7633c8c0c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7634a2a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f7633dabf80 RCX: 00007f7633c8c0c9 RDX: 000000000000275a RSI: 0000000020000080 RDI: ffffffffffffff9c RBP: 00007f7633ce7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff3ccd034f R14: 00007f7634a2a300 R15: 0000000000022000 Allocated by task 21517: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x7f/0x90 mm/kasan/common.c:325 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slab.h:761 [inline] slab_alloc_node mm/slab.c:3263 [inline] slab_alloc mm/slab.c:3272 [inline] __kmem_cache_alloc_lru mm/slab.c:3449 [inline] kmem_cache_alloc_lru+0x249/0x7b0 mm/slab.c:3465 alloc_inode_sb include/linux/fs.h:3119 [inline] jfs_alloc_inode+0x27/0x60 fs/jfs/super.c:105 alloc_inode+0x61/0x230 fs/inode.c:259 iget_locked+0x1bb/0x700 fs/inode.c:1286 jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29 jfs_fill_super+0x6a8/0xc80 fs/jfs/super.c:580 mount_bdev+0x351/0x410 fs/super.c:1359 legacy_get_tree+0x109/0x220 fs/fs_context.c:610 vfs_get_tree+0x8d/0x2f0 fs/super.c:1489 do_new_mount fs/namespace.c:3145 [inline] path_mount+0x132a/0x1e20 fs/namespace.c:3475 do_mount fs/namespace.c:3488 [inline] __do_sys_mount fs/namespace.c:3697 [inline] __se_sys_mount fs/namespace.c:3674 [inline] __x64_sys_mount+0x283/0x300 fs/namespace.c:3674 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff888084506140 which belongs to the cache jfs_ip of size 2240 The buggy address is located 140 bytes to the left of 2240-byte region [ffff888084506140, ffff888084506a00) The buggy address belongs to the physical page: page:ffffea0002114180 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888084506fff pfn:0x84506 memcg:ffff888078c46241 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffff88801abf8500 ffffea0002114150 ffff88801aa90050 raw: ffff888084506fff ffff888084506140 0000000100000001 ffff888078c46241 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x342050(__GFP_IO|__GFP_NOWARN|__GFP_COMP|__GFP_HARDWALL|__GFP_THISNODE|__GFP_RECLAIMABLE), pid 21517, tgid 21515 (syz-executor.0), ts 878580514177, free_ts 354817795691 prep_new_page mm/page_alloc.c:2531 [inline] get_page_from_freelist+0x119c/0x2ce0 mm/page_alloc.c:4283 __alloc_pages+0x1cb/0x5b0 mm/page_alloc.c:5549 __alloc_pages_node include/linux/gfp.h:237 [inline] kmem_getpages mm/slab.c:1363 [inline] cache_grow_begin+0x94/0x390 mm/slab.c:2576 cache_alloc_refill+0x27f/0x380 mm/slab.c:2949 ____cache_alloc mm/slab.c:3025 [inline] ____cache_alloc mm/slab.c:3008 [inline] __do_cache_alloc mm/slab.c:3208 [inline] slab_alloc_node mm/slab.c:3256 [inline] slab_alloc mm/slab.c:3272 [inline] __kmem_cache_alloc_lru mm/slab.c:3449 [inline] kmem_cache_alloc_lru+0x660/0x7b0 mm/slab.c:3465 alloc_inode_sb include/linux/fs.h:3119 [inline] jfs_alloc_inode+0x27/0x60 fs/jfs/super.c:105 alloc_inode+0x61/0x230 fs/inode.c:259 iget_locked+0x1bb/0x700 fs/inode.c:1286 jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29 jfs_fill_super+0x6a8/0xc80 fs/jfs/super.c:580 mount_bdev+0x351/0x410 fs/super.c:1359 legacy_get_tree+0x109/0x220 fs/fs_context.c:610 vfs_get_tree+0x8d/0x2f0 fs/super.c:1489 do_new_mount fs/namespace.c:3145 [inline] path_mount+0x132a/0x1e20 fs/namespace.c:3475 do_mount fs/namespace.c:3488 [inline] __do_sys_mount fs/namespace.c:3697 [inline] __se_sys_mount fs/namespace.c:3674 [inline] __x64_sys_mount+0x283/0x300 fs/namespace.c:3674 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1446 [inline] free_pcp_prepare+0x65c/0xc00 mm/page_alloc.c:1496 free_unref_page_prepare mm/page_alloc.c:3369 [inline] free_unref_page+0x1d/0x490 mm/page_alloc.c:3464 slab_destroy mm/slab.c:1619 [inline] slabs_destroy+0x85/0xc0 mm/slab.c:1639 cache_flusharray mm/slab.c:3367 [inline] ___cache_free+0x2ac/0x3d0 mm/slab.c:3430 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x4f/0x1a0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x192/0x220 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x63/0x90 mm/kasan/common.c:302 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slab.h:761 [inline] slab_alloc_node mm/slab.c:3263 [inline] slab_alloc mm/slab.c:3272 [inline] __kmem_cache_alloc_lru mm/slab.c:3449 [inline] kmem_cache_alloc+0x225/0x460 mm/slab.c:3458 kmem_cache_zalloc include/linux/slab.h:710 [inline] taskstats_tgid_alloc kernel/taskstats.c:583 [inline] taskstats_exit+0x5f3/0xb80 kernel/taskstats.c:622 do_exit+0x822/0x2950 kernel/exit.c:852 do_group_exit+0xd4/0x2a0 kernel/exit.c:1012 __do_sys_exit_group kernel/exit.c:1023 [inline] __se_sys_exit_group kernel/exit.c:1021 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1021 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff888084505f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888084506000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888084506080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888084506100: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff888084506180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================