================================================================== BUG: KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range read-write to 0xffff888106a31e20 of 8 bytes by task 3760 on cpu 1: __filemap_add_folio+0x439/0x710 mm/filemap.c:918 filemap_add_folio+0x9c/0x1b0 mm/filemap.c:970 page_cache_ra_unbounded+0x148/0x2e0 mm/readahead.c:252 do_page_cache_ra mm/readahead.c:303 [inline] page_cache_ra_order mm/readahead.c:488 [inline] page_cache_async_ra+0x40c/0x420 mm/readahead.c:638 do_async_mmap_readahead mm/filemap.c:3203 [inline] filemap_fault+0x2d3/0xa60 mm/filemap.c:3300 __do_fault+0xb6/0x200 mm/memory.c:4655 do_read_fault mm/memory.c:5061 [inline] do_fault mm/memory.c:5191 [inline] do_pte_missing mm/memory.c:3947 [inline] handle_pte_fault mm/memory.c:5521 [inline] __handle_mm_fault mm/memory.c:5664 [inline] handle_mm_fault+0xe8b/0x2a30 mm/memory.c:5832 faultin_page mm/gup.c:1194 [inline] __get_user_pages+0x499/0x10d0 mm/gup.c:1493 populate_vma_page_range mm/gup.c:1932 [inline] __mm_populate+0x25b/0x3b0 mm/gup.c:2035 mm_populate include/linux/mm.h:3430 [inline] vm_mmap_pgoff+0x1d6/0x290 mm/util.c:593 ksys_mmap_pgoff+0x292/0x340 mm/mmap.c:1514 x64_sys_call+0x1884/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:10 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 0xffff888106a31e20 of 8 bytes by task 3762 on cpu 0: mapping_needs_writeback mm/filemap.c:635 [inline] filemap_write_and_wait_range+0x58/0x1f0 mm/filemap.c:684 ext4_punch_hole+0xc5/0x7e0 fs/ext4/inode.c:3965 ext4_fallocate+0x209/0x1190 fs/ext4/extents.c:4742 vfs_fallocate+0x392/0x3e0 fs/open.c:334 madvise_remove mm/madvise.c:1012 [inline] madvise_vma_behavior mm/madvise.c:1036 [inline] madvise_walk_vmas mm/madvise.c:1271 [inline] do_madvise+0x1177/0x2620 mm/madvise.c:1467 __do_sys_madvise mm/madvise.c:1484 [inline] __se_sys_madvise mm/madvise.c:1482 [inline] __x64_sys_madvise+0x61/0x70 mm/madvise.c:1482 x64_sys_call+0x2320/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:29 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 value changed: 0x00000000000006c0 -> 0x00000000000006c5 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3762 Comm: syz.1.137 Not tainted 6.11.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 ==================================================================