================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / file_write_and_wait_range read-write to 0xffff88810240cbf8 of 8 bytes by task 2746 on cpu 0: page_cache_delete mm/filemap.c:147 [inline] __filemap_remove_folio+0x224/0x320 mm/filemap.c:225 __remove_mapping+0x35b/0x480 mm/vmscan.c:1467 remove_mapping+0x23/0xa0 mm/vmscan.c:1500 mapping_evict_folio mm/truncate.c:282 [inline] invalidate_mapping_pagevec+0x2a9/0x3f0 mm/truncate.c:522 invalidate_mapping_pages+0x27/0x30 mm/truncate.c:560 invalidate_bdev+0x6b/0x80 block/bdev.c:87 bdev_disk_changed+0x102/0xbb0 block/partitions/core.c:660 blkdev_get_whole+0x227/0x240 block/bdev.c:619 blkdev_get_by_dev+0x23d/0x640 block/bdev.c:756 disk_scan_partitions+0x140/0x1a0 block/genhd.c:379 blkdev_common_ioctl+0xda5/0x1450 block/ioctl.c:531 blkdev_ioctl+0x331/0x480 block/ioctl.c:609 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xc9/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 0xffff88810240cbf8 of 8 bytes by task 20552 on cpu 1: mapping_needs_writeback mm/filemap.c:628 [inline] file_write_and_wait_range+0x6a/0x190 mm/filemap.c:780 blkdev_fsync+0x39/0x80 block/fops.c:457 vfs_fsync_range fs/sync.c:188 [inline] vfs_fsync fs/sync.c:202 [inline] do_fsync fs/sync.c:212 [inline] __do_sys_fsync fs/sync.c:220 [inline] __se_sys_fsync fs/sync.c:218 [inline] __x64_sys_fsync+0x127/0x170 fs/sync.c:218 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: 0x000000000000000c -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 20552 Comm: syz-executor.0 Not tainted 6.4.0-rc6-syzkaller-00279-g8c1f0c38b310 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 ==================================================================