================================================================== BUG: KCSAN: data-race in ext4_mb_find_by_goal / mb_free_blocks write to 0xffff888101ce6b54 of 4 bytes by task 31494 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_setattr+0xb00/0xef0 fs/ext4/inode.c:5521 notify_change+0x8a3/0xac0 fs/attr.c:398 do_truncate+0xf7/0x140 fs/open.c:64 handle_truncate fs/namei.c:3082 [inline] do_open fs/namei.c:3430 [inline] path_openat+0x1925/0x1ec0 fs/namei.c:3559 do_filp_open+0x105/0x220 fs/namei.c:3586 do_sys_openat2+0xb5/0x2b0 fs/open.c:1200 do_sys_open fs/open.c:1216 [inline] __do_sys_creat fs/open.c:1290 [inline] __se_sys_creat fs/open.c:1284 [inline] __x64_sys_creat+0x62/0x80 fs/open.c:1284 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 0xffff888101ce6b54 of 4 bytes by task 31547 on cpu 0: ext4_mb_find_by_goal+0x13a/0x8a0 fs/ext4/mballoc.c:2207 ext4_mb_regular_allocator+0x130/0x2530 fs/ext4/mballoc.c:2654 ext4_mb_new_blocks+0x792/0x1fc0 fs/ext4/mballoc.c:5586 ext4_ext_map_blocks+0x15ed/0x1ff0 fs/ext4/extents.c:4250 ext4_map_blocks+0x71e/0xf00 fs/ext4/inode.c:637 ext4_alloc_file_blocks+0x281/0x730 fs/ext4/extents.c:4437 ext4_fallocate+0x2a7/0x4d0 fs/ext4/extents.c:4718 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: 0x0000374d -> 0x0000374e Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 31547 Comm: syz-executor.3 Tainted: G W 5.14.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================