syzbot


KCSAN: data-race in acct_account_cputime / vm_stat_account

Status: auto-closed as invalid on 2020/11/30 10:09
Subsystems: mm
[Documentation on labels]
First crash: 1278d, last: 1278d

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

read-write to 0xffff88800afa5680 of 8 bytes by task 497 on cpu 1:
 vm_stat_account+0x2d/0xd0 mm/mmap.c:3386
 mprotect_fixup+0x3fb/0x580 mm/mprotect.c:500
 do_mprotect_pkey+0x4c9/0x600 mm/mprotect.c:619
 __do_sys_mprotect mm/mprotect.c:644 [inline]
 __se_sys_mprotect mm/mprotect.c:641 [inline]
 __x64_sys_mprotect+0x44/0x50 mm/mprotect.c:641
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88800afa5680 of 8 bytes by interrupt on cpu 0:
 __acct_update_integrals kernel/tsacct.c:140 [inline]
 acct_account_cputime+0x143/0x180 kernel/tsacct.c:164
 update_process_times+0x5c/0x150 kernel/time/timer.c:1712
 tick_sched_handle kernel/time/tick-sched.c:176 [inline]
 tick_sched_timer+0x183/0x210 kernel/time/tick-sched.c:1328
 __run_hrtimer+0x133/0x420 kernel/time/hrtimer.c:1524
 __hrtimer_run_queues kernel/time/hrtimer.c:1588 [inline]
 hrtimer_interrupt+0x36e/0xa10 kernel/time/hrtimer.c:1650
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1080 [inline]
 __sysvec_apic_timer_interrupt+0x6f/0x200 arch/x86/kernel/apic/apic.c:1097
 asm_call_irq_on_stack+0xf/0x20
 __run_sysvec_on_irqstack arch/x86/include/asm/irq_stack.h:37 [inline]
 run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:89 [inline]
 sysvec_apic_timer_interrupt+0x52/0x90 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:631
 native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline]
 arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline]
 kcsan_setup_watchpoint+0x1ec/0x4d0 kernel/kcsan/core.c:591
 __should_failslab+0x13/0x90 mm/failslab.c:20
 should_failslab+0x5/0x20 mm/slab_common.c:1194
 slab_pre_alloc_hook+0x20/0xb0 mm/slab.h:508
 slab_alloc mm/slab.c:3300 [inline]
 kmem_cache_alloc+0x4d/0x280 mm/slab.c:3484
 kmem_cache_zalloc include/linux/slab.h:654 [inline]
 lsm_inode_alloc security/security.c:589 [inline]
 security_inode_alloc+0x2e/0x170 security/security.c:972
 inode_init_always+0x211/0x430 fs/inode.c:171
 alloc_inode fs/inode.c:241 [inline]
 new_inode_pseudo+0x6f/0x1a0 fs/inode.c:930
 sock_alloc net/socket.c:573 [inline]
 __sock_create+0x122/0x4f0 net/socket.c:1391
 sock_create net/socket.c:1478 [inline]
 __sys_socket+0xb0/0x200 net/socket.c:1520
 __do_sys_socket net/socket.c:1529 [inline]
 __se_sys_socket net/socket.c:1527 [inline]
 __x64_sys_socket+0x3b/0x50 net/socket.c:1527
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 513 Comm: syz-executor.1 Not tainted 5.10.0-rc1-syzkaller #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
2020/10/26 10:07 upstream 3650b228f83a a7aac492 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.