ffff888053380870: 68 08 38 53 80 88 ff ff 00 00 00 00 00 00 00 00 h.8S............ ffff888053380880: 80 08 38 53 80 88 ff ff 80 08 38 53 80 88 ff ff ..8S......8S.... ffff888053380890: 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ................ ffff8880533808a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff8880533808b0: 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+0x72d/0xba0 lib/hexdump.c:193 Read of size 1 at addr ffff8880533808c0 by task syz-executor.4/4609 CPU: 1 PID: 4609 Comm: syz-executor.4 Not tainted 6.1.89-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:395 kasan_report+0x136/0x160 mm/kasan/report.c:495 hex_dump_to_buffer+0x72d/0xba0 lib/hexdump.c:193 print_hex_dump+0x13b/0x250 lib/hexdump.c:276 ea_get+0xcdc/0x1280 fs/jfs/xattr.c:561 __jfs_setxattr+0xf8/0x11d0 fs/jfs/xattr.c:671 __jfs_xattr_set+0xf5/0x180 fs/jfs/xattr.c:917 __vfs_setxattr+0x3e7/0x420 fs/xattr.c:182 __vfs_setxattr_noperm+0x12a/0x5e0 fs/xattr.c:216 vfs_setxattr+0x21d/0x420 fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x250/0x2b0 fs/xattr.c:617 path_setxattr+0x1bc/0x2a0 fs/xattr.c:636 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __x64_sys_lsetxattr+0xb4/0xd0 fs/xattr.c:655 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fadb3e7dea9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fadb4b600c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007fadb3fabf80 RCX: 00007fadb3e7dea9 RDX: 0000000020000040 RSI: 00000000200001c0 RDI: 0000000020000180 RBP: 00007fadb3eca4a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000e01 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fadb3fabf80 R15: 00007ffcc79fdea8 Allocated by task 4609: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x65/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc_lru+0x10c/0x2d0 mm/slub.c:3429 alloc_inode_sb include/linux/fs.h:3193 [inline] jfs_alloc_inode+0x24/0x60 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] iget_locked+0x1c8/0x830 fs/inode.c:1330 jfs_iget+0x1e/0x3b0 fs/jfs/inode.c:29 jfs_lookup+0x222/0x400 fs/jfs/namei.c:1467 __lookup_slow+0x27e/0x3d0 fs/namei.c:1690 lookup_slow+0x53/0x70 fs/namei.c:1707 walk_component+0x2d0/0x400 fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2479 filename_lookup+0x251/0x600 fs/namei.c:2508 user_path_at_empty+0x3e/0x60 fs/namei.c:2907 user_path_at include/linux/namei.h:57 [inline] path_setxattr+0xae/0x2a0 fs/xattr.c:631 __do_sys_lsetxattr fs/xattr.c:659 [inline] __se_sys_lsetxattr fs/xattr.c:655 [inline] __x64_sys_lsetxattr+0xb4/0xd0 fs/xattr.c:655 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888053380000 which belongs to the cache jfs_ip of size 2240 The buggy address is located 0 bytes to the right of 2240-byte region [ffff888053380000, ffff8880533808c0) The buggy address belongs to the physical page: page:ffffea00014ce000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x53380 head:ffffea00014ce000 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88801edb9a01 flags: 0xfff80000010200(slab|head|node=0|zone=1|lastcpupid=0xfff) raw: 00fff80000010200 0000000000000000 dead000000000122 ffff888146a8ba00 raw: 0000000000000000 00000000800d000d 00000001ffffffff ffff88801edb9a01 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 4609, tgid 4607 (syz-executor.4), ts 103213678062, free_ts 14226211828 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2513 prep_new_page mm/page_alloc.c:2520 [inline] get_page_from_freelist+0x31a1/0x3320 mm/page_alloc.c:4279 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5547 alloc_slab_page+0x6a/0x150 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x84/0x2d0 mm/slub.c:1992 ___slab_alloc+0xc20/0x1270 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc_lru+0x1a5/0x2d0 mm/slub.c:3429 alloc_inode_sb include/linux/fs.h:3193 [inline] jfs_alloc_inode+0x24/0x60 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] iget_locked+0x1c8/0x830 fs/inode.c:1330 jfs_iget+0x1e/0x3b0 fs/jfs/inode.c:29 jfs_lookup+0x222/0x400 fs/jfs/namei.c:1467 __lookup_slow+0x27e/0x3d0 fs/namei.c:1690 lookup_slow+0x53/0x70 fs/namei.c:1707 walk_component+0x2d0/0x400 fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2479 filename_lookup+0x251/0x600 fs/namei.c:2508 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1440 [inline] free_pcp_prepare mm/page_alloc.c:1490 [inline] free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3358 free_unref_page+0x33/0x3e0 mm/page_alloc.c:3453 free_contig_range+0x9a/0x150 mm/page_alloc.c:9507 destroy_args+0xfe/0x997 mm/debug_vm_pgtable.c:1031 debug_vm_pgtable+0x416/0x46b mm/debug_vm_pgtable.c:1354 do_one_initcall+0x265/0x8f0 init/main.c:1299 do_initcall_level+0x157/0x207 init/main.c:1372 do_initcalls+0x49/0x86 init/main.c:1388 kernel_init_freeable+0x45c/0x60f init/main.c:1627 kernel_init+0x19/0x290 init/main.c:1515 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Memory state around the buggy address: ffff888053380780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888053380800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888053380880: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff888053380900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888053380980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================