ffff88805df50880: 80 08 f5 5d 80 88 ff ff 80 08 f5 5d 80 88 ff ff ...].......].... ffff88805df50890: 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ................ ffff88805df508a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff88805df508b0: 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+0xdee/0xe30 lib/hexdump.c:193 Read of size 1 at addr ffff88805df508c0 by task syz-executor.4/8790 CPU: 1 PID: 8790 Comm: syz-executor.4 Not tainted 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 hex_dump_to_buffer+0xdee/0xe30 lib/hexdump.c:193 print_hex_dump+0x18c/0x260 lib/hexdump.c:276 ea_get+0x864/0x12c0 fs/jfs/xattr.c:561 __jfs_getxattr+0xfd/0x3f0 fs/jfs/xattr.c:807 jfs_xattr_get+0x3c/0x50 fs/jfs/xattr.c:931 __vfs_getxattr+0x13b/0x1a0 fs/xattr.c:423 inode_doinit_use_xattr+0xb5/0x410 security/selinux/hooks.c:1361 inode_doinit_with_dentry+0x51f/0x12c0 security/selinux/hooks.c:1486 selinux_d_instantiate+0x26/0x30 security/selinux/hooks.c:6345 security_d_instantiate+0x57/0xf0 security/security.c:3915 d_splice_alias+0x94/0xdf0 fs/dcache.c:2973 jfs_lookup+0x237/0x370 fs/jfs/namei.c:1474 __lookup_slow+0x24f/0x460 fs/namei.c:1692 lookup_slow fs/namei.c:1709 [inline] walk_component+0x350/0x5b0 fs/namei.c:2004 lookup_last fs/namei.c:2461 [inline] path_lookupat+0x17f/0x770 fs/namei.c:2485 filename_lookup+0x1e5/0x5b0 fs/namei.c:2514 user_path_at_empty+0x42/0x60 fs/namei.c:2921 user_path_at include/linux/namei.h:57 [inline] path_setxattr+0xa5/0x1e0 fs/xattr.c:666 __do_sys_lsetxattr fs/xattr.c:694 [inline] __se_sys_lsetxattr fs/xattr.c:690 [inline] __x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6fa687dea9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6fa75f70c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007f6fa69abf80 RCX: 00007f6fa687dea9 RDX: 0000000020000040 RSI: 00000000200001c0 RDI: 0000000020000180 RBP: 00007f6fa68ca4a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000e01 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f6fa69abf80 R15: 00007ffd6b275648 Allocated by task 8790: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:312 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:338 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3798 [inline] slab_alloc_node mm/slub.c:3845 [inline] kmem_cache_alloc_lru+0x142/0x6f0 mm/slub.c:3864 alloc_inode_sb include/linux/fs.h:3091 [inline] jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105 alloc_inode+0x5d/0x230 fs/inode.c:261 iget_locked+0x1a1/0x6d0 fs/inode.c:1280 jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29 jfs_lookup+0x2a8/0x370 fs/jfs/namei.c:1469 __lookup_slow+0x24f/0x460 fs/namei.c:1692 lookup_slow fs/namei.c:1709 [inline] walk_component+0x350/0x5b0 fs/namei.c:2004 lookup_last fs/namei.c:2461 [inline] path_lookupat+0x17f/0x770 fs/namei.c:2485 filename_lookup+0x1e5/0x5b0 fs/namei.c:2514 user_path_at_empty+0x42/0x60 fs/namei.c:2921 user_path_at include/linux/namei.h:57 [inline] path_setxattr+0xa5/0x1e0 fs/xattr.c:666 __do_sys_lsetxattr fs/xattr.c:694 [inline] __se_sys_lsetxattr fs/xattr.c:690 [inline] __x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805df50000 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 [ffff88805df50000, ffff88805df508c0) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5df50 head: order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888062b73301 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888017ec7dc0 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800d000d 00000001ffffffff ffff888062b73301 head: 00fff00000000840 ffff888017ec7dc0 dead000000000122 0000000000000000 head: 0000000000000000 00000000800d000d 00000001ffffffff ffff888062b73301 head: 00fff00000000003 ffffea000177d401 dead000000000122 00000000ffffffff head: 0000000800000000 0000000000000000 00000000ffffffff 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 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 8789, tgid 2142340131 (syz-executor.4), ts 8790, free_ts 348657210617 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1534 prep_new_page mm/page_alloc.c:1541 [inline] get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3317 __alloc_pages+0x22b/0x2460 mm/page_alloc.c:4575 __alloc_pages_node include/linux/gfp.h:238 [inline] alloc_pages_node include/linux/gfp.h:261 [inline] alloc_slab_page mm/slub.c:2175 [inline] allocate_slab mm/slub.c:2338 [inline] new_slab+0xcc/0x3a0 mm/slub.c:2391 ___slab_alloc+0x66d/0x1790 mm/slub.c:3525 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3610 __slab_alloc_node mm/slub.c:3663 [inline] slab_alloc_node mm/slub.c:3835 [inline] kmem_cache_alloc_lru+0x379/0x6f0 mm/slub.c:3864 alloc_inode_sb include/linux/fs.h:3091 [inline] jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105 alloc_inode+0x5d/0x230 fs/inode.c:261 iget_locked+0x1a1/0x6d0 fs/inode.c:1280 jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29 jfs_lookup+0x2a8/0x370 fs/jfs/namei.c:1469 __lookup_slow+0x24f/0x460 fs/namei.c:1692 lookup_slow fs/namei.c:1709 [inline] walk_component+0x350/0x5b0 fs/namei.c:2004 lookup_last fs/namei.c:2461 [inline] path_lookupat+0x17f/0x770 fs/namei.c:2485 filename_lookup+0x1e5/0x5b0 fs/namei.c:2514 page last free pid 5141 tgid 5141 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1141 [inline] free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347 free_unref_page+0x33/0x3c0 mm/page_alloc.c:2487 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3798 [inline] slab_alloc_node mm/slub.c:3845 [inline] __do_kmalloc_node mm/slub.c:3965 [inline] __kmalloc+0x1bd/0x440 mm/slub.c:3979 kmalloc include/linux/slab.h:632 [inline] kzalloc include/linux/slab.h:749 [inline] tomoyo_encode2+0x100/0x3e0 security/tomoyo/realpath.c:45 tomoyo_encode+0x29/0x50 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x19d/0x720 security/tomoyo/realpath.c:283 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x245/0x590 security/tomoyo/file.c:723 security_file_ioctl+0x75/0xc0 security/security.c:2764 __do_sys_ioctl fs/ioctl.c:898 [inline] __se_sys_ioctl fs/ioctl.c:890 [inline] __x64_sys_ioctl+0xbb/0x220 fs/ioctl.c:890 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805df50780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805df50800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805df50880: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88805df50900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805df50980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================