================================================================== BUG: KCSAN: data-race in osq_lock / osq_lock write to 0xffff88812be2b054 of 4 bytes by task 10281 on cpu 0: osq_lock+0x89/0x2f0 kernel/locking/osq_lock.c:99 rwsem_optimistic_spin+0x5f/0x320 kernel/locking/rwsem.c:800 rwsem_down_write_slowpath+0x109/0x950 kernel/locking/rwsem.c:1150 __down_write kernel/locking/rwsem.c:1392 [inline] down_write+0x88/0x90 kernel/locking/rwsem.c:1535 i_mmap_lock_write include/linux/fs.h:526 [inline] dup_mmap kernel/fork.c:568 [inline] dup_mm+0x4f7/0xba0 kernel/fork.c:1361 copy_mm kernel/fork.c:1417 [inline] copy_process+0x36f3/0x3b50 kernel/fork.c:2012 _do_fork+0xfe/0x6e0 kernel/fork.c:2366 __do_sys_clone kernel/fork.c:2521 [inline] __se_sys_clone kernel/fork.c:2502 [inline] __x64_sys_clone+0x12b/0x160 kernel/fork.c:2502 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88812be2b054 of 4 bytes by task 20606 on cpu 1: osq_lock+0x170/0x2f0 kernel/locking/osq_lock.c:143 rwsem_optimistic_spin+0x5f/0x320 kernel/locking/rwsem.c:800 rwsem_down_write_slowpath+0x109/0x950 kernel/locking/rwsem.c:1150 __down_write kernel/locking/rwsem.c:1392 [inline] down_write+0x88/0x90 kernel/locking/rwsem.c:1535 i_mmap_lock_write include/linux/fs.h:526 [inline] vma_link+0x84/0x130 mm/mmap.c:656 mmap_region+0x8bb/0xd50 mm/mmap.c:1829 do_mmap+0x6d4/0xba0 mm/mmap.c:1577 do_mmap_pgoff include/linux/mm.h:2353 [inline] vm_mmap_pgoff+0x12d/0x190 mm/util.c:496 ksys_mmap_pgoff+0x2d8/0x420 mm/mmap.c:1629 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline] __x64_sys_mmap+0x91/0xc0 arch/x86/kernel/sys_x86_64.c:91 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 20606 Comm: blkid Not tainted 5.4.0-rc6+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================