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

CPU: 0 UID: 0 PID: 6562 Comm: syz.4.137 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:0x7f507e39cdd9
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:00007f507f2dd028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007f507e615fa0 RCX: 00007f507e39cdd9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006
RBP: 00007f507e432d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f507e616038 R14: 00007f507e615fa0 R15: 00007ffd1ee972f8
 </TASK>

Allocated by task 6562:
 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
 dtReadFirst+0xbb/0x780
 jfs_readdir+0x8b4/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

Freed by task 6562:
 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 ffff88811130a6c8
 which belongs to the cache jfs_mp of size 184
The buggy address is located 48 bytes inside of
 freed 184-byte region [ffff88811130a6c8, ffff88811130a780)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11130a
flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000000 ffff888102334640 dead000000000122 0000000000000000
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 6560, tgid 6559 (syz.2.140), ts 108879182178, free_ts 108871949225
 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
 diNewExt+0xa88/0x3150
 diAllocAG+0xeb1/0x1db0
 diAlloc+0x1d8/0x1680
 ialloc+0x8c/0x8f0
 jfs_mkdir+0x1e1/0xb00
 vfs_mkdir+0x413/0x630
 filename_mkdirat+0x285/0x510
page last free pid 5628 tgid 5628 stack trace:
 __free_frozen_pages+0xbc7/0xd30
 __slab_free+0x274/0x2c0
 qlist_free_all+0x99/0x100
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 kmem_cache_alloc_noprof+0x2bc/0x650
 do_getname+0x2e/0x250
 __se_sys_unlink+0x1e/0x140
 do_syscall_64+0x15f/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88811130a580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88811130a600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88811130a680: fc fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb
                                                                ^
 ffff88811130a700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88811130a780: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
==================================================================
