ffff8880775e36d0: 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................ ffff8880775e36e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff8880775e36f0: 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 ffff8880775e3700 by task syz-executor360/5233 CPU: 1 PID: 5233 Comm: syz-executor360 Not tainted 6.1.0-rc3-next-20221104-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/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+0x235/0x390 fs/posix_acl.c:159 __get_acl fs/posix_acl.c:132 [inline] get_inode_acl fs/posix_acl.c:184 [inline] posix_acl_create.part.0+0xca/0x4e0 fs/posix_acl.c:647 posix_acl_create+0x12b/0x170 fs/posix_acl.c:681 jfs_init_acl+0x85/0x390 fs/jfs/acl.c:135 jfs_mkdir+0x28a/0xab0 fs/jfs/namei.c:236 vfs_mkdir+0x489/0x740 fs/namei.c:4035 do_mkdirat+0x277/0x2f0 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:0x7f3f13cffd69 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:00007ffcd0da4af8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f3f13cffd69 RDX: 0000000000000050 RSI: 0000000020000040 RDI: 0000000000000003 RBP: 00007f3f13cbf530 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000f8008000 R13: 0000000000000000 R14: 00080000000000f4 R15: 0000000000000000 Allocated by task 5233: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:45 kasan_set_track+0x21/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x7e/0x80 mm/kasan/common.c:330 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook mm/slab.h:747 [inline] slab_alloc_node mm/slub.c:3390 [inline] slab_alloc mm/slub.c:3398 [inline] __kmem_cache_alloc_lru mm/slub.c:3405 [inline] kmem_cache_alloc_lru+0x254/0x730 mm/slub.c:3421 alloc_inode_sb include/linux/fs.h:3089 [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_open.isra.0+0x74c/0x1270 fs/namei.c:3391 open_last_lookups fs/namei.c:3481 [inline] path_openat+0x975/0x2a50 fs/namei.c:3710 do_filp_open+0x1b6/0x400 fs/namei.c:3740 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1330 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 ffff8880775e2e40 which belongs to the cache jfs_ip of size 2240 The buggy address is located 0 bytes to the right of 2240-byte region [ffff8880775e2e40, ffff8880775e3700) The buggy address belongs to the physical page: page:ffffea0001dd7800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x775e0 head:ffffea0001dd7800 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffff888145e04000 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800d000d 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 5233, tgid 5233 (syz-executor360), ts 56245489515, free_ts 13305433662 prep_new_page mm/page_alloc.c:2554 [inline] get_page_from_freelist+0x10b5/0x2d50 mm/page_alloc.c:4303 __alloc_pages+0x1c7/0x5a0 mm/page_alloc.c:5562 alloc_pages+0x1a6/0x270 mm/mempolicy.c:2285 alloc_slab_page mm/slub.c:1794 [inline] allocate_slab+0x207/0x2c0 mm/slub.c:1941 new_slab mm/slub.c:1994 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3172 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3271 slab_alloc_node mm/slub.c:3356 [inline] slab_alloc mm/slub.c:3398 [inline] __kmem_cache_alloc_lru mm/slub.c:3405 [inline] kmem_cache_alloc_lru+0x4ad/0x730 mm/slub.c:3421 alloc_inode_sb include/linux/fs.h:3089 [inline] jfs_alloc_inode+0x23/0x60 fs/jfs/super.c:105 alloc_inode+0x61/0x230 fs/inode.c:259 new_inode_pseudo fs/inode.c:1018 [inline] new_inode+0x27/0x270 fs/inode.c:1046 jfs_fill_super+0x436/0xc70 fs/jfs/super.c:544 mount_bdev+0x34d/0x410 fs/super.c:1401 legacy_get_tree+0x105/0x220 fs/fs_context.c:610 vfs_get_tree+0x89/0x2f0 fs/super.c:1531 do_new_mount fs/namespace.c:3145 [inline] path_mount+0x1326/0x1e20 fs/namespace.c:3475 do_mount fs/namespace.c:3488 [inline] __do_sys_mount fs/namespace.c:3696 [inline] __se_sys_mount fs/namespace.c:3673 [inline] __x64_sys_mount+0x27f/0x300 fs/namespace.c:3673 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1461 [inline] free_pcp_prepare+0x65c/0xd90 mm/page_alloc.c:1511 free_unref_page_prepare mm/page_alloc.c:3402 [inline] free_unref_page+0x19/0x4d0 mm/page_alloc.c:3498 free_contig_range+0xb1/0x180 mm/page_alloc.c:9493 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: ffff8880775e3600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880775e3680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880775e3700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880775e3780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880775e3800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================