ffff88806d5849f0: e8 49 58 6d 80 88 ff ff 00 00 00 00 00 00 00 00 .IXm............ ffff88806d584a00: 00 4a 58 6d 80 88 ff ff 00 4a 58 6d 80 88 ff ff .JXm.....JXm.... ffff88806d584a10: 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................ ffff88806d584a20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff88806d584a30: 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 ffff88806d584a40 by task syz-executor.0/5455 CPU: 0 PID: 5455 Comm: syz-executor.0 Not tainted 6.5.0-syzkaller-12728-ga48fa7efaf11 #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_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:6278 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:1472 lookup_open.isra.0+0x8dc/0x1360 fs/namei.c:3473 open_last_lookups fs/namei.c:3563 [inline] path_openat+0x931/0x29c0 fs/namei.c:3793 do_filp_open+0x1de/0x430 fs/namei.c:3823 do_sys_openat2+0x176/0x1e0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_open fs/open.c:1445 [inline] __se_sys_open fs/open.c:1441 [inline] __x64_sys_open+0x154/0x1e0 fs/open.c:1441 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:0x7fc7e0c7ad39 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:00007fc7e1e950c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fc7e0d9bf80 RCX: 00007fc7e0c7ad39 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fc7e0cd7567 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc7e0d9bf80 R15: 00007fff6bab7ba8 Allocated by task 5455: 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:186 [inline] slab_post_alloc_hook mm/slab.h:762 [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+0x1ff/0x680 mm/slab.c:3439 alloc_inode_sb include/linux/fs.h:2909 [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:1467 lookup_open.isra.0+0x8dc/0x1360 fs/namei.c:3473 open_last_lookups fs/namei.c:3563 [inline] path_openat+0x931/0x29c0 fs/namei.c:3793 do_filp_open+0x1de/0x430 fs/namei.c:3823 do_sys_openat2+0x176/0x1e0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_open fs/open.c:1445 [inline] __se_sys_open fs/open.c:1441 [inline] __x64_sys_open+0x154/0x1e0 fs/open.c:1441 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 ffff88806d584180 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 [ffff88806d584180, ffff88806d584a40) The buggy address belongs to the physical page: page:ffffea0001b56100 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88806d584fff pfn:0x6d584 memcg:ffff88807b57d401 flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0x1() raw: 00fff00000000800 ffff8880153beb00 ffffea0001b560d0 ffff8880153eaf50 raw: ffff88806d584fff ffff88806d584180 0000000100000001 ffff88807b57d401 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 5455, tgid 5454 (syz-executor.0), ts 111477349663, free_ts 81678508955 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170 __alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426 __alloc_pages_node include/linux/gfp.h:237 [inline] kmem_getpages mm/slab.c:1356 [inline] cache_grow_begin+0x99/0x3a0 mm/slab.c:2550 cache_alloc_refill+0x294/0x3a0 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+0x56c/0x680 mm/slab.c:3439 alloc_inode_sb include/linux/fs.h:2909 [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:1467 lookup_open.isra.0+0x8dc/0x1360 fs/namei.c:3473 open_last_lookups fs/namei.c:3563 [inline] path_openat+0x931/0x29c0 fs/namei.c:3793 do_filp_open+0x1de/0x430 fs/namei.c:3823 do_sys_openat2+0x176/0x1e0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_open fs/open.c:1445 [inline] __se_sys_open fs/open.c:1441 [inline] __x64_sys_open+0x154/0x1e0 fs/open.c:1441 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312 free_unref_page_list+0xe6/0xb30 mm/page_alloc.c:2451 release_pages+0x32a/0x14e0 mm/swap.c:1042 tlb_batch_pages_flush+0x9a/0x190 mm/mmu_gather.c:98 zap_pte_range mm/memory.c:1534 [inline] zap_pmd_range mm/memory.c:1573 [inline] zap_pud_range mm/memory.c:1602 [inline] zap_p4d_range mm/memory.c:1623 [inline] unmap_page_range+0x19b7/0x2c10 mm/memory.c:1644 unmap_single_vma+0x194/0x2b0 mm/memory.c:1690 unmap_vmas+0x1e8/0x330 mm/memory.c:1731 exit_mmap+0x1ad/0xa60 mm/mmap.c:3210 __mmput+0x12a/0x4d0 kernel/fork.c:1349 mmput+0x62/0x70 kernel/fork.c:1371 exit_mm kernel/exit.c:567 [inline] do_exit+0x9b4/0x2a20 kernel/exit.c:861 do_group_exit+0xd4/0x2a0 kernel/exit.c:1024 __do_sys_exit_group kernel/exit.c:1035 [inline] __se_sys_exit_group kernel/exit.c:1033 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1033 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 Memory state around the buggy address: ffff88806d584900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806d584980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806d584a00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88806d584a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806d584b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================