ffff888070270a10: 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................ ffff888070270a20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff888070270a30: 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+0x909/0xc10 lib/hexdump.c:193 Read of size 1 at addr ffff888070270a40 by task syz-executor.0/5599 CPU: 1 PID: 5599 Comm: syz-executor.0 Not tainted 6.3.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x60/0xa0 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:319 print_report mm/kasan/report.c:430 [inline] kasan_report+0x118/0x130 mm/kasan/report.c:536 hex_dump_to_buffer+0x909/0xc10 lib/hexdump.c:193 print_hex_dump+0x12e/0x1e0 lib/hexdump.c:276 ea_get+0x5b7/0x14b0 fs/jfs/xattr.c:561 __jfs_getxattr+0xbb/0x310 fs/jfs/xattr.c:807 jfs_xattr_get+0x27/0x30 fs/jfs/xattr.c:931 __vfs_getxattr+0xe6/0x140 fs/xattr.c:426 inode_doinit_use_xattr+0xab/0x380 security/selinux/hooks.c:1321 inode_doinit_with_dentry+0xaee/0x11b0 security/selinux/hooks.c:1443 security_d_instantiate+0x41/0xb0 security/security.c:2139 d_splice_alias+0x68/0xcc0 fs/dcache.c:3146 jfs_lookup+0x1a1/0x2a0 fs/jfs/namei.c:1467 lookup_open.isra.0+0x844/0x1510 fs/namei.c:3394 open_last_lookups fs/namei.c:3484 [inline] path_openat+0x7ad/0x2280 fs/namei.c:3712 do_filp_open+0x1a5/0x3d0 fs/namei.c:3742 do_sys_openat2+0x11e/0x3f0 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_open fs/open.c:1372 [inline] __se_sys_open fs/open.c:1368 [inline] __x64_sys_open+0xfd/0x1a0 fs/open.c:1368 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa97848a5a9 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa97967d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fa9785abf80 RCX: 00007fa97848a5a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fa9784e5580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcfbc4045f R14: 00007fa97967d300 R15: 0000000000022000 Allocated by task 5599: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:45 kasan_set_track+0x21/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x7b/0x80 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook mm/slab.h:769 [inline] slab_alloc_node mm/slab.c:3257 [inline] slab_alloc mm/slab.c:3266 [inline] __kmem_cache_alloc_lru mm/slab.c:3443 [inline] kmem_cache_alloc_lru+0x1df/0x640 mm/slab.c:3459 alloc_inode_sb include/linux/fs.h:2686 [inline] jfs_alloc_inode+0x1a/0x50 fs/jfs/super.c:105 alloc_inode+0x56/0x1e0 fs/inode.c:260 iget_locked+0x14d/0x5f0 fs/inode.c:1287 jfs_iget+0xd/0x420 fs/jfs/inode.c:29 jfs_lookup+0x1fa/0x2a0 fs/jfs/namei.c:1462 lookup_open.isra.0+0x844/0x1510 fs/namei.c:3394 open_last_lookups fs/namei.c:3484 [inline] path_openat+0x7ad/0x2280 fs/namei.c:3712 do_filp_open+0x1a5/0x3d0 fs/namei.c:3742 do_sys_openat2+0x11e/0x3f0 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_open fs/open.c:1372 [inline] __se_sys_open fs/open.c:1368 [inline] __x64_sys_open+0xfd/0x1a0 fs/open.c:1368 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff888070270180 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 [ffff888070270180, ffff888070270a40) The buggy address belongs to the physical page: page:ffffea0001c09c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888070270fff pfn:0x70270 memcg:ffff88807d368781 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffff888145a42900 ffffea0001c09bd0 ffff88801972e550 raw: ffff888070270fff ffff888070270180 0000000100000001 ffff88807d368781 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 5599, tgid 5598 (syz-executor.0), ts 83310497459, free_ts 65674247818 prep_new_page mm/page_alloc.c:2553 [inline] get_page_from_freelist+0x1190/0x2e20 mm/page_alloc.c:4326 __alloc_pages+0x1c7/0x490 mm/page_alloc.c:5592 __alloc_pages_node include/linux/gfp.h:237 [inline] kmem_getpages mm/slab.c:1360 [inline] cache_grow_begin+0x9b/0x3b0 mm/slab.c:2570 cache_alloc_refill+0x27f/0x380 mm/slab.c:2943 ____cache_alloc mm/slab.c:3019 [inline] ____cache_alloc mm/slab.c:3002 [inline] __do_cache_alloc mm/slab.c:3202 [inline] slab_alloc_node mm/slab.c:3250 [inline] slab_alloc mm/slab.c:3266 [inline] __kmem_cache_alloc_lru mm/slab.c:3443 [inline] kmem_cache_alloc_lru+0x53c/0x640 mm/slab.c:3459 alloc_inode_sb include/linux/fs.h:2686 [inline] jfs_alloc_inode+0x1a/0x50 fs/jfs/super.c:105 alloc_inode+0x56/0x1e0 fs/inode.c:260 iget_locked+0x14d/0x5f0 fs/inode.c:1287 jfs_iget+0xd/0x420 fs/jfs/inode.c:29 jfs_lookup+0x1fa/0x2a0 fs/jfs/namei.c:1462 lookup_open.isra.0+0x844/0x1510 fs/namei.c:3394 open_last_lookups fs/namei.c:3484 [inline] path_openat+0x7ad/0x2280 fs/namei.c:3712 do_filp_open+0x1a5/0x3d0 fs/namei.c:3742 do_sys_openat2+0x11e/0x3f0 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_open fs/open.c:1372 [inline] __se_sys_open fs/open.c:1368 [inline] __x64_sys_open+0xfd/0x1a0 fs/open.c:1368 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1454 [inline] free_pcp_prepare+0x5c7/0xa30 mm/page_alloc.c:1504 free_unref_page_prepare mm/page_alloc.c:3388 [inline] free_unref_page+0x19/0x480 mm/page_alloc.c:3483 slab_destroy mm/slab.c:1613 [inline] slabs_destroy+0x85/0xc0 mm/slab.c:1633 cache_flusharray mm/slab.c:3361 [inline] ___cache_free+0x2aa/0x3d0 mm/slab.c:3424 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x4f/0x1a0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x18e/0x220 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x5f/0x80 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook mm/slab.h:769 [inline] slab_alloc_node mm/slab.c:3257 [inline] slab_alloc mm/slab.c:3266 [inline] __kmem_cache_alloc_lru mm/slab.c:3443 [inline] kmem_cache_alloc+0x1b5/0x3f0 mm/slab.c:3452 mt_alloc_one lib/maple_tree.c:159 [inline] mas_alloc_nodes+0x2ed/0x6f0 lib/maple_tree.c:1233 mas_node_count_gfp lib/maple_tree.c:1318 [inline] mas_preallocate+0x232/0x300 lib/maple_tree.c:5717 vma_iter_prealloc mm/internal.h:972 [inline] vma_expand+0x1ef/0x8d0 mm/mmap.c:683 shift_arg_pages+0x16e/0x3a0 fs/exec.c:702 setup_arg_pages+0x400/0x8b0 fs/exec.c:831 load_elf_binary+0x83d/0x4430 fs/binfmt_elf.c:1018 search_binary_handler fs/exec.c:1736 [inline] exec_binprm fs/exec.c:1778 [inline] bprm_execve fs/exec.c:1853 [inline] bprm_execve+0x677/0x14f0 fs/exec.c:1809 do_execveat_common+0x602/0x800 fs/exec.c:1960 Memory state around the buggy address: ffff888070270900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888070270980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888070270a00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff888070270a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888070270b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================