================================================================== BUG: KCSAN: data-race in mb_free_blocks / mb_update_avg_fragment_size write to 0xffff8881017e8854 of 4 bytes by task 23116 on cpu 1: mb_free_blocks+0x156/0xb40 fs/ext4/mballoc.c:1798 ext4_free_blocks+0x1418/0x1b50 fs/ext4/mballoc.c:5989 ext4_clear_blocks+0x292/0x2b0 fs/ext4/indirect.c:877 ext4_free_data+0x1b0/0x2b0 fs/ext4/indirect.c:950 ext4_free_branches+0x64/0x420 fs/ext4/indirect.c:1095 ext4_free_branches+0x21b/0x420 fs/ext4/indirect.c:1030 ext4_free_branches+0x21b/0x420 fs/ext4/indirect.c:1030 ext4_ind_truncate+0x7c2/0x880 fs/ext4/indirect.c:1188 ext4_truncate+0x756/0xa80 fs/ext4/inode.c:4264 ext4_truncate_failed_write fs/ext4/truncate.h:20 [inline] ext4_handle_inode_extension fs/ext4/file.c:358 [inline] ext4_dio_write_iter fs/ext4/file.c:574 [inline] ext4_file_write_iter+0x106c/0x11d0 fs/ext4/file.c:678 call_write_iter include/linux/fs.h:2114 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0x69d/0x770 fs/read_write.c:605 ksys_write+0xce/0x180 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:667 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 read to 0xffff8881017e8854 of 4 bytes by task 1809 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_free_blocks+0x1418/0x1b50 fs/ext4/mballoc.c:5989 ext4_remove_blocks+0x61a/0x800 fs/ext4/extents.c:2502 ext4_ext_rm_leaf+0x670/0xd20 fs/ext4/extents.c:2668 ext4_ext_remove_space+0x901/0x1300 fs/ext4/extents.c:2916 ext4_ext_truncate+0xfe/0x170 fs/ext4/extents.c:4377 ext4_truncate+0x76e/0xa80 fs/ext4/inode.c:4262 ext4_evict_inode+0xa54/0xdb0 fs/ext4/inode.c:288 evict+0x1c8/0x3c0 fs/inode.c:584 iput_final fs/inode.c:1660 [inline] iput+0x430/0x580 fs/inode.c:1686 dentry_unlink_inode+0x23a/0x260 fs/dcache.c:376 d_delete+0x78/0xe0 fs/dcache.c:2505 vfs_rmdir+0x2a6/0x2c0 fs/namei.c:3919 do_rmdir+0x14a/0x2e0 fs/namei.c:3968 __do_sys_rmdir fs/namei.c:3986 [inline] __se_sys_rmdir fs/namei.c:3984 [inline] __x64_sys_rmdir+0x2c/0x30 fs/namei.c:3984 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: 0x00006966 -> 0x00006d5a Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1809 Comm: syz-executor.3 Not tainted 5.14.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================