================================================================== BUG: KCSAN: data-race in __add_to_page_cache_locked / filemap_write_and_wait read to 0xffff888128dfd2e8 of 8 bytes by task 5065 on cpu 1: mapping_needs_writeback mm/filemap.c:632 [inline] filemap_write_and_wait+0x65/0x150 mm/filemap.c:639 __sync_blockdev+0x5d/0x90 fs/block_dev.c:491 __sync_filesystem fs/sync.c:40 [inline] sync_filesystem fs/sync.c:67 [inline] sync_filesystem+0x186/0x1a0 fs/sync.c:48 generic_shutdown_super+0x6b/0x260 fs/super.c:448 kill_block_super+0x60/0xb0 fs/super.c:1442 deactivate_locked_super+0x64/0xb0 fs/super.c:335 deactivate_super fs/super.c:366 [inline] deactivate_super+0xca/0xe0 fs/super.c:362 cleanup_mnt+0x27f/0x330 fs/namespace.c:1102 __cleanup_mnt+0x1f/0x30 fs/namespace.c:1109 task_work_run+0xf6/0x130 kernel/task_work.c:113 get_signal+0x12c3/0x1320 kernel/signal.c:2528 do_signal+0x2f/0x6c0 arch/x86/kernel/signal.c:815 exit_to_usermode_loop+0x250/0x2c0 arch/x86/entry/common.c:160 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath arch/x86/entry/common.c:278 [inline] do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff888128dfd2e8 of 8 bytes by task 5153 on cpu 0: __add_to_page_cache_locked+0x298/0x780 mm/filemap.c:890 add_to_page_cache_lru+0xc4/0x260 mm/filemap.c:943 mpage_readpages+0x263/0x3c0 fs/mpage.c:399 blkdev_readpages+0x36/0x50 fs/block_dev.c:620 read_pages+0xa2/0x2d0 mm/readahead.c:126 __do_page_cache_readahead+0x353/0x390 mm/readahead.c:212 force_page_cache_readahead+0x13a/0x1f0 mm/readahead.c:243 page_cache_sync_readahead+0x1cf/0x1e0 mm/readahead.c:522 generic_file_buffered_read mm/filemap.c:2051 [inline] generic_file_read_iter+0xeb6/0x1440 mm/filemap.c:2324 blkdev_read_iter+0xb2/0xe0 fs/block_dev.c:2039 call_read_iter include/linux/fs.h:1896 [inline] new_sync_read+0x389/0x4f0 fs/read_write.c:414 __vfs_read+0xb1/0xc0 fs/read_write.c:427 vfs_read fs/read_write.c:461 [inline] vfs_read+0x143/0x2c0 fs/read_write.c:446 ksys_read+0xd5/0x1b0 fs/read_write.c:587 __do_sys_read fs/read_write.c:597 [inline] __se_sys_read fs/read_write.c:595 [inline] __x64_sys_read+0x4c/0x60 fs/read_write.c:595 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 5153 Comm: blkid Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================