================================================================== BUG: KCSAN: data-race in mb_mark_used / mb_update_avg_fragment_size write to 0xffff888101c17194 of 4 bytes by task 20614 on cpu 1: mb_mark_used+0x13b/0xc50 fs/ext4/mballoc.c:1942 ext4_mb_use_best_found+0x102/0x320 fs/ext4/mballoc.c:2014 ext4_mb_try_best_found+0x234/0x3d0 fs/ext4/mballoc.c:2180 ext4_mb_regular_allocator+0x22bd/0x2520 fs/ext4/mballoc.c:2778 ext4_mb_new_blocks+0x762/0x1f90 fs/ext4/mballoc.c:5514 ext4_ext_map_blocks+0x1569/0x1f00 fs/ext4/extents.c:4238 ext4_map_blocks+0x70d/0xef0 fs/ext4/inode.c:638 ext4_alloc_file_blocks+0x271/0x720 fs/ext4/extents.c:4425 ext4_zero_range+0x309/0xa40 fs/ext4/extents.c:4537 ext4_fallocate+0x226/0x4d0 fs/ext4/extents.c:4674 vfs_fallocate+0x463/0x660 fs/open.c:311 ksys_fallocate fs/open.c:334 [inline] __do_sys_fallocate fs/open.c:342 [inline] __se_sys_fallocate fs/open.c:340 [inline] __x64_sys_fallocate+0x75/0xc0 fs/open.c:340 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888101c17194 of 4 bytes by task 20607 on cpu 0: ext4_mb_avg_fragment_size_cmp fs/ext4/mballoc.c:835 [inline] ext4_mb_rb_insert fs/ext4/mballoc.c:811 [inline] mb_update_avg_fragment_size+0x184/0x260 fs/ext4/mballoc.c:859 mb_free_blocks+0x9e4/0xb40 fs/ext4/mballoc.c:1856 ext4_mb_release_inode_pa+0x2f1/0x560 fs/ext4/mballoc.c:4694 ext4_discard_preallocations+0x7a8/0xb40 fs/ext4/mballoc.c:4958 ext4_release_file+0x105/0x1d0 fs/ext4/file.c:149 __fput+0x25b/0x4e0 fs/file_table.c:280 ____fput+0x11/0x20 fs/file_table.c:313 task_work_run+0xae/0x130 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301 do_syscall_64+0x56/0x90 arch/x86/entry/common.c:57 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 20607 Comm: syz-executor.2 Not tainted 5.13.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================