================================================================== BUG: KCSAN: data-race in ext4_mb_find_by_goal / mb_mark_used write to 0xffff888101386b54 of 4 bytes by task 12324 on cpu 0: mb_mark_used+0x13b/0xc50 fs/ext4/mballoc.c:1947 ext4_mb_use_best_found+0x102/0x300 fs/ext4/mballoc.c:2019 ext4_mb_try_best_found+0x231/0x3b0 fs/ext4/mballoc.c:2185 ext4_mb_regular_allocator+0x2240/0x24a0 fs/ext4/mballoc.c:2797 ext4_mb_new_blocks+0x78c/0x1ee0 fs/ext4/mballoc.c:5586 ext4_ext_map_blocks+0x1658/0x2120 fs/ext4/extents.c:4285 ext4_map_blocks+0x71e/0xf00 fs/ext4/inode.c:637 ext4_iomap_alloc fs/ext4/inode.c:3365 [inline] ext4_iomap_begin+0x4b0/0x630 fs/ext4/inode.c:3415 iomap_iter+0x395/0x4a0 fs/iomap/iter.c:74 __iomap_dio_rw+0xb78/0x1070 fs/iomap/direct-io.c:588 iomap_dio_rw+0x38/0x80 fs/iomap/direct-io.c:679 ext4_dio_write_iter fs/ext4/file.c:568 [inline] ext4_file_write_iter+0xa72/0x1200 fs/ext4/file.c:679 call_write_iter include/linux/fs.h:2162 [inline] new_sync_write fs/read_write.c:503 [inline] vfs_write+0x7f5/0x950 fs/read_write.c:590 ksys_write+0xd9/0x190 fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:652 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888101386b54 of 4 bytes by task 12318 on cpu 1: ext4_mb_find_by_goal+0x13f/0x880 fs/ext4/mballoc.c:2207 ext4_mb_regular_allocator+0x12b/0x24a0 fs/ext4/mballoc.c:2654 ext4_mb_new_blocks+0x78c/0x1ee0 fs/ext4/mballoc.c:5586 ext4_ext_map_blocks+0x1658/0x2120 fs/ext4/extents.c:4285 ext4_map_blocks+0x71e/0xf00 fs/ext4/inode.c:637 ext4_alloc_file_blocks+0x281/0x730 fs/ext4/extents.c:4472 ext4_zero_range+0x29e/0xae0 fs/ext4/extents.c:4585 ext4_fallocate+0x226/0x540 fs/ext4/extents.c:4722 vfs_fallocate+0x486/0x720 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/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00000038 -> 0x00000035 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 12318 Comm: syz-executor.3 Not tainted 5.16.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================