================================================================== BUG: KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range read-write to 0xffff8881004c1830 of 8 bytes by task 4213 on cpu 0: __filemap_add_folio+0x430/0x6f0 mm/filemap.c:910 filemap_add_folio+0x9c/0x1b0 mm/filemap.c:962 page_cache_ra_unbounded+0x177/0x310 mm/readahead.c:273 do_page_cache_ra mm/readahead.c:325 [inline] force_page_cache_ra mm/readahead.c:354 [inline] page_cache_sync_ra+0x252/0x670 mm/readahead.c:566 page_cache_sync_readahead include/linux/pagemap.h:1397 [inline] filemap_get_pages+0x2c1/0x10e0 mm/filemap.c:2537 filemap_read+0x221/0x6a0 mm/filemap.c:2637 blkdev_read_iter+0x20e/0x2c0 block/fops.c:770 new_sync_read fs/read_write.c:484 [inline] vfs_read+0x5dc/0x700 fs/read_write.c:565 ksys_read+0xe8/0x1b0 fs/read_write.c:708 __do_sys_read fs/read_write.c:717 [inline] __se_sys_read fs/read_write.c:715 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:715 x64_sys_call+0x2874/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:1 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 0xffff8881004c1830 of 8 bytes by task 3311 on cpu 1: mapping_needs_writeback mm/filemap.c:625 [inline] filemap_write_and_wait_range+0x59/0x360 mm/filemap.c:674 filemap_write_and_wait include/linux/pagemap.h:68 [inline] sync_blockdev+0x35/0x50 block/bdev.c:218 sync_filesystem+0x162/0x190 fs/sync.c:70 generic_shutdown_super+0x46/0x220 fs/super.c:621 kill_block_super+0x2a/0x70 fs/super.c:1710 deactivate_locked_super+0x7d/0x1c0 fs/super.c:473 deactivate_super+0x9f/0xb0 fs/super.c:506 cleanup_mnt+0x268/0x2e0 fs/namespace.c:1373 __cleanup_mnt+0x19/0x20 fs/namespace.c:1380 task_work_run+0x13a/0x1a0 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xa8/0x120 kernel/entry/common.c:218 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x0000000000000011 -> 0x0000000000000012 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 3311 Comm: syz-executor Tainted: G W 6.13.0-rc5-syzkaller-00198-g9244696b34f2 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================