================================================================== BUG: KCSAN: data-race in shmem_fallocate / shmem_fault write to 0xffff88814111e4b0 of 8 bytes by task 8839 on cpu 1: shmem_fallocate+0x24a/0x870 mm/shmem.c:3057 vfs_fallocate+0x378/0x3e0 fs/open.c:324 madvise_remove mm/madvise.c:1011 [inline] madvise_vma_behavior mm/madvise.c:1035 [inline] madvise_walk_vmas mm/madvise.c:1270 [inline] do_madvise+0x7a9/0x2970 mm/madvise.c:1450 __do_sys_madvise mm/madvise.c:1463 [inline] __se_sys_madvise mm/madvise.c:1461 [inline] __x64_sys_madvise+0x60/0x70 mm/madvise.c:1461 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 0xffff88814111e4b0 of 8 bytes by task 8823 on cpu 0: shmem_fault+0x9f/0x430 mm/shmem.c:2185 __do_fault mm/memory.c:4204 [inline] do_shared_fault mm/memory.c:4635 [inline] do_fault mm/memory.c:4709 [inline] do_pte_missing mm/memory.c:3669 [inline] handle_pte_fault mm/memory.c:4978 [inline] __handle_mm_fault mm/memory.c:5119 [inline] handle_mm_fault+0x170f/0x2cc0 mm/memory.c:5284 do_user_addr_fault arch/x86/mm/fault.c:1413 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x2f7/0x6c0 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 rep_movs_alternative+0x4a/0x70 arch/x86/lib/copy_user_64.S:65 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:133 [inline] copyout lib/iov_iter.c:168 [inline] _copy_to_iter+0x13c/0x950 lib/iov_iter.c:316 copy_to_iter include/linux/uio.h:201 [inline] get_random_bytes_user+0x112/0x260 drivers/char/random.c:451 __do_sys_getrandom drivers/char/random.c:1391 [inline] __se_sys_getrandom drivers/char/random.c:1364 [inline] __x64_sys_getrandom+0xcd/0x1a0 drivers/char/random.c:1364 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: 0x0000000000000000 -> 0xffffc90003623cd8 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 8823 Comm: syz-executor.1 Not tainted 6.6.0-rc4-syzkaller-00229-g82714078aee4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 ==================================================================