syzbot


KCSAN: data-race in __do_munmap / acct_account_cputime

Status: auto-closed as invalid on 2021/07/19 08:47
Subsystems: mm
[Documentation on labels]
First crash: 1097d, last: 1040d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __do_munmap / acct_account_cputime (2) mm 6 937d 998d 0/26 auto-closed as invalid on 2021/10/30 20:08

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __do_munmap / acct_account_cputime

write to 0xffff8881079318c0 of 8 bytes by task 30357 on cpu 0:
 vm_stat_account mm/mmap.c:3372 [inline]
 remove_vma_list mm/mmap.c:2658 [inline]
 __do_munmap+0xf94/0x1330 mm/mmap.c:2915
 do_munmap mm/mmap.c:2923 [inline]
 munmap_vma_range mm/mmap.c:604 [inline]
 mmap_region+0x58a/0x13e0 mm/mmap.c:1756
 do_mmap+0x77d/0xc90 mm/mmap.c:1587
 vm_mmap_pgoff+0xf9/0x1d0 mm/util.c:519
 ksys_mmap_pgoff+0x2a8/0x380 mm/mmap.c:1638
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881079318c0 of 8 bytes by interrupt on cpu 1:
 __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:1794
 tick_sched_handle kernel/time/tick-sched.c:226 [inline]
 tick_sched_timer+0x191/0x210 kernel/time/tick-sched.c:1374
 __run_hrtimer+0x160/0x480 kernel/time/hrtimer.c:1537
 __hrtimer_run_queues kernel/time/hrtimer.c:1601 [inline]
 hrtimer_interrupt+0x380/0xaf0 kernel/time/hrtimer.c:1663
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1089 [inline]
 __sysvec_apic_timer_interrupt+0x6f/0x1c0 arch/x86/kernel/apic/apic.c:1106
 sysvec_apic_timer_interrupt+0x64/0x80 arch/x86/kernel/apic/apic.c:1100
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647
 console_unlock+0x8e8/0xb30 kernel/printk/printk.c:2646
 vprintk_emit+0x125/0x3d0 kernel/printk/printk.c:2174
 vprintk_default+0x22/0x30 kernel/printk/printk.c:2185
 vprintk+0x15a/0x170 kernel/printk/printk_safe.c:392
 printk+0x62/0x87 kernel/printk/printk.c:2216
 cgroup1_root_to_use kernel/cgroup/cgroup-v1.c:1174 [inline]
 cgroup1_get_tree+0x771/0x880 kernel/cgroup/cgroup-v1.c:1216
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1498
 do_new_mount fs/namespace.c:2905 [inline]
 path_mount+0x11d4/0x1ce0 fs/namespace.c:3235
 do_mount fs/namespace.c:3248 [inline]
 __do_sys_mount fs/namespace.c:3456 [inline]
 __se_sys_mount+0x23d/0x2e0 fs/namespace.c:3433
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3433
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000005353 -> 0x0000000000004b53

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 30335 Comm: syz-executor.4 Not tainted 5.13.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/14 08:41 upstream e4e453434a19 1ba81399 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __do_munmap / acct_account_cputime
2021/05/18 05:31 upstream 8ac91e6c6033 a343ba6b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __do_munmap / acct_account_cputime
2021/05/14 06:43 upstream 315d99318179 8bdd5343 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __do_munmap / acct_account_cputime
2021/04/30 23:48 upstream 65c61de9d090 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __do_munmap / acct_account_cputime
2021/04/18 07:53 upstream 194cf4825638 7e2b734b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __do_munmap / acct_account_cputime
* Struck through repros no longer work on HEAD.