ffff888085c5e500: 00 e5 c5 85 80 88 ff ff 00 e5 c5 85 80 88 ff ff ................ ffff888085c5e510: 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ................ ffff888085c5e520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff888085c5e530: 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+0xdc5/0xdf0 lib/hexdump.c:193 Read of size 1 at addr ffff888085c5e540 by task syz-executor.5/18183 CPU: 1 PID: 18183 Comm: syz-executor.5 Not tainted 6.3.0-rc4-syzkaller-00025-g3a93e40326c8 #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+0xd9/0x150 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+0x11c/0x130 mm/kasan/report.c:536 hex_dump_to_buffer+0xdc5/0xdf0 lib/hexdump.c:193 print_hex_dump+0x171/0x240 lib/hexdump.c:276 ea_get+0x743/0x12e0 fs/jfs/xattr.c:561 __jfs_getxattr+0xc8/0x3d0 fs/jfs/xattr.c:807 jfs_xattr_get+0x3d/0x50 fs/jfs/xattr.c:931 __vfs_getxattr+0x138/0x1a0 fs/xattr.c:426 cap_inode_need_killpriv+0x40/0x60 security/commoncap.c:301 security_inode_need_killpriv+0x44/0xa0 security/security.c:1492 notify_change+0x6f7/0x1180 fs/attr.c:415 chown_common+0x57f/0x650 fs/open.c:774 do_fchownat+0x12a/0x1e0 fs/open.c:805 __do_sys_fchownat fs/open.c:820 [inline] __se_sys_fchownat fs/open.c:817 [inline] __x64_sys_fchownat+0xbe/0x160 fs/open.c:817 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f93ce88c0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f93cf5a1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000104 RAX: ffffffffffffffda RBX: 00007f93ce9abf80 RCX: 00007f93ce88c0f9 RDX: 0000000000000000 RSI: 0000000020000000 RDI: ffffffffffffff9c RBP: 00007f93ce8e7b39 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd222ecdff R14: 00007f93cf5a1300 R15: 0000000000022000 Allocated by task 18183: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x7f/0x90 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/slub.c:3452 [inline] slab_alloc mm/slub.c:3460 [inline] __kmem_cache_alloc_lru mm/slub.c:3467 [inline] kmem_cache_alloc_lru+0x20a/0x600 mm/slub.c:3483 alloc_inode_sb include/linux/fs.h:2686 [inline] jfs_alloc_inode+0x27/0x60 fs/jfs/super.c:105 alloc_inode+0x61/0x230 fs/inode.c:260 iget_locked+0x1bb/0x700 fs/inode.c:1287 jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29 jfs_lookup+0x278/0x340 fs/jfs/namei.c:1462 __lookup_slow+0x24c/0x460 fs/namei.c:1686 lookup_slow fs/namei.c:1703 [inline] walk_component+0x33f/0x5a0 fs/namei.c:1994 lookup_last fs/namei.c:2451 [inline] path_lookupat+0x1ba/0x840 fs/namei.c:2475 filename_lookup+0x1d2/0x590 fs/namei.c:2504 user_path_at_empty+0x46/0x60 fs/namei.c:2877 user_path_at include/linux/namei.h:57 [inline] do_fchownat+0xe5/0x1e0 fs/open.c:799 __do_sys_fchownat fs/open.c:820 [inline] __se_sys_fchownat fs/open.c:817 [inline] __x64_sys_fchownat+0xbe/0x160 fs/open.c:817 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Last potentially related work creation: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 __kasan_record_aux_stack+0xbc/0xd0 mm/kasan/generic.c:491 __call_rcu_common.constprop.0+0x99/0x7e0 kernel/rcu/tree.c:2622 destroy_inode+0x129/0x1b0 fs/inode.c:315 iput_final fs/inode.c:1748 [inline] iput.part.0+0x50a/0x740 fs/inode.c:1774 iput+0x5c/0x80 fs/inode.c:1764 jfs_put_super+0x15a/0x1d0 fs/jfs/super.c:201 generic_shutdown_super+0x158/0x480 fs/super.c:500 kill_block_super+0x9b/0xf0 fs/super.c:1407 deactivate_locked_super+0x98/0x160 fs/super.c:331 deactivate_super+0xb1/0xd0 fs/super.c:362 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1177 task_work_run+0x16f/0x270 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd Second to last potentially related work creation: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 __kasan_record_aux_stack+0xbc/0xd0 mm/kasan/generic.c:491 __call_rcu_common.constprop.0+0x99/0x7e0 kernel/rcu/tree.c:2622 destroy_inode+0x129/0x1b0 fs/inode.c:315 iput_final fs/inode.c:1748 [inline] iput.part.0+0x50a/0x740 fs/inode.c:1774 iput+0x5c/0x80 fs/inode.c:1764 diFreeSpecial+0x7b/0x110 fs/jfs/jfs_imap.c:548 jfs_umount+0x1d7/0x430 fs/jfs/jfs_umount.c:73 jfs_put_super+0x85/0x1d0 fs/jfs/super.c:194 generic_shutdown_super+0x158/0x480 fs/super.c:500 kill_block_super+0x9b/0xf0 fs/super.c:1407 deactivate_locked_super+0x98/0x160 fs/super.c:331 deactivate_super+0xb1/0xd0 fs/super.c:362 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1177 task_work_run+0x16f/0x270 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff888085c5dc80 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 [ffff888085c5dc80, ffff888085c5e540) The buggy address belongs to the physical page: page:ffffea0002171600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x85c58 head:ffffea0002171600 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88807bc82b01 anon flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffff888145d8aa00 0000000000000000 0000000000000001 raw: 0000000000000000 00000000000d000d 00000001ffffffff ffff88807bc82b01 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 17822, tgid 17820 (syz-executor.0), ts 3080595241464, free_ts 2952105592966 prep_new_page mm/page_alloc.c:2553 [inline] get_page_from_freelist+0x1190/0x2e20 mm/page_alloc.c:4326 __alloc_pages+0x1cb/0x4a0 mm/page_alloc.c:5592 alloc_pages+0x1aa/0x270 mm/mempolicy.c:2283 alloc_slab_page mm/slub.c:1851 [inline] allocate_slab+0x25f/0x390 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3193 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3292 __slab_alloc_node mm/slub.c:3345 [inline] slab_alloc_node mm/slub.c:3442 [inline] slab_alloc mm/slub.c:3460 [inline] __kmem_cache_alloc_lru mm/slub.c:3467 [inline] kmem_cache_alloc_lru+0x4a8/0x600 mm/slub.c:3483 alloc_inode_sb include/linux/fs.h:2686 [inline] jfs_alloc_inode+0x27/0x60 fs/jfs/super.c:105 alloc_inode+0x61/0x230 fs/inode.c:260 new_inode_pseudo fs/inode.c:1019 [inline] new_inode+0x2b/0x280 fs/inode.c:1047 diReadSpecial+0x53/0x710 fs/jfs/jfs_imap.c:422 jfs_mount+0x328/0x8b0 fs/jfs/jfs_mount.c:166 jfs_fill_super+0x5a8/0xd40 fs/jfs/super.c:556 mount_bdev+0x351/0x410 fs/super.c:1380 legacy_get_tree+0x109/0x220 fs/fs_context.c:610 vfs_get_tree+0x8d/0x350 fs/super.c:1510 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+0x5d5/0xa50 mm/page_alloc.c:1504 free_unref_page_prepare mm/page_alloc.c:3388 [inline] free_unref_page+0x1d/0x490 mm/page_alloc.c:3483 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x192/0x220 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x63/0x90 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/slub.c:3452 [inline] slab_alloc mm/slub.c:3460 [inline] __kmem_cache_alloc_lru mm/slub.c:3467 [inline] kmem_cache_alloc+0x17c/0x3b0 mm/slub.c:3476 getname_flags.part.0+0x50/0x4f0 fs/namei.c:140 getname_flags include/linux/audit.h:321 [inline] getname+0x92/0xd0 fs/namei.c:219 do_sys_openat2+0xf5/0x4c0 fs/open.c:1342 do_sys_open fs/open.c:1364 [inline] __do_sys_openat fs/open.c:1380 [inline] __se_sys_openat fs/open.c:1375 [inline] __x64_sys_openat+0x143/0x1f0 fs/open.c:1375 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff888085c5e400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888085c5e480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888085c5e500: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff888085c5e580: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ffff888085c5e600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================