ffff888076be2d70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff888076be2d80: 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+0x731/0xba0 lib/hexdump.c:193 Read of size 1 at addr ffff888076be2d98 by task syz-executor.0/5415 CPU: 1 UID: 0 PID: 5415 Comm: syz-executor.0 Not tainted 6.12.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 hex_dump_to_buffer+0x731/0xba0 lib/hexdump.c:193 print_hex_dump+0x13f/0x250 lib/hexdump.c:276 ea_get+0xd17/0x12c0 fs/jfs/xattr.c:565 jfs_listxattr+0xe5/0x990 fs/jfs/xattr.c:879 vfs_listxattr fs/xattr.c:493 [inline] listxattr+0x107/0x280 fs/xattr.c:841 path_listxattr fs/xattr.c:865 [inline] __do_sys_listxattr fs/xattr.c:877 [inline] __se_sys_listxattr fs/xattr.c:874 [inline] __x64_sys_listxattr+0x173/0x230 fs/xattr.c:874 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x82/0x160 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f7ed187cb29 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:00007f7ed13f90c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007f7ed199bf80 RCX: 00007f7ed187cb29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f7ed18c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f7ed199bf80 R15: 00007ffedf63c108 Allocated by task 5415: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x4b/0x60 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:247 [inline] slab_post_alloc_hook mm/slub.c:4085 [inline] slab_alloc_node mm/slub.c:4134 [inline] kmem_cache_alloc_lru_noprof+0x134/0x280 mm/slub.c:4153 jfs_alloc_inode+0x28/0x70 fs/jfs/super.c:105 alloc_inode+0x65/0x1a0 fs/inode.c:265 iget_locked+0xf1/0x5a0 fs/inode.c:1418 jfs_iget+0x23/0x3e0 fs/jfs/inode.c:29 jfs_lookup+0x226/0x410 fs/jfs/namei.c:1469 __lookup_slow+0x28c/0x3f0 fs/namei.c:1732 lookup_slow+0x53/0x70 fs/namei.c:1749 walk_component+0x2e1/0x410 fs/namei.c:2053 lookup_last fs/namei.c:2556 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2580 filename_lookup+0x256/0x610 fs/namei.c:2609 user_path_at+0x3a/0x60 fs/namei.c:3016 path_listxattr fs/xattr.c:862 [inline] __do_sys_listxattr fs/xattr.c:877 [inline] __se_sys_listxattr fs/xattr.c:874 [inline] __x64_sys_listxattr+0x109/0x230 fs/xattr.c:874 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x82/0x160 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x76/0x7e The buggy address belongs to the object at ffff888076be24e0 which belongs to the cache jfs_ip of size 2232 The buggy address is located 0 bytes to the right of allocated 2232-byte region [ffff888076be24e0, ffff888076be2d98) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x76be0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff888015b96640 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800d000d 00000001f5000000 0000000000000000 head: 00fff00000000040 ffff888015b96640 dead000000000122 0000000000000000 head: 0000000000000000 00000000800d000d 00000001f5000000 0000000000000000 head: 00fff00000000003 ffffea0001daf801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 5415, tgid 5414 (syz-executor.0), ts 75012637749, free_ts 13370012665 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1ee/0x220 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1545 [inline] get_page_from_freelist+0x3a55/0x3cc0 mm/page_alloc.c:3457 __alloc_pages_noprof+0x261/0x6a0 mm/page_alloc.c:4733 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 alloc_slab_page+0x6a/0x120 mm/slub.c:2412 allocate_slab+0x5a/0x2e0 mm/slub.c:2578 new_slab mm/slub.c:2631 [inline] ___slab_alloc+0xcd8/0x14b0 mm/slub.c:3818 __slab_alloc+0x58/0xa0 mm/slub.c:3908 __slab_alloc_node mm/slub.c:3961 [inline] slab_alloc_node mm/slub.c:4122 [inline] kmem_cache_alloc_lru_noprof+0x1c0/0x280 mm/slub.c:4153 jfs_alloc_inode+0x28/0x70 fs/jfs/super.c:105 alloc_inode+0x65/0x1a0 fs/inode.c:265 new_inode_pseudo fs/inode.c:1104 [inline] new_inode+0x22/0x1d0 fs/inode.c:1123 diReadSpecial+0x52/0x680 fs/jfs/jfs_imap.c:426 jfs_mount+0x175/0x830 fs/jfs/jfs_mount.c:108 jfs_fill_super+0x59c/0xc50 fs/jfs/super.c:556 mount_bdev+0x20a/0x2d0 fs/super.c:1679 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1108 [inline] free_unref_page+0xcc2/0xed0 mm/page_alloc.c:2638 free_contig_range+0x152/0x540 mm/page_alloc.c:6748 destroy_args+0x8a/0x840 mm/debug_vm_pgtable.c:1017 debug_vm_pgtable+0x4be/0x550 mm/debug_vm_pgtable.c:1397 do_one_initcall+0x248/0x860 init/main.c:1269 do_initcall_level+0x157/0x210 init/main.c:1331 do_initcalls+0x3f/0x80 init/main.c:1347 kernel_init_freeable+0x435/0x5d0 init/main.c:1580 kernel_init+0x1d/0x2b0 init/main.c:1469 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffff888076be2c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888076be2d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888076be2d80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888076be2e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888076be2e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================