==================================================================
BUG: KASAN: slab-use-after-free in txUnlock+0x951/0xde0
Read of size 2 at addr ffff888178de2000 by task jfsCommit/125

CPU: 0 UID: 0 PID: 125 Comm: jfsCommit 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
 txUnlock+0x951/0xde0
 jfs_lazycommit+0x59f/0xac0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Allocated by task 22809:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x2b9/0x600
 mempool_al
 mempool_alloc_noprof+0x1bf/0x300
 __get_metapage+0x4ed/0xdf0
 diNewExt+0xa53/0x3020
 diAllocAG+0xbed/0x1de0
 diAlloc+0x1e2/0x16b0
 ialloc+0x8c/0x8e0
 jfs_mkdir+0x1dd/0xaf0
 vfs_mkdir+0x398/0x710
 filename_mkdirat+0x285/0x510
 __se_sys_mkdirat+0x35/0x150
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 22816:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x40/0x50
 __kasan_slab_free+0x5c/0x80
 kmem_cache_free+0x182/0x650
 mempool_free+0xec/0x130
 metapage_release_folio+0x462/0x590
 shrink_folio_list+0x233f/0x5250
 evict_folios+0x3055/0x3fb0
 try_to_shrink_lruvec+0xe3b/0x1340
 shrink_lruvec+0x54f/0x2ce0
 shrink_node+0xa9b/0x3e30
 do_try_to_free_pages+0x6a3/0x1990
 try_to_free_mem_cgroup_pages+0x30d/0x830
 mem_cgroup_resize_max+0x23c/0x510
 mem_cgroup_write+0x223/0x290
 cgroup_file_write+0x331/0x8f0
 kernfs_fop_write_iter+0x3a4/0x540
 vfs_write+0x612/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x178de2
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000000 ffff888166bfb500 dead000000000100 dead000000000122
raw: 0000000000000000 0000000200100010 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 16097, tgid 16097 (syz-executor), ts 528208776227
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x2209/0x2280
 __alloc_frozen_pages_noprof+0x217/0x5a0
 allocate_slab+0x7d/0x620
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2c8/0x6c0
 kmem_cache_alloc_noprof+0x399/0x600
 mempool_alloc_noprof+0x1bf/0x300
 __get_metapage+0x4ed/0xdf0
 diWriteSpecial+0x1b4/0x460
 diSync+0x69d/0x8d0
 diUnmount+0xc8/0x130
 jfs_umount+0x174/0x3b0
 jfs_put_super+0x8c/0x190
 generic_shutdown_super+0x13d/0x2d0
 kill_block_super+0x44/0xa0
page last free pid 20364 tgid 20363 ts 528204635625 stack trace:
 __free_frozen_pages+0xc93/0xd90
 tlb_finish_mmu+0x13e/0x220
 exit_mmap+0x4b2/0x9f0
 __mmput+0x118/0x420
 exit_mm+0x221/0x2d0
 do_exit+0x6cd/0x2360
 do_group_exit+0x22d/0x2f0
 get_signal+0x121b/0x12c0
 arch_do_signal_or_restart+0xbb/0x860
 exit_to_user_mode_loop+0x10e/0x770
 do_syscall_64+0x328/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff888178de1f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888178de1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888178de2000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                   ^
 ffff888178de2080: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc 00
 ffff888178de2100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
