================================================================== BUG: KCSAN: data-race in __add_to_page_cache_locked / filemap_write_and_wait_range write to 0xffff8881010afc68 of 8 bytes by task 423 on cpu 0: __add_to_page_cache_locked+0x276/0x4f0 mm/filemap.c:931 add_to_page_cache_lru+0xa0/0x1b0 mm/filemap.c:984 page_cache_ra_unbounded+0x274/0x430 mm/readahead.c:222 do_page_cache_ra mm/readahead.c:269 [inline] force_page_cache_ra+0x256/0x290 mm/readahead.c:301 page_cache_sync_ra+0xcc/0xe0 mm/readahead.c:575 page_cache_sync_readahead include/linux/pagemap.h:883 [inline] filemap_get_pages mm/filemap.c:2545 [inline] filemap_read+0x3ad/0x1220 mm/filemap.c:2628 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2779 blkdev_read_iter+0xb9/0xf0 block/fops.c:545 call_read_iter include/linux/fs.h:2157 [inline] new_sync_read fs/read_write.c:404 [inline] vfs_read+0x66c/0x750 fs/read_write.c:485 ksys_read+0xd9/0x190 fs/read_write.c:623 __do_sys_read fs/read_write.c:633 [inline] __se_sys_read fs/read_write.c:631 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:631 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff8881010afc68 of 8 bytes by task 1126 on cpu 1: mapping_needs_writeback mm/filemap.c:639 [inline] filemap_write_and_wait_range+0x36/0x3c0 mm/filemap.c:703 filemap_write_and_wait include/linux/fs.h:2865 [inline] __sync_blockdev block/bdev.c:193 [inline] sync_blockdev+0x3e/0x50 block/bdev.c:202 kill_block_super+0x52/0x90 fs/super.c:1396 deactivate_locked_super+0x65/0xd0 fs/super.c:335 deactivate_super+0x85/0x90 fs/super.c:366 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1137 __cleanup_mnt+0x15/0x20 fs/namespace.c:1144 task_work_run+0xae/0x130 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300 do_syscall_64+0x50/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x000000000000003f -> 0x0000000000000040 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1126 Comm: syz-executor.4 Not tainted 5.15.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================