loop0: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: out-of-bounds in diRead+0x8bf/0xae0 fs/jfs/jfs_imap.c:328 Read of size 4 at addr ffff88807b028010 by task syz-executor.0/7503 CPU: 0 PID: 7503 Comm: syz-executor.0 Not tainted 6.4.0-rc3-syzkaller-00190-g0d85b27b0cc6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/16/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:351 [inline] print_report+0x163/0x540 mm/kasan/report.c:462 kasan_report+0x176/0x1b0 mm/kasan/report.c:572 diRead+0x8bf/0xae0 fs/jfs/jfs_imap.c:328 jfs_iget+0x8c/0x3b0 fs/jfs/inode.c:35 jfs_lookup+0x226/0x410 fs/jfs/namei.c:1462 __lookup_slow+0x282/0x3e0 fs/namei.c:1690 lookup_slow+0x53/0x70 fs/namei.c:1707 walk_component fs/namei.c:1998 [inline] link_path_walk+0x9c8/0xe70 fs/namei.c:2325 path_openat+0x241/0x3170 fs/namei.c:3787 do_filp_open+0x234/0x490 fs/namei.c:3818 do_sys_openat2+0x13f/0x500 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1383 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1bd288c0d9 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:00007f1bd36cc168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f1bd29abf80 RCX: 00007f1bd288c0d9 RDX: 0000000000101800 RSI: 00000000200000c0 RDI: ffffffffffffff9c RBP: 00007f1bd28e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000059 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff8dd8913f R14: 00007f1bd36cc300 R15: 0000000000022000 The buggy address belongs to the physical page: page:ffffea0001ec0a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7b028 head:ffffea0001ec0a00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000010000(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x140cc0(GFP_USER|__GFP_COMP), pid 7504, tgid 7502 (syz-executor.0), ts 237978583114, free_ts 237978469242 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1731 prep_new_page mm/page_alloc.c:1738 [inline] get_page_from_freelist+0x321c/0x33a0 mm/page_alloc.c:3502 __alloc_pages+0x255/0x670 mm/page_alloc.c:4768 __alloc_pages_node include/linux/gfp.h:237 [inline] alloc_pages_node include/linux/gfp.h:260 [inline] __kmalloc_large_node+0x91/0x1d0 mm/slab_common.c:1107 kmalloc_large+0x20/0x100 mm/slab_common.c:1124 kmalloc include/linux/slab.h:556 [inline] diMount+0x29/0x870 fs/jfs/jfs_imap.c:105 jfs_mount_rw+0x2da/0x6a0 fs/jfs/jfs_mount.c:240 jfs_remount+0x3d1/0x6b0 fs/jfs/super.c:454 reconfigure_super+0x3c9/0x7c0 fs/super.c:956 vfs_fsconfig_locked fs/fsopen.c:254 [inline] __do_sys_fsconfig fs/fsopen.c:439 [inline] __se_sys_fsconfig+0xa29/0xf70 fs/fsopen.c:314 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1302 [inline] free_unref_page_prepare+0x903/0xa30 mm/page_alloc.c:2564 free_unref_page+0x37/0x3f0 mm/page_alloc.c:2659 free_large_kmalloc+0xff/0x190 mm/slab_common.c:943 diUnmount+0xf3/0x100 fs/jfs/jfs_imap.c:195 jfs_mount_rw+0x2bf/0x6a0 fs/jfs/jfs_mount.c:239 jfs_remount+0x3d1/0x6b0 fs/jfs/super.c:454 reconfigure_super+0x3c9/0x7c0 fs/super.c:956 vfs_fsconfig_locked fs/fsopen.c:254 [inline] __do_sys_fsconfig fs/fsopen.c:439 [inline] __se_sys_fsconfig+0xa29/0xf70 fs/fsopen.c:314 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff88807b027f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807b027f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88807b028000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88807b028080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807b028100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================