syzbot


KCSAN: data-race in __acct_update_integrals / vm_stat_account

Status: closed as invalid on 2019/11/19 13:24
Subsystems: kernel
[Documentation on labels]
First crash: 1636d, last: 1636d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __acct_update_integrals / vm_stat_account (2) kernel 5 1561d 1608d 0/26 auto-closed as invalid on 2020/03/25 04:11

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __acct_update_integrals / vm_stat_account

read to 0xffff8880ba6bcb00 of 8 bytes by interrupt on cpu 1:
 __acct_update_integrals+0x1b1/0x1e0 kernel/tsacct.c:137
 acct_account_cputime+0x4e/0x60 kernel/tsacct.c:161
 account_system_index_time+0xa2/0xb0 kernel/sched/cputime.c:175
 irqtime_account_process_tick.isra.0+0x16a/0x1b0 kernel/sched/cputime.c:389
 account_process_tick+0x14e/0x190 kernel/sched/cputime.c:484
 update_process_times+0x29/0x80 kernel/time/timer.c:1724
 tick_sched_handle+0x75/0x100 kernel/time/tick-sched.c:167
 tick_sched_timer+0x58/0xe0 kernel/time/tick-sched.c:1299
 __run_hrtimer kernel/time/hrtimer.c:1514 [inline]
 __hrtimer_run_queues+0x288/0x600 kernel/time/hrtimer.c:1576
 hrtimer_interrupt+0x22a/0x480 kernel/time/hrtimer.c:1638
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1110 [inline]
 smp_apic_timer_interrupt+0xdc/0x280 arch/x86/kernel/apic/apic.c:1135
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:830
 arch_local_irq_enable arch/x86/include/asm/paravirt.h:766 [inline]
 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline]
 _raw_spin_unlock_irq+0x4e/0x80 kernel/locking/spinlock.c:199
 finish_lock_switch kernel/sched/core.c:3123 [inline]
 finish_task_switch+0x7b/0x260 kernel/sched/core.c:3223

write to 0xffff8880ba6bcb00 of 8 bytes by task 16869 on cpu 0:
 vm_stat_account+0x45/0x150 mm/mmap.c:3324
 mprotect_fixup+0x311/0x510 mm/mprotect.c:439
 do_mprotect_pkey+0x3eb/0x660 mm/mprotect.c:553
 __do_sys_mprotect mm/mprotect.c:578 [inline]
 __se_sys_mprotect mm/mprotect.c:575 [inline]
 __x64_sys_mprotect+0x51/0x70 mm/mprotect.c:575
 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: 0 PID: 16869 Comm: syz-executor.5 Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/01 19:04 https://github.com/google/ktsan.git kcsan 05f2236801fe 997ccc67 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.