==================================================================
BUG: KASAN: slab-use-after-free in xfs_inode_item_push+0x3c3/0x6d0
Read of size 8 at addr ffff888112bb7030 by task xfsaild/loop7/12333

CPU: 1 UID: 0 PID: 12333 Comm: xfsaild/loop7 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+0x189/0x250
 print_report+0xca/0x240
 kasan_report+0x118/0x150
 xfs_inode_item_push+0x3c3/0x6d0
 xfsaild+0xd95/0x2940
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Allocated by task 12320:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x1c1/0x3c0
 xfs_inode_item_init+0x33/0xc0
 xfs_trans_ijoin+0xe5/0x130
 xfs_create+0x656/0xad0
 xfs_generic_create+0x3c9/0xad0
 path_openat+0x14f4/0x3830
 do_filp_open+0x1fa/0x410
 do_sys_openat2+0x121/0x1c0
 __x64_sys_creat+0x8f/0xc0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 11779:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kmem_cache_free+0x18f/0x400
 xfs_inode_free_callback+0x14f/0x1c0
 rcu_core+0xcab/0x1770
 handle_softirqs+0x286/0x870
 __irq_exit_rcu+0xca/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 asm_sysvec_apic_timer_interrupt+0x1a/0x20

The buggy address belongs to the object at ffff888112bb7000
 which belongs to the cache xfs_ili of size 264
The buggy address is located 48 bytes inside of
 freed 264-byte region [ffff888112bb7000, ffff888112bb7108)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x112bb7
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000000 ffff888105a648c0 dead000000000122 0000000000000000
raw: 0000000000000000 00000000800c000c 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x52c50(GFP_NOFS|__GFP_RECLAIMABLE|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 11600, tgid 11599 (syz.6.605), ts 336796582706, free_ts 233854762365
 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/0x1410
 kmem_cache_alloc_noprof+0x283/0x3c0
 xfs_inode_item_init+0x33/0xc0
 xfs_trans_ijoin+0xe5/0x130
 xfs_trans_alloc_inode+0x173/0x4a0
 xfs_attr_add_fork+0x195/0x320
 xfs_attr_set+0x6c9/0x1210
 xfs_xattr_set+0x14d/0x250
 __vfs_setxattr+0x43c/0x480
 __vfs_setxattr_noperm+0x12d/0x660
 vfs_setxattr+0x16b/0x2f0
page last free pid 9319 tgid 9319 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 __put_partials+0x156/0x1a0
 put_cpu_partial+0x17c/0x250
 __slab_free+0x2d5/0x3c0
 qlist_free_all+0x97/0x140
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 kmem_cache_alloc_noprof+0x1c1/0x3c0
 getname_flags+0xb8/0x540
 do_sys_openat2+0xbc/0x1c0
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff888112bb6f00: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc
 ffff888112bb6f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888112bb7000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                     ^
 ffff888112bb7080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888112bb7100: fb fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00
==================================================================
