================================================================== BUG: KCSAN: data-race in vfs_fsync_range / writeback_single_inode write to 0xffff88810aa4cd70 of 8 bytes by task 8121 on cpu 1: writeback_single_inode+0x109/0x490 fs/fs-writeback.c:1716 sync_inode_metadata+0x52/0x70 fs/fs-writeback.c:2775 __generic_file_fsync+0xf5/0x140 fs/libfs.c:1143 fat_file_fsync+0x48/0x100 fs/fat/file.c:191 vfs_fsync_range+0x107/0x120 fs/sync.c:188 generic_write_sync include/linux/fs.h:2885 [inline] generic_file_write_iter+0x18d/0x1c0 mm/filemap.c:3936 do_iter_write+0x494/0x750 fs/read_write.c:861 vfs_iter_write+0x4c/0x70 fs/read_write.c:902 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0x80/0xa0 fs/splice.c:931 splice_direct_to_actor+0x305/0x620 fs/splice.c:886 do_splice_direct+0xfb/0x180 fs/splice.c:974 do_sendfile+0x3bf/0x910 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff88810aa4cd70 of 8 bytes by task 8134 on cpu 0: vfs_fsync_range+0x98/0x120 fs/sync.c:186 generic_write_sync include/linux/fs.h:2885 [inline] generic_file_write_iter+0x18d/0x1c0 mm/filemap.c:3936 do_iter_write+0x494/0x750 fs/read_write.c:861 vfs_iter_write+0x4c/0x70 fs/read_write.c:902 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0x80/0xa0 fs/splice.c:931 splice_direct_to_actor+0x305/0x620 fs/splice.c:886 do_splice_direct+0xfb/0x180 fs/splice.c:974 do_sendfile+0x3bf/0x910 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0000000000000007 -> 0x0000000000000084 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 8134 Comm: syz-executor.5 Not tainted 6.2.0-rc6-syzkaller-00083-ge7368fd30165-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 ================================================================== ================================================================== BUG: KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty write to 0xffff88810aa4cd70 of 8 bytes by task 8121 on cpu 1: __mark_inode_dirty+0x23d/0x730 fs/fs-writeback.c:2450 mark_buffer_dirty+0x16f/0x390 fs/buffer.c:1109 __block_commit_write+0x11d/0x1c0 fs/buffer.c:2065 block_write_end fs/buffer.c:2144 [inline] generic_write_end+0x81/0x350 fs/buffer.c:2158 fat_write_end+0x4a/0x150 fs/fat/inode.c:244 generic_perform_write+0x264/0x3f0 mm/filemap.c:3783 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3900 generic_file_write_iter+0x79/0x1c0 mm/filemap.c:3932 do_iter_write+0x494/0x750 fs/read_write.c:861 vfs_iter_write+0x4c/0x70 fs/read_write.c:902 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0x80/0xa0 fs/splice.c:931 splice_direct_to_actor+0x305/0x620 fs/splice.c:886 do_splice_direct+0xfb/0x180 fs/splice.c:974 do_sendfile+0x3bf/0x910 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff88810aa4cd70 of 8 bytes by task 8134 on cpu 0: __mark_inode_dirty+0x186/0x730 fs/fs-writeback.c:2441 fat_update_time+0x27f/0x2b0 fs/fat/misc.c:359 inode_update_time fs/inode.c:1871 [inline] touch_atime+0x16e/0x2e0 fs/inode.c:1944 file_accessed include/linux/fs.h:2519 [inline] generic_file_splice_read+0x136/0x2b0 fs/splice.c:312 do_splice_to fs/splice.c:793 [inline] splice_direct_to_actor+0x26c/0x620 fs/splice.c:865 do_splice_direct+0xfb/0x180 fs/splice.c:974 do_sendfile+0x3bf/0x910 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x0000000000000800 -> 0x0000000000000007 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 8134 Comm: syz-executor.5 Not tainted 6.2.0-rc6-syzkaller-00083-ge7368fd30165-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 ==================================================================