================================================================== BUG: KCSAN: data-race in ext4_nonda_switch / percpu_counter_add_batch write to 0xffff888218743158 of 8 bytes by task 11768 on cpu 0: percpu_counter_add_batch+0xca/0x150 lib/percpu_counter.c:91 percpu_counter_add include/linux/percpu_counter.h:55 [inline] percpu_counter_sub include/linux/percpu_counter.h:189 [inline] ext4_mb_mark_diskspace_used+0x8e2/0x9d0 fs/ext4/mballoc.c:3016 ext4_mb_new_blocks+0x6fc/0x1de0 fs/ext4/mballoc.c:4556 ext4_ext_map_blocks+0x1c1e/0x2330 fs/ext4/extents.c:4460 ext4_map_blocks+0x23a/0xfa0 fs/ext4/inode.c:640 ext4_alloc_file_blocks+0x1bd/0x6c0 fs/ext4/extents.c:4649 ext4_fallocate+0x507/0x13d0 fs/ext4/extents.c:4934 vfs_fallocate+0x3be/0x650 fs/open.c:309 ioctl_preallocate+0x126/0x180 fs/ioctl.c:490 file_ioctl fs/ioctl.c:506 [inline] do_vfs_ioctl+0xbd2/0xc60 fs/ioctl.c:696 ksys_ioctl+0xbd/0xe0 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x4c/0x60 fs/ioctl.c:718 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff888218743158 of 8 bytes by task 11731 on cpu 1: ext4_nonda_switch+0x5a/0x140 fs/ext4/inode.c:2990 ext4_da_write_begin+0xc5/0x810 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:1519 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0xbe/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: 11731 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 ==================================================================