ffff888072118850: 00 00 00 00 00 00 00 00 80 3d dc 89 ff ff ff ff .........=...... ffff888072118860: 00 02 00 00 00 00 00 00 68 88 11 72 80 88 ff ff ........h..r.... ffff888072118870: 68 88 11 72 80 88 ff ff 00 00 00 00 00 00 00 00 h..r............ ffff888072118880: 80 88 11 72 80 88 ff ff 80 88 11 72 80 88 ff ff ...r.......r.... ffff888072118890: 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................ ffff8880721188a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff8880721188b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ================================================================== BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0xdc1/0xdf0 lib/hexdump.c:193 Read of size 1 at addr ffff8880721188c0 by task syz-executor364/3603 CPU: 0 PID: 3603 Comm: syz-executor364 Not tainted 6.1.0-rc1-next-20221021-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:253 [inline] print_report+0x15e/0x45d mm/kasan/report.c:364 kasan_report+0xbb/0x1f0 mm/kasan/report.c:464 hex_dump_to_buffer+0xdc1/0xdf0 lib/hexdump.c:193 print_hex_dump+0x12f/0x1d0 lib/hexdump.c:276 ea_get.cold+0xaa/0x197 fs/jfs/xattr.c:561 __jfs_getxattr+0xc4/0x3d0 fs/jfs/xattr.c:807 jfs_get_acl+0x139/0x190 fs/jfs/acl.c:38 get_acl.part.0+0xcf/0x2b0 fs/posix_acl.c:153 get_acl fs/posix_acl.c:125 [inline] posix_acl_create.part.0+0xbd/0x4e0 fs/posix_acl.c:632 posix_acl_create+0x12b/0x170 fs/posix_acl.c:666 jfs_init_acl+0x85/0x390 fs/jfs/acl.c:134 jfs_mkdir+0x28a/0xab0 fs/jfs/namei.c:236 vfs_mkdir+0x489/0x740 fs/namei.c:4035 do_mkdirat+0x28c/0x310 fs/namei.c:4060 __do_sys_mkdirat fs/namei.c:4075 [inline] __se_sys_mkdirat fs/namei.c:4073 [inline] __x64_sys_mkdirat+0x115/0x170 fs/namei.c:4073 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3351fb0f49 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffcb3bc35b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f3351fb0f49 RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003 RBP: 00007f3351f70710 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000f8008000 R13: 0000000000000000 R14: 00080000000000f4 R15: 0000000000000000 Allocated by task 3603: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:45 __kasan_unpoison_range-0xf/0x10 __kasan_kmalloc_large-0x2/0xe0 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slab.h:754 [inline] slab_alloc_node mm/slub.c:3403 [inline] slab_alloc mm/slub.c:3411 [inline] __kmem_cache_alloc_lru mm/slub.c:3418 [inline] kmem_cache_alloc_lru+0x254/0x730 mm/slub.c:3434 alloc_inode_sb include/linux/fs.h:3117 [inline] jfs_alloc_inode+0x23/0x60 fs/jfs/super.c:105 alloc_inode+0x61/0x230 fs/inode.c:259 iget_locked+0x1b7/0x6f0 fs/inode.c:1286 jfs_iget+0x1a/0x4d0 fs/jfs/inode.c:29 jfs_lookup+0x246/0x2f0 fs/jfs/namei.c:1462 __lookup_slow+0x24c/0x460 fs/namei.c:1685 lookup_slow fs/namei.c:1702 [inline] walk_component+0x33f/0x5a0 fs/namei.c:1993 lookup_last fs/namei.c:2450 [inline] path_lookupat+0x1ba/0x840 fs/namei.c:2474 filename_lookup+0x1ce/0x590 fs/namei.c:2503 user_path_at_empty+0x42/0x60 fs/namei.c:2876 user_path_at include/linux/namei.h:57 [inline] __do_sys_chdir fs/open.c:514 [inline] __se_sys_chdir fs/open.c:508 [inline] __x64_sys_chdir+0xb7/0x260 fs/open.c:508 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff888072118000 which belongs to the cache jfs_ip of size 2240 The buggy address is located 0 bytes to the right of 2240-byte region [ffff888072118000, ffff8880721188c0) The buggy address belongs to the physical page: page:ffffea0001c84600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x2 pfn:0x72118 head:ffffea0001c84600 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffff88814647e780 dead0000800d000d 0000000000000000 raw: 0000000000000002 0000000000000000 00000001ffffffff 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 3603, tgid 3603 (syz-executor364), ts 41672730416, free_ts 11857797029 prep_new_page mm/page_alloc.c:2538 [inline] get_page_from_freelist+0x10b5/0x2d50 mm/page_alloc.c:4287 __alloc_pages+0x1c7/0x5a0 mm/page_alloc.c:5546 alloc_pages+0x1a6/0x270 mm/mempolicy.c:2285 alloc_slab_page mm/slub.c:1794 [inline] allocate_slab+0x213/0x300 mm/slub.c:1939 new_slab mm/slub.c:1992 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3185 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3284 slab_alloc_node mm/slub.c:3369 [inline] slab_alloc mm/slub.c:3411 [inline] __kmem_cache_alloc_lru mm/slub.c:3418 [inline] kmem_cache_alloc_lru+0x4ad/0x730 mm/slub.c:3434 alloc_inode_sb include/linux/fs.h:3117 [inline] jfs_alloc_inode+0x23/0x60 fs/jfs/super.c:105 alloc_inode+0x61/0x230 fs/inode.c:259 iget_locked+0x1b7/0x6f0 fs/inode.c:1286 jfs_iget+0x1a/0x4d0 fs/jfs/inode.c:29 jfs_lookup+0x246/0x2f0 fs/jfs/namei.c:1462 __lookup_slow+0x24c/0x460 fs/namei.c:1685 lookup_slow fs/namei.c:1702 [inline] walk_component+0x33f/0x5a0 fs/namei.c:1993 lookup_last fs/namei.c:2450 [inline] path_lookupat+0x1ba/0x840 fs/namei.c:2474 filename_lookup+0x1ce/0x590 fs/namei.c:2503 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1458 [inline] free_pcp_prepare+0x65c/0xd90 mm/page_alloc.c:1508 free_unref_page_prepare mm/page_alloc.c:3386 [inline] free_unref_page+0x19/0x4d0 mm/page_alloc.c:3482 free_contig_range+0xb1/0x180 mm/page_alloc.c:9477 destroy_args+0xa8/0x64c mm/debug_vm_pgtable.c:1027 debug_vm_pgtable+0x2954/0x29e5 mm/debug_vm_pgtable.c:1350 do_one_initcall+0x13d/0x780 init/main.c:1306 do_initcall_level init/main.c:1379 [inline] do_initcalls init/main.c:1395 [inline] do_basic_setup init/main.c:1414 [inline] kernel_init_freeable+0x6f9/0x782 init/main.c:1634 kernel_init+0x1a/0x1d0 init/main.c:1522 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Memory state around the buggy address: ffff888072118780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888072118800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888072118880: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff888072118900: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff888072118980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================