ffff888075233fe0: 00 02 00 00 00 00 00 00 e8 3f 23 75 80 88 ff ff .........?#u.... ffff888075233ff0: e8 3f 23 75 80 88 ff ff 00 00 00 00 00 00 00 00 .?#u............ ffff888075234000: 00 40 23 75 80 88 ff ff 00 40 23 75 80 88 ff ff .@#u.....@#u.... ffff888075234010: 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ................ ffff888075234020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff888075234030: 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+0xdea/0xe30 lib/hexdump.c:193 Read of size 1 at addr ffff888075234040 by task syz-executor388/5036 CPU: 0 PID: 5036 Comm: syz-executor388 Not tainted 6.5.0-rc5-next-20230809-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc4/0x620 mm/kasan/report.c:475 kasan_report+0xda/0x110 mm/kasan/report.c:588 hex_dump_to_buffer+0xdea/0xe30 lib/hexdump.c:193 print_hex_dump+0x18c/0x260 lib/hexdump.c:276 ea_get+0x860/0x12c0 fs/jfs/xattr.c:561 jfs_listxattr+0xf3/0x6c0 fs/jfs/xattr.c:867 vfs_listxattr+0xb3/0x130 fs/xattr.c:494 listxattr+0x104/0x180 fs/xattr.c:841 path_listxattr+0xc3/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc0bc53a879 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffdb79764d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007ffdb79766b8 RCX: 00007fc0bc53a879 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007fc0bc5b3610 R08: 0000000000005ed8 R09: 0000000000000000 R10: 00007ffdb79763a0 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffdb79766a8 R14: 0000000000000001 R15: 0000000000000001 Allocated by task 5036: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:762 [inline] slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc_lru+0x21a/0x630 mm/slub.c:3509 alloc_inode_sb include/linux/fs.h:2856 [inline] jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105 alloc_inode+0x5d/0x220 fs/inode.c:260 iget_locked+0x1b3/0x700 fs/inode.c:1330 jfs_iget+0x1e/0x4c0 fs/jfs/inode.c:29 jfs_lookup+0x2a4/0x370 fs/jfs/namei.c:1467 __lookup_slow+0x24d/0x450 fs/namei.c:1690 lookup_slow fs/namei.c:1707 [inline] walk_component+0x349/0x5a0 fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x17f/0x770 fs/namei.c:2479 filename_lookup+0x1e7/0x5b0 fs/namei.c:2508 user_path_at_empty+0x42/0x60 fs/namei.c:2907 user_path_at include/linux/namei.h:57 [inline] path_listxattr+0x9c/0x160 fs/xattr.c:862 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff888075233780 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 [ffff888075233780, ffff888075234040) The buggy address belongs to the physical page: page:ffffea0001d48c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x75230 head:ffffea0001d48c00 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 ffff888014bf2500 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 5036, tgid 5036 (syz-executor388), ts 78041594777, free_ts 26766579230 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1567 prep_new_page mm/page_alloc.c:1574 [inline] get_page_from_freelist+0x10d7/0x31b0 mm/page_alloc.c:3253 __alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4509 alloc_pages+0x1a9/0x270 mm/mempolicy.c:2298 alloc_slab_page mm/slub.c:1870 [inline] allocate_slab+0x24e/0x380 mm/slub.c:2017 new_slab mm/slub.c:2070 [inline] ___slab_alloc+0x8bc/0x1570 mm/slub.c:3223 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3322 __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc_lru+0x4e4/0x630 mm/slub.c:3509 alloc_inode_sb include/linux/fs.h:2856 [inline] jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105 alloc_inode+0x5d/0x220 fs/inode.c:260 new_inode_pseudo fs/inode.c:1018 [inline] new_inode+0x29/0x270 fs/inode.c:1046 jfs_fill_super+0x433/0xd20 fs/jfs/super.c:544 mount_bdev+0x1f3/0x2e0 fs/super.c:1423 legacy_get_tree+0x109/0x220 fs/fs_context.c:611 vfs_get_tree+0x88/0x350 fs/super.c:1544 do_new_mount fs/namespace.c:3335 [inline] path_mount+0x1492/0x1ed0 fs/namespace.c:3662 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1158 [inline] free_unref_page_prepare+0x508/0xb90 mm/page_alloc.c:2380 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2475 free_contig_range+0xb6/0x190 mm/page_alloc.c:6424 destroy_args+0x78c/0x9b0 mm/debug_vm_pgtable.c:1028 debug_vm_pgtable+0x2363/0x40a0 mm/debug_vm_pgtable.c:1408 do_one_initcall+0x117/0x630 init/main.c:1232 do_initcall_level init/main.c:1294 [inline] do_initcalls init/main.c:1310 [inline] do_basic_setup init/main.c:1329 [inline] kernel_init_freeable+0x5c2/0x900 init/main.c:1547 kernel_init+0x1c/0x2a0 init/main.c:1437 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Memory state around the buggy address: ffff888075233f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888075233f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888075234000: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff888075234080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888075234100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================