================================================================== BUG: KCSAN: data-race in mb_free_blocks / mb_update_avg_fragment_size write to 0xffff8881013e23d4 of 4 bytes by task 5632 on cpu 1: mb_free_blocks+0x156/0xb40 fs/ext4/mballoc.c:1798 ext4_free_blocks+0x1418/0x1b50 fs/ext4/mballoc.c:5988 ext4_remove_blocks+0x61a/0x800 fs/ext4/extents.c:2498 ext4_ext_rm_leaf+0x670/0xd20 fs/ext4/extents.c:2664 ext4_ext_remove_space+0x901/0x1300 fs/ext4/extents.c:2912 ext4_ext_truncate+0xfe/0x170 fs/ext4/extents.c:4373 ext4_truncate+0x76e/0xa80 fs/ext4/inode.c:4262 ext4_setattr+0xacc/0xec0 fs/ext4/inode.c:5504 notify_change+0x8a3/0xa80 fs/attr.c:398 do_truncate+0xe8/0x130 fs/open.c:64 handle_truncate fs/namei.c:3017 [inline] do_open fs/namei.c:3365 [inline] path_openat+0x1a79/0x20b0 fs/namei.c:3494 do_filp_open+0xd9/0x1f0 fs/namei.c:3521 do_sys_openat2+0xa3/0x250 fs/open.c:1187 do_sys_open fs/open.c:1203 [inline] __do_sys_creat fs/open.c:1277 [inline] __se_sys_creat fs/open.c:1271 [inline] __x64_sys_creat+0x62/0x80 fs/open.c:1271 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff8881013e23d4 of 4 bytes by task 1831 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:5988 ext4_remove_blocks+0x61a/0x800 fs/ext4/extents.c:2498 ext4_ext_rm_leaf+0x670/0xd20 fs/ext4/extents.c:2664 ext4_ext_remove_space+0x901/0x1300 fs/ext4/extents.c:2912 ext4_ext_truncate+0xfe/0x170 fs/ext4/extents.c:4373 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+0x433/0x590 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:3909 do_rmdir+0x14a/0x2e0 fs/namei.c:3958 __do_sys_rmdir fs/namei.c:3976 [inline] __se_sys_rmdir fs/namei.c:3974 [inline] __x64_sys_rmdir+0x2c/0x30 fs/namei.c:3974 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00007ee6 -> 0x00007eed Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1831 Comm: syz-executor.4 Not tainted 5.13.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================