ffff8880755d8850: 00 00 00 00 00 00 00 00 c0 13 5c 8a ff ff ff ff ..........\..... ffff8880755d8860: 00 02 00 00 00 00 00 00 68 88 5d 75 80 88 ff ff ........h.]u.... ffff8880755d8870: 68 88 5d 75 80 88 ff ff 00 00 00 00 00 00 00 00 h.]u............ ffff8880755d8880: 80 88 5d 75 80 88 ff ff 80 88 5d 75 80 88 ff ff ..]u......]u.... ffff8880755d8890: 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ................ ffff8880755d88a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff8880755d88b0: 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+0xdc5/0xdf0 lib/hexdump.c:193 Read of size 1 at addr ffff8880755d88c0 by task syz-executor260/4998 CPU: 1 PID: 4998 Comm: syz-executor260 Not tainted 6.4.0-syzkaller-01406-ge8f75c0270d9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:351 print_report mm/kasan/report.c:462 [inline] kasan_report+0x11c/0x130 mm/kasan/report.c:572 hex_dump_to_buffer+0xdc5/0xdf0 lib/hexdump.c:193 print_hex_dump+0x171/0x240 lib/hexdump.c:276 ea_get+0x743/0x12e0 fs/jfs/xattr.c:561 jfs_listxattr+0xd3/0x6a0 fs/jfs/xattr.c:867 vfs_listxattr+0xb7/0x130 fs/xattr.c:494 listxattr+0xf6/0x180 fs/xattr.c:841 path_listxattr+0xae/0x140 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1be3a47a39 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff99055328 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1be3a47a39 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f1be3a07040 R08: 0000000000005ed8 R09: 0000000000000000 R10: 00007fff990551f0 R11: 0000000000000246 R12: 00007f1be3a070d0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 4998: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x7f/0x90 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook mm/slab.h:711 [inline] slab_alloc_node mm/slub.c:3451 [inline] slab_alloc mm/slub.c:3459 [inline] __kmem_cache_alloc_lru mm/slub.c:3466 [inline] kmem_cache_alloc_lru+0x20a/0x600 mm/slub.c:3482 alloc_inode_sb include/linux/fs.h:2730 [inline] jfs_alloc_inode+0x27/0x60 fs/jfs/super.c:105 alloc_inode+0x61/0x230 fs/inode.c:260 iget_locked+0x1bb/0x700 fs/inode.c:1328 jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29 jfs_lookup+0x278/0x340 fs/jfs/namei.c:1462 __lookup_slow+0x24c/0x460 fs/namei.c:1690 lookup_slow fs/namei.c:1707 [inline] walk_component+0x33f/0x5a0 fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x1ba/0x840 fs/namei.c:2479 filename_lookup+0x1d2/0x590 fs/namei.c:2508 user_path_at_empty+0x46/0x60 fs/namei.c:2907 user_path_at include/linux/namei.h:57 [inline] path_listxattr+0x87/0x140 fs/xattr.c:862 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff8880755d8000 which belongs to the cache jfs_ip of size 2240 The buggy address is located 0 bytes to the right of allocated 2240-byte region [ffff8880755d8000, ffff8880755d88c0) The buggy address belongs to the physical page: page:ffffea0001d57600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x755d8 head:ffffea0001d57600 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010200 ffff88814229d780 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 4998, tgid 4998 (syz-executor260), ts 40315425790, free_ts 9500963618 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2db/0x350 mm/page_alloc.c:1744 prep_new_page mm/page_alloc.c:1751 [inline] get_page_from_freelist+0xf41/0x2c00 mm/page_alloc.c:3523 __alloc_pages+0x1cb/0x4a0 mm/page_alloc.c:4794 alloc_pages+0x1aa/0x270 mm/mempolicy.c:2279 alloc_slab_page mm/slub.c:1851 [inline] allocate_slab+0x25f/0x390 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3192 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3291 __slab_alloc_node mm/slub.c:3344 [inline] slab_alloc_node mm/slub.c:3441 [inline] slab_alloc mm/slub.c:3459 [inline] __kmem_cache_alloc_lru mm/slub.c:3466 [inline] kmem_cache_alloc_lru+0x4a8/0x600 mm/slub.c:3482 alloc_inode_sb include/linux/fs.h:2730 [inline] jfs_alloc_inode+0x27/0x60 fs/jfs/super.c:105 alloc_inode+0x61/0x230 fs/inode.c:260 iget_locked+0x1bb/0x700 fs/inode.c:1328 jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29 jfs_lookup+0x278/0x340 fs/jfs/namei.c:1462 __lookup_slow+0x24c/0x460 fs/namei.c:1690 lookup_slow fs/namei.c:1707 [inline] walk_component+0x33f/0x5a0 fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x1ba/0x840 fs/namei.c:2479 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1308 [inline] free_unref_page_prepare+0x62e/0xcb0 mm/page_alloc.c:2577 free_unref_page+0x33/0x370 mm/page_alloc.c:2672 free_contig_range+0xb5/0x180 mm/page_alloc.c:7020 destroy_args+0x6c4/0x920 mm/debug_vm_pgtable.c:1023 debug_vm_pgtable+0x2412/0x4210 mm/debug_vm_pgtable.c:1403 do_one_initcall+0x102/0x540 init/main.c:1232 do_initcall_level init/main.c:1305 [inline] do_initcalls init/main.c:1321 [inline] do_basic_setup init/main.c:1340 [inline] kernel_init_freeable+0x64e/0xba0 init/main.c:1557 kernel_init+0x1e/0x2c0 init/main.c:1448 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Memory state around the buggy address: ffff8880755d8780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880755d8800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880755d8880: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff8880755d8900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880755d8980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================