non-latin1 character 0x46[ 186.910086][ T6611] non-latin1 character 0x466c found in JFS file name mount with iocharset=utf8 to access ================================================================== BUG: KASAN: slab-use-after-free in jfs_readdir+0x1152/0x3420 fs/jfs/jfs_dtree.c:2878 Read of size 8 at addr ffff888029f38d98 by task syz.3.111/6611 CPU: 0 UID: 0 PID: 6611 Comm: syz.3.111 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 jfs_readdir+0x1152/0x3420 fs/jfs/jfs_dtree.c:2878 wrap_directory_iterator+0x99/0xe0 fs/readdir.c:67 iterate_dir+0x3a5/0x580 fs/readdir.c:110 __do_sys_getdents64 fs/readdir.c:399 [inline] __se_sys_getdents64+0xf1/0x280 fs/readdir.c:384 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdb019bc819 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fdaffc0e028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007fdb01c35fa0 RCX: 00007fdb019bc819 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007 RBP: 00007fdb01a52c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fdb01c36038 R14: 00007fdb01c35fa0 R15: 00007ffc9fc382e8 Allocated by task 6611: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4569 [inline] slab_alloc_node mm/slub.c:4898 [inline] kmem_cache_alloc_noprof+0x33b/0x680 mm/slub.c:4905 mempool_alloc_noprof+0x1d4/0x300 mm/mempool.c:566 alloc_metapage fs/jfs/jfs_metapage.c:264 [inline] __get_metapage+0x50c/0xe20 fs/jfs/jfs_metapage.c:761 dtReadFirst+0xbb/0x780 fs/jfs/jfs_dtree.c:3076 dtReadNext fs/jfs/jfs_dtree.c:3157 [inline] jfs_readdir+0x8b7/0x3420 fs/jfs/jfs_dtree.c:2871 wrap_directory_iterator+0x99/0xe0 fs/readdir.c:67 iterate_dir+0x3a5/0x580 fs/readdir.c:110 __do_sys_getdents64 fs/readdir.c:399 [inline] __se_sys_getdents64+0xf1/0x280 fs/readdir.c:384 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 6611: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2689 [inline] slab_free mm/slub.c:6246 [inline] kmem_cache_free+0x187/0x6c0 mm/slub.c:6373 mempool_free+0xf5/0x140 mm/mempool.c:711 free_metapage fs/jfs/jfs_metapage.c:280 [inline] drop_metapage fs/jfs/jfs_metapage.c:317 [inline] release_metapage+0x827/0xa90 fs/jfs/jfs_metapage.c:893 dtReadNext fs/jfs/jfs_dtree.c:3199 [inline] jfs_readdir+0xee3/0x3420 fs/jfs/jfs_dtree.c:2871 wrap_directory_iterator+0x99/0xe0 fs/readdir.c:67 iterate_dir+0x3a5/0x580 fs/readdir.c:110 __do_sys_getdents64 fs/readdir.c:399 [inline] __se_sys_getdents64+0xf1/0x280 fs/readdir.c:384 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888029f38d68 which belongs to the cache jfs_mp of size 248 The buggy address is located 48 bytes inside of freed 248-byte region [ffff888029f38d68, ffff888029f38e60) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x29f38 flags: 0x80000000000000(node=0|zone=1) page_type: f5(slab) raw: 0080000000000000 ffff888140e9cdc0 dead000000000100 dead000000000122 raw: 0000000000000000 00000008000d000d 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2800(GFP_NOWAIT|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5815, tgid 5815 (syz-executor), ts 142340792053, free_ts 142330957790 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x27c8/0x2840 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226 alloc_slab_page mm/slub.c:3278 [inline] allocate_slab+0x77/0x660 mm/slub.c:3467 new_slab mm/slub.c:3525 [inline] refill_objects+0x33c/0x3d0 mm/slub.c:7251 refill_sheaf mm/slub.c:2816 [inline] __pcs_replace_empty_main+0x373/0x720 mm/slub.c:4651 alloc_from_pcs mm/slub.c:4749 [inline] slab_alloc_node mm/slub.c:4883 [inline] kmem_cache_alloc_noprof+0x433/0x680 mm/slub.c:4905 mempool_alloc_noprof+0x1d4/0x300 mm/mempool.c:566 alloc_metapage fs/jfs/jfs_metapage.c:264 [inline] __get_metapage+0x50c/0xe20 fs/jfs/jfs_metapage.c:761 diWriteSpecial+0x1b4/0x460 fs/jfs/jfs_imap.c:518 diSync+0x69d/0x8d0 fs/jfs/jfs_imap.c:251 diUnmount+0xc8/0x130 fs/jfs/jfs_imap.c:185 jfs_umount+0x1d6/0x3d0 fs/jfs/jfs_umount.c:79 jfs_put_super+0x8c/0x190 fs/jfs/super.c:194 generic_shutdown_super+0x13d/0x2d0 fs/super.c:646 kill_block_super+0x44/0x90 fs/super.c:1725 page last free pid 5815 tgid 5815 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] free_unref_folios+0xc50/0x1970 mm/page_alloc.c:3004 folios_put_refs+0x7cb/0x8d0 mm/swap.c:1008 folio_batch_release include/linux/folio_batch.h:101 [inline] truncate_inode_pages_range+0x3e0/0xe30 mm/truncate.c:408 diUnmount+0xf7/0x130 fs/jfs/jfs_imap.c:190 jfs_umount+0x190/0x3d0 fs/jfs/jfs_umount.c:70 jfs_put_super+0x8c/0x190 fs/jfs/super.c:194 generic_shutdown_super+0x13d/0x2d0 fs/super.c:646 kill_block_super+0x44/0x90 fs/super.c:1725 deactivate_locked_super+0xbc/0x130 fs/super.c:476 cleanup_mnt+0x437/0x4d0 fs/namespace.c:1312 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline] do_syscall_64+0x33e/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888029f38c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888029f38d00: fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb fb >ffff888029f38d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888029f38e00: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888029f38e80: fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb ==================================================================