================================================================== BUG: KCSAN: data-race in acct_account_cputime / mmap_region write to 0xffff8881394a7b80 of 8 bytes by task 21173 on cpu 1: vm_stat_account mm/mmap.c:3359 [inline] mmap_region+0x6f7/0x1400 mm/mmap.c:1868 do_mmap+0x781/0xc20 mm/mmap.c:1578 vm_mmap_pgoff+0xf9/0x1d0 mm/util.c:519 ksys_mmap_pgoff+0x2a8/0x380 mm/mmap.c:1629 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff8881394a7b80 of 8 bytes by interrupt on cpu 0: __acct_update_integrals kernel/tsacct.c:140 [inline] acct_account_cputime+0x15a/0x1a0 kernel/tsacct.c:164 update_process_times+0x5c/0x150 kernel/time/timer.c:1783 tick_sched_handle kernel/time/tick-sched.c:226 [inline] tick_sched_timer+0x191/0x210 kernel/time/tick-sched.c:1421 __run_hrtimer+0x160/0x480 kernel/time/hrtimer.c:1685 __hrtimer_run_queues kernel/time/hrtimer.c:1749 [inline] hrtimer_interrupt+0x380/0xaf0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline] __sysvec_apic_timer_interrupt+0x6f/0x1c0 arch/x86/kernel/apic/apic.c:1103 sysvec_apic_timer_interrupt+0x64/0x80 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 kcsan_setup_watchpoint+0x8b/0x3e0 kernel/kcsan/core.c:437 pv_vcpu_is_preempted arch/x86/include/asm/paravirt.h:607 [inline] vcpu_is_preempted arch/x86/include/asm/qspinlock.h:62 [inline] owner_on_cpu kernel/locking/rwsem.c:605 [inline] rwsem_spin_on_owner+0xd6/0x160 kernel/locking/rwsem.c:700 rwsem_optimistic_spin kernel/locking/rwsem.c:759 [inline] rwsem_down_write_slowpath kernel/locking/rwsem.c:1026 [inline] __down_write_common+0x5c3/0x810 kernel/locking/rwsem.c:1262 __down_write_killable kernel/locking/rwsem.c:1276 [inline] down_write_killable+0x16/0x30 kernel/locking/rwsem.c:1528 mmap_write_lock_killable include/linux/mmap_lock.h:87 [inline] do_mprotect_pkey+0x139/0x6b0 mm/mprotect.c:551 __do_sys_mprotect mm/mprotect.c:662 [inline] __se_sys_mprotect mm/mprotect.c:659 [inline] __x64_sys_mprotect+0x44/0x50 mm/mprotect.c:659 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x0000000000004b32 -> 0x0000000000005332 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 21172 Comm: syz-executor.4 Not tainted 5.14.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== sd 0:0:1:0: tag#7827 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK cmd_age=0s sd 0:0:1:0: tag#7827 CDB: opcode=0xe5 (vendor) sd 0:0:1:0: tag#7827 CDB[00]: e5 f4 32 73 2f 4e 09 6d 26 e2 c7 35 d1 35 12 1c sd 0:0:1:0: tag#7827 CDB[10]: 92 1b da 40 b8 58 5b a8 d4 7d 34 f3 90 4c f1 2d sd 0:0:1:0: tag#7827 CDB[20]: ba sd 0:0:1:0: tag#7829 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK cmd_age=0s sd 0:0:1:0: tag#7829 CDB: opcode=0xe5 (vendor) sd 0:0:1:0: tag#7829 CDB[00]: e5 f4 32 73 2f 4e 09 6d 26 e2 c7 35 d1 35 12 1c sd 0:0:1:0: tag#7829 CDB[10]: 92 1b da 40 b8 58 5b a8 d4 7d 34 f3 90 4c f1 2d sd 0:0:1:0: tag#7829 CDB[20]: ba sd 0:0:1:0: tag#7834 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK cmd_age=0s sd 0:0:1:0: tag#7834 CDB: opcode=0xe5 (vendor) sd 0:0:1:0: tag#7834 CDB[00]: e5 f4 32 73 2f 4e 09 6d 26 e2 c7 35 d1 35 12 1c sd 0:0:1:0: tag#7834 CDB[10]: 92 1b da 40 b8 58 5b a8 d4 7d 34 f3 90 4c f1 2d sd 0:0:1:0: tag#7834 CDB[20]: ba sd 0:0:1:0: tag#7835 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK cmd_age=0s sd 0:0:1:0: tag#7835 CDB: opcode=0xe5 (vendor) sd 0:0:1:0: tag#7835 CDB[00]: e5 f4 32 73 2f 4e 09 6d 26 e2 c7 35 d1 35 12 1c sd 0:0:1:0: tag#7835 CDB[10]: 92 1b da 40 b8 58 5b a8 d4 7d 34 f3 90 4c f1 2d sd 0:0:1:0: tag#7835 CDB[20]: ba