================================================================== BUG: KCSAN: data-race in mb_free_blocks / mb_update_avg_fragment_size write to 0xffff8881010ef254 of 4 bytes by task 26077 on cpu 1: mb_free_blocks+0x156/0xb40 fs/ext4/mballoc.c:1802 ext4_free_blocks+0x14ea/0x1c20 fs/ext4/mballoc.c:6061 ext4_remove_blocks+0x61a/0x800 fs/ext4/extents.c:2506 ext4_ext_rm_leaf+0x684/0xd40 fs/ext4/extents.c:2672 ext4_ext_remove_space+0x8f6/0x12b0 fs/ext4/extents.c:2920 ext4_ext_truncate+0xfe/0x170 fs/ext4/extents.c:4382 ext4_truncate+0x76e/0xa80 fs/ext4/inode.c:4268 ext4_truncate_failed_write fs/ext4/truncate.h:22 [inline] ext4_da_write_begin+0x53f/0x7f0 fs/ext4/inode.c:3035 generic_perform_write+0x1b8/0x3e0 mm/filemap.c:3770 ext4_buffered_write_iter+0x305/0x400 fs/ext4/file.c:269 ext4_file_write_iter+0x2e7/0x11f0 call_write_iter include/linux/fs.h:2163 [inline] do_iter_readv_writev+0x2de/0x380 fs/read_write.c:729 do_iter_write+0x192/0x5c0 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_pwritev+0x205/0x3c0 fs/read_write.c:1025 __do_sys_pwritev fs/read_write.c:1072 [inline] __se_sys_pwritev fs/read_write.c:1067 [inline] __x64_sys_pwritev+0x54/0x60 fs/read_write.c:1067 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff8881010ef254 of 4 bytes by task 26043 on cpu 0: ext4_mb_avg_fragment_size_cmp fs/ext4/mballoc.c:839 [inline] ext4_mb_rb_insert fs/ext4/mballoc.c:815 [inline] mb_update_avg_fragment_size+0x184/0x260 fs/ext4/mballoc.c:863 mb_free_blocks+0x9e4/0xb40 fs/ext4/mballoc.c:1860 ext4_free_blocks+0x14ea/0x1c20 fs/ext4/mballoc.c:6061 ext4_clear_blocks+0x292/0x2b0 fs/ext4/indirect.c:880 ext4_free_data+0x153/0x2e0 fs/ext4/indirect.c:941 ext4_free_branches+0x65/0x440 fs/ext4/indirect.c:1100 ext4_ind_remove_space+0x1110/0x1420 fs/ext4/indirect.c:1325 ext4_punch_hole+0x69b/0x9d0 fs/ext4/inode.c:4122 ext4_fallocate+0xea/0x4d0 fs/ext4/extents.c:4668 vfs_fallocate+0x459/0x6a0 fs/open.c:307 ksys_fallocate fs/open.c:330 [inline] __do_sys_fallocate fs/open.c:338 [inline] __se_sys_fallocate fs/open.c:336 [inline] __x64_sys_fallocate+0x75/0xc0 fs/open.c:336 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00000601 -> 0x00000631 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 26043 Comm: syz-executor.4 Not tainted 5.15.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================