==================================================================
BUG: KASAN: slab-use-after-free in __list_del_entry_valid_or_report+0x92/0x190
Read of size 8 at addr ffff888023108b48 by task kworker/1:7/5929

CPU: 1 UID: 0 PID: 5929 Comm: kworker/1:7 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: events gfs2_withdraw_func
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_address_description+0x55/0x1e0
 print_report+0x58/0x70
 kasan_report+0x117/0x150
 __list_del_entry_valid_or_report+0x92/0x190
 gfs2_ail_drain+0x848/0xb20
 do_withdraw+0x10d/0x2f0
 gfs2_withdraw_func+0x2ef/0x440
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Allocated by task 14677:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x2b9/0x600
 gfs2_glock_get+0x276/0xf20
 gfs2_inode_lookup+0x2a3/0xc30
 init_sb+0xa55/0x1300
 gfs2_fill_super+0x1634/0x20d0
 get_tree_bdev_flags+0x430/0x4f0
 gfs2_get_tree+0x51/0x1e0
 vfs_get_tree+0x92/0x2a0
 do_new_mount+0x319/0xdc0
 __se_sys_mount+0x31d/0x420
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 14222:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x40/0x50
 __kasan_slab_free+0x5c/0x80
 kmem_cache_free+0x182/0x650
 rcu_core+0x926/0x1260
 handle_softirqs+0x226/0x860
 __irq_exit_rcu+0xcb/0x220
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 asm_sysvec_apic_timer_interrupt+0x1a/0x20

Last potentially related work creation:
 kasan_save_stack+0x3e/0x60
 kasan_record_aux_stack+0xbd/0xd0
 call_rcu+0xee/0x8b0
 gfs2_glock_free+0x3c/0xa0
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

Second to last potentially related work creation:
 kasan_save_stack+0x3e/0x60
 kasan_record_aux_stack+0xbd/0xd0
 insert_work+0x3d/0x330
 __queue_work+0xd07/0x10d0
 queue_delayed_work_on+0x11a/0x1e0
 do_xmote+0x539/0x770
 glock_work_func+0x30d/0x610
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

The buggy address belongs to the object at ffff888023108a30
 which belongs to the cache gfs2_glock(aspace) of size 1176
The buggy address is located 280 bytes inside of
 freed 1176-byte region [ffff888023108a30, ffff888023108ec8)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x23108
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff888105f0d640 dead000000000100 dead000000000122
raw: 0000000000000000 00000002000c000c 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff888105f0d640 dead000000000100 dead000000000122
head: 0000000000000000 00000002000c000c 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffffffffffff01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 13702, tgid 13701 (syz.9.1020), ts 295151771162
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x220f/0x2280
 __alloc_frozen_pages_noprof+0x1fe/0x410
 allocate_slab+0x7d/0x620
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2c8/0x6c0
 kmem_cache_alloc_noprof+0x399/0x600
 gfs2_glock_get+0x276/0xf20
 gfs2_create_inode+0xdc6/0x1710
 gfs2_atomic_open+0x116/0x200
 atomic_open+0x199/0x550
 lookup_open+0x925/0x1a40
 path_openat+0x677/0x1d60
 do_file_open+0x23e/0x4a0
 do_sys_openat2+0x115/0x200
 __x64_sys_openat+0x138/0x170
page last free pid 13702 tgid 13701 ts 295139798979 stack trace:
 __free_frozen_pages+0xc97/0xd90
 stack_depot_save_flags+0x41e/0x7f0
 kasan_save_track+0x4f/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_lru_noprof+0x2a3/0x5f0
 gfs2_alloc_inode+0x58/0x170
 alloc_inode+0x6a/0x1b0
 new_inode+0x1f/0x170
 gfs2_create_inode+0x652/0x1710
 gfs2_atomic_open+0x116/0x200
 atomic_open+0x199/0x550
 lookup_open+0x925/0x1a40
 path_openat+0x677/0x1d60
 do_file_open+0x23e/0x4a0
 do_sys_openat2+0x115/0x200
 __x64_sys_openat+0x138/0x170

Memory state around the buggy address:
 ffff888023108a00: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb
 ffff888023108a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888023108b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff888023108b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888023108c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
