================================================================== BUG: KCSAN: data-race in ext4_nonda_switch / percpu_counter_add_batch write to 0xffff88821877f958 of 8 bytes by task 15118 on cpu 1: percpu_counter_add_batch+0xca/0x150 lib/percpu_counter.c:91 percpu_counter_add include/linux/percpu_counter.h:55 [inline] ext4_claim_free_clusters+0x68/0x90 fs/ext4/balloc.c:599 ext4_da_reserve_space+0x102/0x280 fs/ext4/inode.c:1612 ext4_insert_delayed_block fs/ext4/inode.c:1780 [inline] ext4_da_map_blocks fs/ext4/inode.c:1895 [inline] ext4_da_get_block_prep+0x87f/0xa60 fs/ext4/inode.c:1959 ext4_block_write_begin+0x33e/0xba0 fs/ext4/inode.c:1202 ext4_da_write_begin+0x1da/0x7e0 fs/ext4/inode.c:3094 generic_perform_write+0x136/0x320 mm/filemap.c:3304 __generic_file_write_iter+0x251/0x380 mm/filemap.c:3433 ext4_file_write_iter+0x1bd/0xa00 fs/ext4/file.c:268 call_write_iter include/linux/fs.h:1895 [inline] new_sync_write+0x388/0x4a0 fs/read_write.c:483 __vfs_write+0xb1/0xc0 fs/read_write.c:496 vfs_write fs/read_write.c:558 [inline] vfs_write+0x18a/0x390 fs/read_write.c:542 ksys_write+0xd5/0x1b0 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write fs/read_write.c:620 [inline] __x64_sys_write+0x4c/0x60 fs/read_write.c:620 read to 0xffff88821877f958 of 8 bytes by task 15116 on cpu 0: ext4_nonda_switch+0x5a/0x140 fs/ext4/inode.c:2990 ext4_da_write_begin+0xc5/0x7e0 fs/ext4/inode.c:3036 generic_perform_write+0x136/0x320 mm/filemap.c:3304 __generic_file_write_iter+0x251/0x380 mm/filemap.c:3433 ext4_file_write_iter+0x1bd/0xa00 fs/ext4/file.c:268 call_write_iter include/linux/fs.h:1895 [inline] new_sync_write+0x388/0x4a0 fs/read_write.c:483 __vfs_write+0xb1/0xc0 fs/read_write.c:496 vfs_write fs/read_write.c:558 [inline] vfs_write+0x18a/0x390 fs/read_write.c:542 ksys_write+0xd5/0x1b0 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write fs/read_write.c:620 [inline] __x64_sys_write+0x4c/0x60 fs/read_write.c:620 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 15116 Comm: syz-executor.5 Not tainted 5.4.0-rc3+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================