================================================================== BUG: KCSAN: data-race in ext4_mb_find_by_goal / mb_free_blocks write to 0xffff8881013f1b54 of 4 bytes by task 1769 on cpu 0: 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:4370 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 read to 0xffff8881013f1b54 of 4 bytes by task 18801 on cpu 1: ext4_mb_find_by_goal+0x129/0x890 fs/ext4/mballoc.c:2202 ext4_mb_regular_allocator+0x11c/0x2520 fs/ext4/mballoc.c:2635 ext4_mb_new_blocks+0x762/0x1f90 fs/ext4/mballoc.c:5514 ext4_ext_map_blocks+0x1569/0x1f00 fs/ext4/extents.c:4238 ext4_map_blocks+0x70d/0xef0 fs/ext4/inode.c:638 ext4_iomap_alloc fs/ext4/inode.c:3426 [inline] ext4_iomap_begin+0x4a3/0x620 fs/ext4/inode.c:3476 iomap_apply+0x8d/0x400 fs/iomap/apply.c:46 __iomap_dio_rw+0x5af/0xad0 fs/iomap/direct-io.c:561 iomap_dio_rw+0x30/0x70 fs/iomap/direct-io.c:649 ext4_dio_write_iter fs/ext4/file.c:568 [inline] ext4_file_write_iter+0xa04/0x11d0 fs/ext4/file.c:678 call_write_iter include/linux/fs.h:2114 [inline] do_iter_readv_writev+0x2cb/0x360 fs/read_write.c:740 do_iter_write+0x112/0x4c0 fs/read_write.c:866 vfs_iter_write+0x4c/0x70 fs/read_write.c:907 iter_file_splice_write+0x40a/0x750 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0x80/0xa0 fs/splice.c:936 splice_direct_to_actor+0x345/0x650 fs/splice.c:891 do_splice_direct+0xf5/0x170 fs/splice.c:979 do_sendfile+0x773/0xda0 fs/read_write.c:1260 __do_sys_sendfile64 fs/read_write.c:1325 [inline] __se_sys_sendfile64 fs/read_write.c:1311 [inline] __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1311 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 18801 Comm: syz-executor.3 Tainted: G W 5.13.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== syz-executor.3 (18801) used greatest stack depth: 10016 bytes left