==================================================================
BUG: KASAN: slab-use-after-free in xfs_inode_item_push+0x396/0x670
Read of size 8 at addr ffff8881ba19b928 by task xfsaild/loop0/6845

CPU: 1 UID: 0 PID: 6845 Comm: xfsaild/loop0 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_report+0xba/0x230
 kasan_report+0x117/0x150
 xfs_inode_item_push+0x396/0x670
 xfsaild+0xf4c/0x28e0
 kthread+0x388/0x470
 ret_from_fork+0x51b/0xa40
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Allocated by task 6837:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x370/0x6e0
 xfs_inode_item_init+0x33/0xc0
 xfs_trans_ijoin+0xe5/0x130
 xfs_vn_update_time+0x378/0x540
 touch_atime+0x2f8/0x6b0
 iterate_dir+0x438/0x570
 __se_sys_getdents+0xf1/0x270
 do_syscall_64+0xe2/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 5850:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5c/0x80
 kmem_cache_free+0x195/0x610
 xfs_inode_free_callback+0x14f/0x1c0
 rcu_core+0x7cd/0x1070
 handle_softirqs+0x22a/0x7c0
 do_softirq+0x76/0xd0
 __local_bh_enable_ip+0xf8/0x130
 netif_rx+0x83/0x90
 batadv_bla_send_claim+0xa12/0xeb0
 batadv_bla_update_orig_address+0x57d/0x8a0
 batadv_primary_if_update_addr+0x1e8/0x2b0
 batadv_primary_if_select+0x148/0x190
 batadv_hardif_disable_interface+0x69f/0xaf0
 batadv_meshif_destroy_netlink+0x68/0x250
 default_device_exit_batch+0x76a/0xa10
 ops_undo_list+0x52b/0x940
 cleanup_net+0x4df/0x7b0
 process_one_work+0x949/0x15a0
 worker_thread+0x9af/0xee0
 kthread+0x388/0x470
 ret_from_fork+0x51b/0xa40
 ret_from_fork_asm+0x1a/0x30

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8881ba19ba40 pfn:0x1ba19b
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000000 ffff8881673a3b40 dead000000000122 0000000000000000
raw: ffff8881ba19ba40 00000000800c0009 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 5904, tgid 5903 (syz.1.7), ts 67823152841, free_ts 26504530479
 post_alloc_hook+0x231/0x280
 get_page_from_freelist+0x23a1/0x2440
 __alloc_frozen_pages_noprof+0x18d/0x380
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x86/0x3a0
 ___slab_alloc+0xd90/0x1790
 __slab_alloc+0x65/0x100
 kmem_cache_alloc_noprof+0x3fe/0x6e0
 xfs_inode_item_init+0x33/0xc0
 xfs_trans_ijoin+0xe5/0x130
 xfs_vn_update_time+0x378/0x540
 touch_atime+0x2f8/0x6b0
 iterate_dir+0x438/0x570
 __se_sys_getdents64+0xf1/0x280
 do_syscall_64+0xe2/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 1 tgid 1 stack trace:
 __free_frozen_pages+0xb81/0xce0
 free_contig_range+0x1bd/0x480
 destroy_args+0x69/0x630
 debug_vm_pgtable+0x3f8/0x410
 do_one_initcall+0x250/0x840
 do_initcall_level+0x104/0x190
 do_initcalls+0x59/0xa0
 kernel_init_freeable+0x2a6/0x3d0
 kernel_init+0x1d/0x1d0
 ret_from_fork+0x51b/0xa40
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffff8881ba19b800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881ba19b880: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fa
>ffff8881ba19b900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff8881ba19b980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881ba19ba00: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
==================================================================
