XFS (loop7): Please unmount the filesystem and rectify the problem(s).
==================================================================
BUG: KASAN: slab-use-after-free in xlog_cil_committed+0x45e/0x1040
Write of size 8 at addr ffff888047a0c430 by task kworker/1:0H/25

CPU: 1 UID: 0 PID: 25 Comm: kworker/1:0H 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
Workqueue: xfs-log/loop7 xlog_ioend_work
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 print_report+0xca/0x240
 kasan_report+0x118/0x150
 kasan_check_range+0x2b0/0x2c0
 xlog_cil_committed+0x45e/0x1040
 xlog_cil_process_committed+0x15c/0x1b0
 xlog_state_shutdown_callbacks+0x269/0x360
 xlog_force_shutdown+0x332/0x400
 xlog_ioend_work+0xaf/0x100
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x439/0x7d0
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Allocated by task 10279:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x1c1/0x3c0
 xfs_buf_item_init+0x66/0x670
 _xfs_trans_bjoin+0x46/0x110
 xfs_trans_read_buf_map+0x28f/0x8e0
 xfs_btree_read_buf_block+0x290/0x470
 xfs_btree_lookup_get_block+0x28d/0x500
 xfs_btree_lookup+0x4e1/0x1410
 xfs_alloc_fixup_trees+0x21b/0xd20
 xfs_alloc_cur_finish+0xd3/0x4b0
 xfs_alloc_ag_vextent_near+0xd1a/0x1230
 xfs_alloc_vextent_iterate_ags+0x640/0x940
 xfs_alloc_vextent_start_ag+0x388/0x850
 xfs_bmapi_allocate+0x188e/0x2e00
 xfs_bmapi_write+0x7df/0x1260
 xfs_da_grow_inode_int+0x298/0x860
 xfs_da_grow_inode+0x16d/0x390
 xfs_attr_shortform_to_leaf+0x273/0x860
 xfs_attr_set_iter+0xd30/0x4b70
 xfs_attr_finish_item+0xed/0x320
 xfs_defer_finish_one+0x5c8/0xcf0
 xfs_defer_finish_noroll+0x910/0x12d0
 xfs_trans_commit+0x10b/0x1c0
 xfs_attr_set+0xdc6/0x1210
 xfs_xattr_set+0x14d/0x250
 __vfs_setxattr+0x43c/0x480
 __vfs_setxattr_noperm+0x12d/0x660
 vfs_setxattr+0x16b/0x2f0
 filename_setxattr+0x274/0x600
 path_setxattrat+0x364/0x3a0
 __x64_sys_setxattr+0xbc/0xe0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 10:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kmem_cache_free+0x18f/0x400
 __xfs_buf_ioend+0x29c/0x6f0
 xfs_buf_iowait+0x167/0x480
 xfs_buf_read_map+0x335/0xa50
 xfs_trans_read_buf_map+0x1d7/0x8e0
 xfs_btree_read_buf_block+0x290/0x470
 xfs_btree_lookup_get_block+0x28d/0x500
 xfs_btree_lookup+0x4e1/0x1410
 xfs_free_ag_extent+0x25d/0x1760
 __xfs_free_extent+0x2f1/0x470
 xfs_extent_free_finish_item+0x28b/0x670
 xfs_defer_finish_one+0x5c8/0xcf0
 xfs_defer_finish_noroll+0x910/0x12d0
 xfs_defer_finish+0x1c/0x180
 xfs_bunmapi_range+0xc4/0x140
 xfs_itruncate_extents_flags+0x306/0x990
 xfs_inactive_truncate+0x125/0x1b0
 xfs_inactive+0x949/0xcd0
 xfs_inodegc_worker+0x31b/0x7c0
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x439/0x7d0
 ret_from_fork_asm+0x1a/0x30

The buggy address belongs to the object at ffff888047a0c3f0
 which belongs to the cache xfs_buf_item of size 272
The buggy address is located 64 bytes inside of
 freed 272-byte region [ffff888047a0c3f0, ffff888047a0c500)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x47a0c
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88801ed1d8c0 dead000000000122 0000000000000000
raw: 0000000000000000 00000000000c000c 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 0x52c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 83, tgid 83 (kworker/u9:3), ts 354982772964, free_ts 351784980588
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x8a/0x370
 ___slab_alloc+0xbeb/0x1420
 kmem_cache_alloc_noprof+0x283/0x3c0
 xfs_buf_item_init+0x66/0x670
 _xfs_trans_bjoin+0x46/0x110
 xfs_trans_get_buf_map+0x31e/0x6f0
 xfs_dquot_disk_alloc+0x6a8/0xb40
 xfs_qm_dqread+0x10e/0x520
 xfs_qm_dqget+0x20a/0x5b0
 xfs_qm_quotacheck_dqadjust+0xc5/0x4f0
 xfs_qm_dqusage_adjust+0x49e/0x640
 xfs_iwalk_ag_recs+0x4e3/0x810
page last free pid 24 tgid 24 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 kasan_depopulate_vmalloc_pte+0x6d/0x90
 __apply_to_page_range+0xb66/0x13d0
 kasan_release_vmalloc+0xa2/0xd0
 purge_vmap_node+0x214/0x8f0
 __purge_vmap_area_lazy+0x7a4/0xb40
 drain_vmap_area_work+0x27/0x40
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x439/0x7d0
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffff888047a0c300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888047a0c380: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb
>ffff888047a0c400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                     ^
 ffff888047a0c480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888047a0c500: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
==================================================================
