================================================================== BUG: KCSAN: data-race in filemap_splice_read / simple_write_end write to 0xffff88810a8c98b0 of 8 bytes by task 16194 on cpu 1: i_size_write include/linux/fs.h:901 [inline] simple_write_end+0x22d/0x410 fs/libfs.c:614 generic_perform_write+0x26d/0x410 mm/filemap.c:3934 __generic_file_write_iter+0xa1/0x120 mm/filemap.c:4018 generic_file_write_iter+0x7d/0x1c0 mm/filemap.c:4044 do_iter_write+0x4b4/0x7b0 fs/read_write.c:860 vfs_iter_write+0x56/0x70 fs/read_write.c:901 iter_file_splice_write+0x462/0x7e0 fs/splice.c:739 do_splice_from fs/splice.c:934 [inline] direct_splice_actor+0x8a/0xb0 fs/splice.c:1143 splice_direct_to_actor+0x31d/0x690 fs/splice.c:1089 do_splice_direct+0x10d/0x190 fs/splice.c:1195 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff88810a8c98b0 of 8 bytes by task 16192 on cpu 0: i_size_read include/linux/fs.h:879 [inline] filemap_splice_read+0x1a0/0x810 mm/filemap.c:2921 vfs_splice_read fs/splice.c:994 [inline] splice_direct_to_actor+0x28c/0x690 fs/splice.c:1070 do_splice_direct+0x10d/0x190 fs/splice.c:1195 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0000000001c47000 -> 0x0000000001c50200 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 16192 Comm: syz-executor.2 Not tainted 6.5.0-rc1-syzkaller-00006-g3f01e9fed845 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 ================================================================== ================================================================== BUG: KCSAN: data-race in filemap_splice_read / filemap_splice_read write to 0xffff888112f47290 of 8 bytes by task 16194 on cpu 1: filemap_splice_read+0x5be/0x810 mm/filemap.c:2971 vfs_splice_read fs/splice.c:994 [inline] splice_direct_to_actor+0x28c/0x690 fs/splice.c:1070 do_splice_direct+0x10d/0x190 fs/splice.c:1195 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd write to 0xffff888112f47290 of 8 bytes by task 16192 on cpu 0: filemap_splice_read+0x5be/0x810 mm/filemap.c:2971 vfs_splice_read fs/splice.c:994 [inline] splice_direct_to_actor+0x28c/0x690 fs/splice.c:1070 do_splice_direct+0x10d/0x190 fs/splice.c:1195 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0000000002d19000 -> 0x00000000068af000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 16192 Comm: syz-executor.2 Not tainted 6.5.0-rc1-syzkaller-00006-g3f01e9fed845 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 ==================================================================