================================================================== BUG: KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range read-write to 0xffff8881069d8e60 of 8 bytes by task 6418 on cpu 0: __filemap_add_folio+0x430/0x6f0 mm/filemap.c:919 filemap_add_folio+0x9c/0x1b0 mm/filemap.c:971 __filemap_get_folio+0x2f1/0x5b0 mm/filemap.c:1959 block_write_begin fs/buffer.c:2221 [inline] cont_write_begin+0x512/0x860 fs/buffer.c:2577 fat_write_begin+0x51/0xe0 fs/fat/inode.c:228 cont_expand_zero fs/buffer.c:2504 [inline] cont_write_begin+0x18b/0x860 fs/buffer.c:2567 fat_write_begin+0x51/0xe0 fs/fat/inode.c:228 generic_cont_expand_simple+0xaa/0x150 fs/buffer.c:2468 fat_cont_expand+0x3a/0x160 fs/fat/file.c:223 fat_setattr+0x2aa/0x840 fs/fat/file.c:513 notify_change+0x85c/0x8e0 fs/attr.c:552 do_truncate fs/open.c:65 [inline] do_ftruncate+0x3cf/0x460 fs/open.c:181 do_sys_ftruncate fs/open.c:196 [inline] __do_sys_ftruncate fs/open.c:201 [inline] __se_sys_ftruncate fs/open.c:199 [inline] __x64_sys_ftruncate+0x67/0xc0 fs/open.c:199 x64_sys_call+0x9d9/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:78 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff8881069d8e60 of 8 bytes by task 6427 on cpu 1: mapping_needs_writeback mm/filemap.c:634 [inline] filemap_write_and_wait_range+0x59/0x360 mm/filemap.c:683 kiocb_write_and_wait mm/filemap.c:2732 [inline] generic_file_read_iter+0xff/0x330 mm/filemap.c:2806 copy_splice_read+0x3a0/0x5d0 fs/splice.c:365 do_splice_read fs/splice.c:984 [inline] splice_direct_to_actor+0x28b/0x670 fs/splice.c:1089 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0xd7/0x150 fs/splice.c:1233 do_sendfile+0x398/0x660 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1424 [inline] __se_sys_sendfile64 fs/read_write.c:1410 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1410 x64_sys_call+0xfbd/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:41 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x000000000000005d -> 0x000000000000005e Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 6427 Comm: syz.7.1023 Not tainted 6.13.0-rc2-syzkaller-00018-g7cb1b4663150 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================