================================================================== BUG: KCSAN: data-race in mb_free_blocks / mb_update_avg_fragment_size write to 0xffff88810201d858 of 4 bytes by task 9515 on cpu 0: mb_free_blocks+0x323/0xb40 fs/ext4/mballoc.c:1833 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 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0x477/0x1530 kernel/exit.c:825 do_group_exit+0xce/0x1a0 kernel/exit.c:922 get_signal+0xfa3/0x15e0 kernel/signal.c:2796 arch_do_signal_or_restart+0x2a/0x220 arch/x86/kernel/signal.c:789 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x109/0x190 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302 do_syscall_64+0x49/0x90 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff88810201d858 of 4 bytes by task 6125 on cpu 1: ext4_mb_avg_fragment_size_cmp fs/ext4/mballoc.c:834 [inline] ext4_mb_rb_insert fs/ext4/mballoc.c:811 [inline] mb_update_avg_fragment_size+0x161/0x260 fs/ext4/mballoc.c:859 mb_mark_used+0xae0/0xc50 fs/ext4/mballoc.c:1993 ext4_mb_use_best_found+0x102/0x320 fs/ext4/mballoc.c:2014 ext4_mb_measure_extent fs/ext4/mballoc.c:2130 [inline] ext4_mb_complex_scan_group+0x349/0x850 fs/ext4/mballoc.c:2360 ext4_mb_regular_allocator+0x1a22/0x2520 fs/ext4/mballoc.c:2759 ext4_mb_new_blocks+0x762/0x1f90 fs/ext4/mballoc.c:5514 ext4_ext_map_blocks+0x1569/0x1f00 fs/ext4/extents.c:4245 ext4_map_blocks+0x70d/0xef0 fs/ext4/inode.c:638 ext4_getblk+0xb1/0x3d0 fs/ext4/inode.c:848 ext4_bread+0x28/0x100 fs/ext4/inode.c:900 ext4_append+0xd1/0x1c0 fs/ext4/namei.c:67 ext4_init_new_dir+0x177/0x500 fs/ext4/namei.c:2885 ext4_mkdir+0x329/0x760 fs/ext4/namei.c:2931 vfs_mkdir+0x2a4/0x370 fs/namei.c:3813 do_mkdirat+0x11d/0x200 fs/namei.c:3838 __do_sys_mkdir fs/namei.c:3856 [inline] __se_sys_mkdir fs/namei.c:3854 [inline] __x64_sys_mkdir+0x32/0x40 fs/namei.c:3854 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00000005 -> 0x00000006 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 6125 Comm: syz-executor.5 Not tainted 5.13.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================