==================================================================
BUG: KASAN: slab-use-after-free in __ocfs2_flush_truncate_log+0x7c7/0x10e0
Read of size 4 at addr ffff8880285ec2c0 by task syz-executor/18018

CPU: 0 UID: 0 PID: 18018 Comm: syz-executor 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
 __ocfs2_flush_truncate_log+0x7c7/0x10e0
 ocfs2_flush_truncate_log+0x4f/0x70
 ocfs2_sync_fs+0x116/0x310
 sync_filesystem+0x1cf/0x230
 generic_shutdown_super+0x6f/0x2c0
 kill_block_super+0x44/0x90
 deactivate_locked_super+0xbc/0x130
 cleanup_mnt+0x425/0x4c0
 task_work_run+0x1d4/0x260
 exit_to_user_mode_loop+0xec/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f82d338fed7
Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffe260fb0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f82d3411c05 RCX: 00007f82d338fed7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe260fb1a0
RBP: 00007ffe260fb1a0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffe260fc230
R13: 00007f82d3411c05 R14: 00000000000c35b1 R15: 00007ffe260fc270
 </TASK>

Allocated by task 16129:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x1c1/0x3c0
 seq_open+0x5f/0x140
 kernfs_fop_open+0x542/0xca0
 do_dentry_open+0x953/0x13f0
 vfs_open+0x3b/0x340
 path_openat+0x2ee5/0x3830
 do_filp_open+0x1fa/0x410
 do_sys_openat2+0x121/0x1c0
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 16129:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kmem_cache_free+0x18f/0x400
 seq_release+0x63/0x70
 kernfs_fop_release+0x133/0x190
 __fput+0x44c/0xa70
 fput_close_sync+0x119/0x200
 __x64_sys_close+0x7f/0x110
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff8880285ec250
 which belongs to the cache seq_file of size 232
The buggy address is located 112 bytes inside of
 freed 232-byte region [ffff8880285ec250, ffff8880285ec338)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880285ecb90 pfn:0x285ec
memcg:ffff8880232bc001
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88801bee4500 ffffea0004a4f980 dead000000000002
raw: ffff8880285ecb90 00000000000d0004 00000000f5000000 ffff8880232bc001
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 18192, tgid 18192 (udevadm), ts 713361926774, free_ts 691227704848
 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
 seq_open+0x5f/0x140
 kernfs_fop_open+0x542/0xca0
 do_dentry_open+0x953/0x13f0
 vfs_open+0x3b/0x340
 path_openat+0x2ee5/0x3830
 do_filp_open+0x1fa/0x410
 do_sys_openat2+0x121/0x1c0
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0xfa/0x3b0
page last free pid 17766 tgid 17765 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 vfree+0x25a/0x400
 __vmalloc_node_range_noprof+0x100d/0x12f0
 bpf_map_area_alloc+0x12d/0x180
 prealloc_init+0x123/0x630
 htab_map_alloc+0x6ce/0xc70
 map_create+0xaa3/0x14d0
 __sys_bpf+0x60f/0x870
 __x64_sys_bpf+0x7c/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff8880285ec180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8880285ec200: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb
>ffff8880285ec280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                           ^
 ffff8880285ec300: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa
 ffff8880285ec380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
