==================================================================
BUG: KASAN: slab-use-after-free in jfs_readdir+0x114f/0x3420
Read of size 8 at addr ffff8881bb9b4318 by task syz.6.654/11545

CPU: 1 UID: 0 PID: 11545 Comm: syz.6.654 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_address_description+0x55/0x1e0
 print_report+0x58/0x70
 kasan_report+0x117/0x150
 jfs_readdir+0x114f/0x3420
 wrap_directory_iterator+0x96/0xe0
 iterate_dir+0x399/0x570
 __se_sys_getdents64+0xf1/0x280
 do_syscall_64+0x15f/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe89859cdd9
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:00007fe899455028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fe898816090 RCX: 00007fe89859cdd9
RDX: 0000000000000022 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007fe898632d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe898816128 R14: 00007fe898816090 R15: 00007fff4fcc9f88
 </TASK>

Allocated by task 11502:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x2bc/0x650
 mempool_alloc_noprof+0x1ce/0x300
 __get_metapage+0x50c/0xe20
 dtSplitRoot+0x202/0x16c0
 dtInsert+0xeea/0x5cd0
 jfs_mkdir+0x783/0xb00
 vfs_mkdir+0x413/0x630
 filename_mkdirat+0x285/0x510
 __se_sys_mkdirat+0x35/0x150
 do_syscall_64+0x15f/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 11545:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5c/0x80
 kmem_cache_free+0x182/0x650
 mempool_free+0xec/0x130
 release_metapage+0x831/0xaa0
 jfs_readdir+0xee0/0x3420
 wrap_directory_iterator+0x96/0xe0
 iterate_dir+0x399/0x570
 __se_sys_getdents64+0xf1/0x280
 do_syscall_64+0x15f/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff8881bb9b42e8
 which belongs to the cache jfs_mp of size 184
The buggy address is located 48 bytes inside of
 freed 184-byte region [ffff8881bb9b42e8, ffff8881bb9b43a0)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1bb9b4
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000000 ffff8881042873c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800100010 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 6606, tgid 6605 (syz.3.116), ts 106843082357, free_ts 85699841829
 post_alloc_hook+0x231/0x280
 get_page_from_freelist+0x24ba/0x2540
 __alloc_frozen_pages_noprof+0x18d/0x380
 allocate_slab+0x77/0x660
 refill_objects+0x339/0x3d0
 __pcs_replace_empty_main+0x321/0x720
 kmem_cache_alloc_noprof+0x37d/0x650
 mempool_alloc_noprof+0x1ce/0x300
 __get_metapage+0x50c/0xe20
 diRead+0x6da/0xb90
 jfs_iget+0x89/0x470
 jfs_fill_super+0x8ad/0xd80
 get_tree_bdev_flags+0x431/0x4f0
 vfs_get_tree+0x92/0x2a0
 do_new_mount+0x341/0xd30
 __se_sys_mount+0x31d/0x420
page last free pid 5608 tgid 5608 stack trace:
 __free_frozen_pages+0xbc7/0xd30
 vfree+0x1d1/0x2f0
 kcov_close+0x28/0x50
 __fput+0x44f/0xa60
 task_work_run+0x1d9/0x270
 do_exit+0x70f/0x22c0
 do_group_exit+0x21b/0x2d0
 __x64_sys_exit_group+0x3f/0x40
 x64_sys_call+0x221a/0x2240
 do_syscall_64+0x15f/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff8881bb9b4200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881bb9b4280: 00 00 00 00 00 fc fc fc fc fc fc fc fc fa fb fb
>ffff8881bb9b4300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                            ^
 ffff8881bb9b4380: fb fb fb fb fc fc fc fc fc fc fc fc 00 00 00 00
 ffff8881bb9b4400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
