ffff88806e2e7c80: 80 7c 2e 6e 80 88 ff ff 80 7c 2e 6e 80 88 ff ff .|.n.....|.n.... ffff88806e2e7c90: 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................ ffff88806e2e7ca0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff88806e2e7cb0: 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 ffff88806e2e7cc0 by task syz-executor.0/5498 CPU: 1 PID: 5498 Comm: syz-executor.0 Not tainted 6.7.0-rc1-syzkaller-00125-g7475e51b8796 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/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_getxattr+0xfd/0x3e0 fs/jfs/xattr.c:807 jfs_xattr_get+0x3c/0x50 fs/jfs/xattr.c:931 __vfs_getxattr+0x13b/0x1a0 fs/xattr.c:424 inode_doinit_use_xattr+0xb5/0x410 security/selinux/hooks.c:1359 inode_doinit_with_dentry+0x51f/0x12c0 security/selinux/hooks.c:1484 selinux_d_instantiate+0x26/0x30 security/selinux/hooks.c:6284 security_d_instantiate+0x54/0xe0 security/security.c:3799 d_splice_alias+0x94/0xdf0 fs/dcache.c:3145 jfs_lookup+0x233/0x370 fs/jfs/namei.c:1474 lookup_open.isra.0+0x926/0x13b0 fs/namei.c:3455 open_last_lookups fs/namei.c:3546 [inline] path_openat+0x922/0x2c50 fs/namei.c:3776 do_filp_open+0x1de/0x430 fs/namei.c:3809 do_sys_openat2+0x176/0x1e0 fs/open.c:1440 do_sys_open fs/open.c:1455 [inline] __do_sys_open fs/open.c:1463 [inline] __se_sys_open fs/open.c:1459 [inline] __x64_sys_open+0x154/0x1e0 fs/open.c:1459 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f9a9727ad39 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9a984ae0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f9a9739bf80 RCX: 00007f9a9727ad39 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007f9a972d7567 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f9a9739bf80 R15: 00007fffe5c479e8 Allocated by task 5498: 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:763 [inline] slab_alloc_node mm/slab.c:3237 [inline] slab_alloc mm/slab.c:3246 [inline] __kmem_cache_alloc_lru mm/slab.c:3423 [inline] kmem_cache_alloc_lru+0x202/0x630 mm/slab.c:3439 alloc_inode_sb include/linux/fs.h:2937 [inline] jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105 alloc_inode+0x5d/0x220 fs/inode.c:259 iget_locked+0x1b3/0x700 fs/inode.c:1314 jfs_iget+0x1e/0x4c0 fs/jfs/inode.c:29 jfs_lookup+0x2a4/0x370 fs/jfs/namei.c:1469 lookup_open.isra.0+0x926/0x13b0 fs/namei.c:3455 open_last_lookups fs/namei.c:3546 [inline] path_openat+0x922/0x2c50 fs/namei.c:3776 do_filp_open+0x1de/0x430 fs/namei.c:3809 do_sys_openat2+0x176/0x1e0 fs/open.c:1440 do_sys_open fs/open.c:1455 [inline] __do_sys_open fs/open.c:1463 [inline] __se_sys_open fs/open.c:1459 [inline] __x64_sys_open+0x154/0x1e0 fs/open.c:1459 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b The buggy address belongs to the object at ffff88806e2e7400 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 [ffff88806e2e7400, ffff88806e2e7cc0) The buggy address belongs to the physical page: page:ffffea0001b8b9c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88806e2e7fff pfn:0x6e2e7 memcg:ffff88807b413901 flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0x1() raw: 00fff00000000800 ffff888141ed8a00 ffffea0001b8b990 ffff888014b3e450 raw: ffff88806e2e7fff ffff88806e2e7400 0000000100000001 ffff88807b413901 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x342050(__GFP_IO|__GFP_NOWARN|__GFP_COMP|__GFP_HARDWALL|__GFP_THISNODE|__GFP_RECLAIMABLE), pid 5498, tgid 5496 (syz-executor.0), ts 110669140848, free_ts 27340969466 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312 __alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568 __alloc_pages_node include/linux/gfp.h:238 [inline] kmem_getpages mm/slab.c:1356 [inline] cache_grow_begin+0x99/0x3a0 mm/slab.c:2550 cache_alloc_refill+0x295/0x3b0 mm/slab.c:2923 ____cache_alloc mm/slab.c:2999 [inline] ____cache_alloc mm/slab.c:2982 [inline] __do_cache_alloc mm/slab.c:3182 [inline] slab_alloc_node mm/slab.c:3230 [inline] slab_alloc mm/slab.c:3246 [inline] __kmem_cache_alloc_lru mm/slab.c:3423 [inline] kmem_cache_alloc_lru+0x4cc/0x630 mm/slab.c:3439 alloc_inode_sb include/linux/fs.h:2937 [inline] jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105 alloc_inode+0x5d/0x220 fs/inode.c:259 iget_locked+0x1b3/0x700 fs/inode.c:1314 jfs_iget+0x1e/0x4c0 fs/jfs/inode.c:29 jfs_lookup+0x2a4/0x370 fs/jfs/namei.c:1469 lookup_open.isra.0+0x926/0x13b0 fs/namei.c:3455 open_last_lookups fs/namei.c:3546 [inline] path_openat+0x922/0x2c50 fs/namei.c:3776 do_filp_open+0x1de/0x430 fs/namei.c:3809 do_sys_openat2+0x176/0x1e0 fs/open.c:1440 do_sys_open fs/open.c:1455 [inline] __do_sys_open fs/open.c:1463 [inline] __se_sys_open fs/open.c:1459 [inline] __x64_sys_open+0x154/0x1e0 fs/open.c:1459 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1137 [inline] free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2487 free_contig_range+0xb6/0x190 mm/page_alloc.c:6536 destroy_args+0xa69/0xe40 mm/debug_vm_pgtable.c:1028 debug_vm_pgtable+0x16fe/0x3250 mm/debug_vm_pgtable.c:1408 do_one_initcall+0x11c/0x650 init/main.c:1236 do_initcall_level init/main.c:1298 [inline] do_initcalls init/main.c:1314 [inline] do_basic_setup init/main.c:1333 [inline] kernel_init_freeable+0x687/0xc10 init/main.c:1551 kernel_init+0x1c/0x2a0 init/main.c:1441 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Memory state around the buggy address: ffff88806e2e7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806e2e7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806e2e7c80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88806e2e7d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806e2e7d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================