================================================================== BUG: KCSAN: data-race in ext4_nonda_switch / percpu_counter_add_batch write to 0xffff888218756958 of 8 bytes by task 9729 on cpu 0: 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:3305 __generic_file_write_iter+0x251/0x380 mm/filemap.c:3434 ext4_file_write_iter+0x1bd/0xa00 fs/ext4/file.c:268 call_write_iter include/linux/fs.h:1895 [inline] do_iter_readv_writev+0x487/0x5b0 fs/read_write.c:693 do_iter_write fs/read_write.c:970 [inline] do_iter_write+0x13b/0x3c0 fs/read_write.c:951 vfs_iter_write+0x5c/0x80 fs/read_write.c:983 iter_file_splice_write+0x4c0/0x7f0 fs/splice.c:746 do_splice_from fs/splice.c:848 [inline] direct_splice_actor+0xa0/0xc0 fs/splice.c:1020 splice_direct_to_actor+0x215/0x510 fs/splice.c:975 do_splice_direct+0x161/0x1e0 fs/splice.c:1063 do_sendfile+0x384/0x7f0 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x12a/0x140 fs/read_write.c:1511 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff888218756958 of 8 bytes by task 9728 on cpu 1: 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:3305 __generic_file_write_iter+0x251/0x380 mm/filemap.c:3434 ext4_file_write_iter+0x1bd/0xa00 fs/ext4/file.c:268 call_write_iter include/linux/fs.h:1895 [inline] do_iter_readv_writev+0x487/0x5b0 fs/read_write.c:693 do_iter_write fs/read_write.c:970 [inline] do_iter_write+0x13b/0x3c0 fs/read_write.c:951 vfs_iter_write+0x5c/0x80 fs/read_write.c:983 iter_file_splice_write+0x4c0/0x7f0 fs/splice.c:746 do_splice_from fs/splice.c:848 [inline] direct_splice_actor+0xa0/0xc0 fs/splice.c:1020 splice_direct_to_actor+0x215/0x510 fs/splice.c:975 do_splice_direct+0x161/0x1e0 fs/splice.c:1063 do_sendfile+0x384/0x7f0 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x12a/0x140 fs/read_write.c:1511 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: 1 PID: 9728 Comm: syz-executor.5 Not tainted 5.4.0-rc6+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================