================================================================== BUG: KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end write to 0xffff88813cf5c9a0 of 8 bytes by task 13770 on cpu 0: i_size_write include/linux/fs.h:932 [inline] shmem_write_end+0x9a/0x470 mm/shmem.c:2741 generic_perform_write+0x267/0x410 mm/filemap.c:3941 shmem_file_write_iter+0xc8/0xe0 mm/shmem.c:2893 call_write_iter include/linux/fs.h:2085 [inline] iter_file_splice_write+0x5de/0x950 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x167/0x2c0 fs/splice.c:1164 splice_direct_to_actor+0x2fb/0x660 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0xd7/0x150 fs/splice.c:1233 do_sendfile+0x3b9/0x960 fs/read_write.c:1295 __do_sys_sendfile64 fs/read_write.c:1356 [inline] __se_sys_sendfile64 fs/read_write.c:1348 [inline] __x64_sys_sendfile64+0xbd/0x150 fs/read_write.c:1348 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff88813cf5c9a0 of 8 bytes by task 13769 on cpu 1: i_size_read include/linux/fs.h:910 [inline] shmem_get_folio_gfp+0x13f/0xb40 mm/shmem.c:1973 shmem_get_folio mm/shmem.c:2134 [inline] shmem_file_splice_read+0x198/0x600 mm/shmem.c:2964 do_splice_read fs/splice.c:985 [inline] splice_direct_to_actor+0x268/0x660 fs/splice.c:1089 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0xd7/0x150 fs/splice.c:1233 do_sendfile+0x3b9/0x960 fs/read_write.c:1295 __do_sys_sendfile64 fs/read_write.c:1356 [inline] __se_sys_sendfile64 fs/read_write.c:1348 [inline] __x64_sys_sendfile64+0xbd/0x150 fs/read_write.c:1348 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x0000000000001ebc -> 0x0000000000001f2c Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 13769 Comm: syz-executor.4 Not tainted 6.8.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 ==================================================================