================================================================== BUG: KCSAN: data-race in ext4_da_write_end / ext4_writepages write to 0xffff888105f57a48 of 8 bytes by task 10252 on cpu 1: mpage_map_and_submit_extent fs/ext4/inode.c:2513 [inline] ext4_writepages+0x13da/0x1d30 fs/ext4/inode.c:2806 do_writepages+0x25b/0x3a0 mm/page-writeback.c:2364 filemap_fdatawrite_wbc mm/filemap.c:400 [inline] __filemap_fdatawrite_range mm/filemap.c:433 [inline] __filemap_fdatawrite mm/filemap.c:439 [inline] filemap_flush+0x145/0x170 mm/filemap.c:466 ext4_alloc_da_blocks+0x47/0xd0 fs/ext4/inode.c:3170 ext4_release_file+0x5b/0x1d0 fs/ext4/file.c:141 __fput+0x295/0x520 fs/file_table.c:280 ____fput+0x11/0x20 fs/file_table.c:313 task_work_run+0xae/0x130 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302 do_syscall_64+0x49/0x90 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888105f57a48 of 8 bytes by task 10254 on cpu 0: ext4_da_write_end+0xfc/0x730 fs/ext4/inode.c:3098 generic_perform_write+0x23a/0x3d0 mm/filemap.c:3781 ext4_buffered_write_iter+0x305/0x400 fs/ext4/file.c:269 ext4_file_write_iter+0x2e7/0x11a0 call_write_iter include/linux/fs.h:2163 [inline] do_iter_readv_writev+0x2cd/0x370 fs/read_write.c:729 do_iter_write+0x192/0x5c0 fs/read_write.c:855 vfs_iter_write+0x4c/0x70 fs/read_write.c:896 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+0x618/0xb90 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1314 [inline] __se_sys_sendfile64 fs/read_write.c:1300 [inline] __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1300 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00000000000bb000 -> 0x0000000000100000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 10254 Comm: syz-executor.1 Not tainted 5.14.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================