================================================================== BUG: KCSAN: data-race in next_uptodate_page / shmem_write_end write to 0xffff88800aeb60c0 of 8 bytes by task 10075 on cpu 0: i_size_write include/linux/fs.h:872 [inline] shmem_write_end+0x62/0x650 mm/shmem.c:2541 generic_perform_write+0x23e/0x3a0 mm/filemap.c:3586 __generic_file_write_iter+0x15c/0x340 mm/filemap.c:3704 generic_file_write_iter+0x75/0x130 mm/filemap.c:3736 call_write_iter include/linux/fs.h:1977 [inline] do_iter_readv_writev+0x2cb/0x360 fs/read_write.c:740 do_iter_write+0x112/0x4c0 fs/read_write.c:866 vfs_iter_write+0x4c/0x70 fs/read_write.c:907 iter_file_splice_write+0x40a/0x750 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0x80/0xa0 fs/splice.c:936 splice_direct_to_actor+0x345/0x650 fs/splice.c:891 do_splice_direct+0xf5/0x170 fs/splice.c:979 do_sendfile+0x7a6/0xe20 fs/read_write.c:1260 __do_sys_sendfile64 fs/read_write.c:1325 [inline] __se_sys_sendfile64 fs/read_write.c:1311 [inline] __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1311 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff88800aeb60c0 of 8 bytes by task 10097 on cpu 1: i_size_read include/linux/fs.h:850 [inline] next_uptodate_page+0x373/0x780 mm/filemap.c:3061 next_map_page mm/filemap.c:3086 [inline] filemap_map_pages+0x5dc/0x770 mm/filemap.c:3142 do_fault_around mm/memory.c:3918 [inline] do_read_fault+0x217/0x530 mm/memory.c:3932 do_fault mm/memory.c:4065 [inline] handle_pte_fault mm/memory.c:4316 [inline] __handle_mm_fault mm/memory.c:4451 [inline] handle_mm_fault+0x1019/0x1840 mm/memory.c:4549 faultin_page mm/gup.c:850 [inline] __get_user_pages+0xa47/0x1000 mm/gup.c:1069 __get_user_pages_locked mm/gup.c:1255 [inline] __get_user_pages_remote+0x226/0x6e0 mm/gup.c:1722 get_user_pages_remote+0x6f/0xa0 mm/gup.c:1795 uprobe_write_opcode+0xc9/0xd60 kernel/events/uprobes.c:480 set_swbp+0x26/0x30 install_breakpoint+0x224/0x350 kernel/events/uprobes.c:913 uprobe_mmap+0x7cd/0xc70 kernel/events/uprobes.c:1392 mmap_region+0x881/0x1480 mm/mmap.c:1882 do_mmap+0x77d/0xc90 mm/mmap.c:1581 vm_mmap_pgoff+0xf7/0x1d0 mm/util.c:519 ksys_mmap_pgoff+0x2a8/0x380 mm/mmap.c:1632 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 10097 Comm: syz-executor.5 Not tainted 5.12.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================