==================================================================
BUG: KASAN: slab-out-of-bounds in __ocfs2_flush_truncate_log+0x7c7/0x10e0
Read of size 4 at addr ffff888027befac0 by task syz-executor/6191

CPU: 0 UID: 0 PID: 6191 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:0x7fbca8f8ff17
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:00007ffda9af0828 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007fbca9011c05 RCX: 00007fbca8f8ff17
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffda9af08e0
RBP: 00007ffda9af08e0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffda9af1970
R13: 00007fbca9011c05 R14: 000000000001ddfe R15: 00007ffda9af19b0
 </TASK>

Allocated by task 5843:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x1c1/0x3c0
 copy_mm+0xdb/0x4b0
 copy_process+0x1706/0x3c00
 kernel_clone+0x21e/0x840
 __x64_sys_clone+0x18b/0x1e0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 6482:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kmem_cache_free+0x18f/0x400
 exit_mm+0x1da/0x2c0
 do_exit+0x648/0x2300
 do_group_exit+0x21c/0x2d0
 get_signal+0x1286/0x1340
 arch_do_signal_or_restart+0x9a/0x750
 exit_to_user_mode_loop+0x75/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888027beeb80
 which belongs to the cache mm_struct of size 2584
The buggy address is located 1320 bytes to the right of
 allocated 2584-byte region [ffff888027beeb80, ffff888027bef598)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888027beeb80 pfn:0x27be8
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888034e3ad01
flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000240 ffff88801a44bb40 ffffea0000908810 ffffea00007eb410
raw: ffff888027beeb80 00000000000b0005 00000000f5000000 ffff888034e3ad01
head: 00fff00000000240 ffff88801a44bb40 ffffea0000908810 ffffea00007eb410
head: ffff888027beeb80 00000000000b0005 00000000f5000000 ffff888034e3ad01
head: 00fff00000000003 ffffea00009efa01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5345, tgid 5345 (udevd), ts 23615230558, free_ts 23613299331
 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
 mm_alloc+0x23/0xd0
 alloc_bprm+0x398/0x5c0
 do_execveat_common+0x1b3/0x6a0
 __x64_sys_execve+0x94/0xb0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5297 tgid 5297 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
 alloc_pid+0x9f/0xab0
 copy_process+0x198e/0x3c00
 kernel_clone+0x21e/0x840
 __x64_sys_clone+0x18b/0x1e0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff888027bef980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888027befa00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888027befa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                                           ^
 ffff888027befb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888027befb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
