EXT4-fs (loop1): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. ext4 filesystem being mounted at /root/syzkaller-testdir3268323971/syzkaller.5Hj3DL/1329/file0 supports timestamps until 2038-01-19 (0x7fffffff) ================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / file_write_and_wait_range read-write to 0xffff8881004837a0 of 8 bytes by task 31405 on cpu 0: page_cache_delete mm/filemap.c:150 [inline] __filemap_remove_folio+0x224/0x320 mm/filemap.c:228 __remove_mapping+0x35b/0x480 mm/vmscan.c:1457 remove_mapping+0x23/0xa0 mm/vmscan.c:1490 mapping_evict_folio mm/truncate.c:282 [inline] mapping_try_invalidate+0x2a9/0x3f0 mm/truncate.c:521 invalidate_mapping_pages+0x27/0x30 mm/truncate.c:559 invalidate_bdev+0x6b/0x80 block/bdev.c:87 loop_set_status+0x114/0x550 drivers/block/loop.c:1281 lo_ioctl+0x892/0x12e0 blkdev_ioctl+0x375/0x460 block/ioctl.c:621 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xcf/0x140 fs/ioctl.c:856 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:856 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 0xffff8881004837a0 of 8 bytes by task 31401 on cpu 1: mapping_needs_writeback mm/filemap.c:631 [inline] file_write_and_wait_range+0x6a/0x190 mm/filemap.c:783 blkdev_fsync+0x4e/0xa0 block/fops.c:458 vfs_fsync_range+0x111/0x120 fs/sync.c:188 generic_write_sync include/linux/fs.h:2499 [inline] blkdev_write_iter+0x375/0x3c0 block/fops.c:575 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:936 [inline] direct_splice_actor+0x8a/0xb0 fs/splice.c:1145 splice_direct_to_actor+0x31d/0x690 fs/splice.c:1091 do_splice_direct+0x10d/0x190 fs/splice.c:1197 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: 0x00000000000006f2 -> 0x00000000000006e5 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 31401 Comm: syz-executor.1 Not tainted 6.5.0-rc7-syzkaller-00013-g53663f4103ff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 ==================================================================