ffff888045c75260: 00 00 00 00 00 00 00 00 e0 7d d8 8b ff ff ff ff .........}...... ffff888045c75270: 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff888045c75280: 80 52 c7 45 80 88 ff ff 80 52 c7 45 80 88 ff ff .R.E.....R.E.... ffff888045c75290: 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ................ ffff888045c752a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff888045c752b0: 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+0x731/0xba0 lib/hexdump.c:193 Read of size 1 at addr ffff888045c752c0 by task syz.4.2119/19611 CPU: 1 PID: 19611 Comm: syz.4.2119 Not tainted 6.10.0-rc5-syzkaller-00282-g8282d5af7be8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 hex_dump_to_buffer+0x731/0xba0 lib/hexdump.c:193 print_hex_dump+0x13f/0x250 lib/hexdump.c:276 ea_get+0xce7/0x1290 fs/jfs/xattr.c:563 __jfs_getxattr+0xd5/0x380 fs/jfs/xattr.c:809 __vfs_getxattr+0x433/0x470 fs/xattr.c:423 smk_fetch+0xb1/0x140 security/smack/smack_lsm.c:306 smack_d_instantiate+0x749/0xa50 security/smack/smack_lsm.c:3588 security_d_instantiate+0x9f/0x100 security/security.c:3916 d_splice_alias+0x6f/0x330 fs/dcache.c:2973 jfs_lookup+0x2c0/0x410 fs/jfs/namei.c:1474 lookup_one_qstr_excl+0x11f/0x260 fs/namei.c:1607 filename_create+0x297/0x540 fs/namei.c:3901 do_mkdirat+0xbd/0x3a0 fs/namei.c:4146 __do_sys_mkdirat fs/namei.c:4169 [inline] __se_sys_mkdirat fs/namei.c:4167 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4167 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdafe175b99 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fdafef2d048 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fdafe303fa0 RCX: 00007fdafe175b99 RDX: 0000000000000000 RSI: 0000000020000340 RDI: ffffffffffffff9c RBP: 00007fdafe1f677e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fdafe303fa0 R15: 00007ffc50555c38 Allocated by task 19611: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:312 [inline] __kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:338 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] kmem_cache_alloc_lru_noprof+0x139/0x2b0 mm/slub.c:4021 jfs_alloc_inode+0x28/0x70 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] iget_locked+0x1ad/0x850 fs/inode.c:1280 jfs_iget+0x22/0x3b0 fs/jfs/inode.c:29 jfs_lookup+0x226/0x410 fs/jfs/namei.c:1469 lookup_one_qstr_excl+0x11f/0x260 fs/namei.c:1607 filename_create+0x297/0x540 fs/namei.c:3901 do_mkdirat+0xbd/0x3a0 fs/namei.c:4146 __do_sys_mkdirat fs/namei.c:4169 [inline] __se_sys_mkdirat fs/namei.c:4167 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4167 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888045c74a00 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 [ffff888045c74a00, ffff888045c752c0) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888045c75340 pfn:0x45c70 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff8880696bf601 anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffefff(slab) raw: 00fff00000000040 ffff888017fadc80 0000000000000000 0000000000000001 raw: ffff888045c75340 00000000800d0008 00000001ffffefff ffff8880696bf601 head: 00fff00000000040 ffff888017fadc80 0000000000000000 0000000000000001 head: ffff888045c75340 00000000800d0008 00000001ffffefff ffff8880696bf601 head: 00fff00000000003 ffffea0001171c01 ffffffffffffffff 0000000000000000 head: 0000000000000008 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 5487, tgid 5485 (syz.3.56), ts 76674143370, free_ts 75235060666 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x5f/0x120 mm/slub.c:2265 allocate_slab+0x5a/0x2f0 mm/slub.c:2428 new_slab mm/slub.c:2481 [inline] ___slab_alloc+0xcd1/0x14b0 mm/slub.c:3667 __slab_alloc+0x58/0xa0 mm/slub.c:3757 __slab_alloc_node mm/slub.c:3810 [inline] slab_alloc_node mm/slub.c:3990 [inline] kmem_cache_alloc_lru_noprof+0x1c5/0x2b0 mm/slub.c:4021 jfs_alloc_inode+0x28/0x70 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] iget_locked+0x1ad/0x850 fs/inode.c:1280 jfs_iget+0x22/0x3b0 fs/jfs/inode.c:29 jfs_fill_super+0x808/0xc50 fs/jfs/super.c:580 mount_bdev+0x20a/0x2d0 fs/super.c:1659 legacy_get_tree+0xee/0x190 fs/fs_context.c:662 vfs_get_tree+0x90/0x2a0 fs/super.c:1780 do_new_mount+0x2be/0xb40 fs/namespace.c:3352 page last free pid 4535 tgid 4535 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] __do_kmalloc_node mm/slub.c:4122 [inline] __kmalloc_noprof+0x1a3/0x400 mm/slub.c:4136 kmalloc_noprof include/linux/slab.h:664 [inline] tomoyo_realpath_from_path+0xcf/0x5e0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x2b7/0x740 security/tomoyo/file.c:822 security_inode_getattr+0xd8/0x130 security/security.c:2269 vfs_getattr+0x45/0x430 fs/stat.c:173 vfs_fstat fs/stat.c:198 [inline] vfs_fstatat+0xd6/0x190 fs/stat.c:300 __do_sys_newfstatat fs/stat.c:468 [inline] __se_sys_newfstatat fs/stat.c:462 [inline] __x64_sys_newfstatat+0x125/0x1b0 fs/stat.c:462 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888045c75180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888045c75200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888045c75280: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff888045c75300: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ffff888045c75380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================