syzbot


INFO: rcu detected stall in kvm_vcpu_ioctl
Status: closed as invalid on 2022/02/08 10:48
Reported-by: syzbot+e9b1e8f574404b6e4ed3@syzkaller.appspotmail.com
First crash: 1357d, last: 177d

Cause bisection: failed (bisect log)

Fix bisection: fixed by (bisect log) [no-op commit]:
commit 5ffb90b39334c857ce365cb48fbc7486fb817b45
Author: David Hildenbrand <david@redhat.com>
Date: Tue Mar 5 23:47:21 2019 +0000

  m68k/mm: use __ClearPageReserved()

duplicates (15):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
INFO: rcu detected stall in kvm_arch_vcpu_ioctl_run syz 39 1355d 1354d 0/22 closed as dup on 2018/09/11 07:35
INFO: rcu detected stall in __check_object_size 1 1357d 1354d 0/22 closed as dup on 2018/09/11 09:27
INFO: rcu detected stall in kvm_mmu_unprotect_page syz 2 1356d 1355d 0/22 closed as dup on 2018/09/11 07:36
INFO: rcu detected stall in x86_decode_insn 2 1355d 1354d 0/22 closed as dup on 2018/09/11 09:32
INFO: rcu detected stall in kvm_vcpu_gfn_to_memslot 2 1356d 1354d 0/22 closed as dup on 2018/09/11 09:31
INFO: rcu detected stall in __kvm_read_guest_page 1 1357d 1354d 0/22 closed as dup on 2018/09/11 09:31
INFO: rcu detected stall in handle_cr 2 1355d 1354d 0/22 closed as dup on 2018/09/11 09:32
INFO: rcu detected stall in do_divide_error 2 1356d 1355d 0/22 closed as dup on 2018/09/11 09:35
INFO: rcu detected stall in handle_ept_violation 1 1357d 1354d 0/22 closed as dup on 2018/09/11 09:28
INFO: rcu detected stall in vmx_get_cpl 1 1356d 1355d 0/22 closed as dup on 2018/09/11 09:34
INFO: rcu detected stall in tdp_page_fault 5 1355d 1355d 0/22 closed as dup on 2018/09/11 09:34
INFO: rcu detected stall in bsearch 1 1355d 1355d 0/22 closed as dup on 2018/09/11 09:33
INFO: rcu detected stall in vmx_handle_exit 5 1355d 1354d 0/22 closed as dup on 2018/09/11 09:31
INFO: rcu detected stall in handle_abnormal_pfn 1 1355d 1355d 0/22 closed as dup on 2018/09/11 09:35
INFO: rcu detected stall in x86_emulate_instruction 1 1355d 1354d 0/22 closed as dup on 2018/09/11 09:32
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: rcu detected stall in kvm_vcpu_ioctl C error 46 212d 867d 0/1 upstream: reported C repro on 2020/01/10 19:56
linux-4.14 INFO: rcu detected stall in kvm_vcpu_ioctl C error 12 768d 926d 0/1 upstream: reported C repro on 2019/11/13 08:08
linux-4.19 BUG: soft lockup in kvm_vcpu_ioctl C error 2 390d 393d 0/1 upstream: reported C repro on 2021/04/28 21:34
Patch testing requests:
Created Duration User Patch Repo Result
2020/09/15 05:03 12m brookebasile@gmail.com upstream report log

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
	(detected by 1, t=10502 jiffies, g=6477, q=15)
rcu: All QSes seen, last rcu_preempt kthread activity 10502 (4294978624-4294968122), jiffies_till_next_fqs=1, root ->qsmask 0x0
rcu: rcu_preempt kthread starved for 10502 jiffies! g6477 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:R  running task     stack:26576 pid:   14 ppid:     2 flags:0x00004000
Call Trace:
 context_switch kernel/sched/core.c:4940 [inline]
 __schedule+0xb72/0x1460 kernel/sched/core.c:6287
 schedule+0x14b/0x210 kernel/sched/core.c:6366
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1881
 rcu_gp_fqs_loop+0x1fd/0x770 kernel/rcu/tree.c:1957
 rcu_gp_kthread+0xa5/0x350 kernel/rcu/tree.c:2130
 kthread+0x453/0x480 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30
rcu: Stack dump where RCU GP kthread last ran:
NMI backtrace for cpu 1
CPU: 1 PID: 6512 Comm: syz-executor558 Not tainted 5.15.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x45f/0x490 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_check_gp_kthread_starvation+0x1ff/0x270 kernel/rcu/tree_stall.h:481
 print_other_cpu_stall kernel/rcu/tree_stall.h:586 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:729 [inline]
 rcu_pending kernel/rcu/tree.c:3880 [inline]
 rcu_sched_clock_irq+0x23d5/0x2bc0 kernel/rcu/tree.c:2599
 update_process_times+0x197/0x200 kernel/time/timer.c:1785
 tick_sched_handle kernel/time/tick-sched.c:226 [inline]
 tick_sched_timer+0x27d/0x420 kernel/time/tick-sched.c:1421
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x4cb/0xa60 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x270 arch/x86/kernel/apic/apic.c:1103
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 asm_sysvec_apic_timer_interrupt+0x12/0x20
RIP: 0010:handle_mm_fault+0x1fdf/0x2560
Code: e8 66 b6 13 00 41 89 c6 89 c6 81 e6 00 08 00 00 31 ff e8 f4 47 c6 ff 44 89 f0 25 00 08 00 00 0f 85 0b 02 00 00 e8 d1 43 c6 ff <8b> 84 24 94 00 00 00 85 c0 75 0a e8 c1 43 c6 ff e9 9f 00 00 00 4d
RSP: 0018:ffffc900011ee800 EFLAGS: 00000293
RAX: ffffffff81bd6e63 RBX: 1ffff9200023dd34 RCX: ffff88801bd79c80
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: ffffc900011eea30 R08: ffffffff81be704f R09: ffffed10173a64a2
R10: ffffed10173a64a2 R11: 0000000000000000 R12: ffff88801bd79c80
R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000000
 faultin_page mm/gup.c:937 [inline]
 __get_user_pages+0x4da/0x11f0 mm/gup.c:1158
 __get_user_pages_locked mm/gup.c:1343 [inline]
 get_user_pages_unlocked+0x224/0x8f0 mm/gup.c:2067
 hva_to_pfn_slow+0x128/0x510 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2269
 hva_to_pfn+0x233/0xbe0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2401
 kvm_faultin_pfn+0x366/0x900 arch/x86/kvm/mmu/mmu.c:3942
 direct_page_fault+0x11f0/0x2b00 arch/x86/kvm/mmu/mmu.c:3992
 kvm_mmu_do_page_fault arch/x86/kvm/mmu.h:127 [inline]
 kvm_mmu_page_fault+0x1a3/0x13d0 arch/x86/kvm/mmu/mmu.c:5287
 vmx_handle_exit+0x26/0x160 arch/x86/kvm/vmx/vmx.c:6055
 vcpu_enter_guest+0x6aa9/0x9650 arch/x86/kvm/x86.c:9752
 vcpu_run+0x4d3/0xe50 arch/x86/kvm/x86.c:9819
 kvm_arch_vcpu_ioctl_run+0x5c0/0xdb0 arch/x86/kvm/x86.c:10051
 kvm_vcpu_ioctl+0x894/0xe20 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3779
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f5e59994139
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd4243dee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007f5e59994139
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5e59957910
R13: 0000000000000000 R14: 00007ffd4243df20 R15: 00007ffd4243df10
----------------
Code disassembly (best guess):
   0:	e8 66 b6 13 00       	callq  0x13b66b
   5:	41 89 c6             	mov    %eax,%r14d
   8:	89 c6                	mov    %eax,%esi
   a:	81 e6 00 08 00 00    	and    $0x800,%esi
  10:	31 ff                	xor    %edi,%edi
  12:	e8 f4 47 c6 ff       	callq  0xffc6480b
  17:	44 89 f0             	mov    %r14d,%eax
  1a:	25 00 08 00 00       	and    $0x800,%eax
  1f:	0f 85 0b 02 00 00    	jne    0x230
  25:	e8 d1 43 c6 ff       	callq  0xffc643fb
* 2a:	8b 84 24 94 00 00 00 	mov    0x94(%rsp),%eax <-- trapping instruction
  31:	85 c0                	test   %eax,%eax
  33:	75 0a                	jne    0x3f
  35:	e8 c1 43 c6 ff       	callq  0xffc643fb
  3a:	e9 9f 00 00 00       	jmpq   0xde
  3f:	4d                   	rex.WRB

Crashes (251):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2021/10/23 17:07 upstream 9c0c4d24ac00 282f03fb .config log report syz C INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-linux-next-kasan-gce-root 2021/09/14 21:43 linux-next 815c5020b5ab 07e953c1 .config log report syz C INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-linux-next-kasan-gce-root 2020/03/20 06:32 linux-next 770fbb32d34e 2c31c529 .config log report syz C
ci-upstream-kasan-gce-smack-root 2018/09/14 17:47 upstream a06b0c82a049 a343a400 .config log report syz
ci-upstream-linux-next-kasan-gce-root 2018/10/21 16:58 linux-next 8c60c36d0b8c ecb386fe .config log report syz
ci-upstream-linux-next-kasan-gce-root 2018/09/14 03:39 linux-next f8dcd0279214 19e9088b .config log report syz
ci-upstream-kasan-gce-selinux-root 2021/12/01 11:10 upstream 58e1100fdc59 5fa3eacc .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-smack-root 2021/11/03 04:11 upstream bfc484fe6abb 17f3edd2 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/11/02 10:49 upstream e66435936756 098b5d53 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/11/02 09:11 upstream e66435936756 098b5d53 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/11/02 06:20 upstream e66435936756 098b5d53 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/11/02 04:08 upstream e66435936756 098b5d53 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-smack-root 2021/11/01 12:56 upstream 8bb7eca972ad 098b5d53 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-smack-root 2021/10/31 18:17 upstream 180eca540ae0 098b5d53 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-smack-root 2021/10/31 12:06 upstream 180eca540ae0 098b5d53 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/30 21:08 upstream 119c85055d86 098b5d53 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-smack-root 2021/10/30 18:33 upstream 119c85055d86 098b5d53 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/30 14:48 upstream a379fbbcb88b 098b5d53 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/30 10:20 upstream a379fbbcb88b 098b5d53 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-smack-root 2021/10/29 00:21 upstream 411a44c24a56 be531bb4 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-smack-root 2021/10/28 14:03 upstream 1fc596a56b33 be531bb4 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-smack-root 2021/10/28 04:19 upstream 1fc596a56b33 be531bb4 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-smack-root 2021/10/27 13:43 upstream d25f27432f80 373bf66b .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-smack-root 2021/10/26 02:25 upstream c2b43854aad9 c1132b49 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/25 22:35 upstream c2b43854aad9 4f0000ee .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/24 22:20 upstream 6c62666d8879 282f03fb .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/24 11:35 upstream 9c0c4d24ac00 282f03fb .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/23 15:27 upstream 9c0c4d24ac00 282f03fb .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/22 14:52 upstream 2f111a6fd5b5 55f90bc6 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/22 07:26 upstream 2f111a6fd5b5 55f90bc6 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/22 00:05 upstream 2f111a6fd5b5 c5cb7da8 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-smack-root 2021/10/21 14:56 upstream 2f111a6fd5b5 c5cb7da8 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/21 00:58 upstream 8e37395c3a5d f111d03b .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-smack-root 2021/10/20 22:29 upstream 8e37395c3a5d f111d03b .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/20 10:09 upstream d9abdee5fd5a 418a00eb .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/20 08:05 upstream d9abdee5fd5a 466b7db1 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/16 21:16 upstream 304040fb4909 0c5d9412 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-smack-root 2021/10/15 07:30 upstream ec681c53f8d2 aab7690b .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/14 17:28 upstream 26d657410983 5462d470 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/12 11:56 upstream fa5878760579 838e7e2c .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/12 04:25 upstream 64570fbc14f8 838e7e2c .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-selinux-root 2021/10/12 01:11 upstream 64570fbc14f8 838e7e2c .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-smack-root 2021/10/09 11:35 upstream 5d6ab0bb408f 838e7e2c .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-linux-next-kasan-gce-root 2021/10/17 10:59 linux-next 7c832d2f9b95 0c5d9412 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-linux-next-kasan-gce-root 2021/10/17 05:30 linux-next 7c832d2f9b95 0c5d9412 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-linux-next-kasan-gce-root 2021/10/16 23:49 linux-next 7c832d2f9b95 0c5d9412 .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-linux-next-kasan-gce-root 2021/10/11 19:44 linux-next d3134eb5de85 838e7e2c .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-linux-next-kasan-gce-root 2021/10/11 08:39 linux-next d3134eb5de85 838e7e2c .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-linux-next-kasan-gce-root 2021/10/09 13:17 linux-next 683f29b781ae 838e7e2c .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-linux-next-kasan-gce-root 2021/10/08 03:11 linux-next f8dc23b3dc0c efe0f24d .config log report info INFO: rcu detected stall in kvm_vcpu_ioctl
ci-upstream-kasan-gce-root 2020/07/07 22:48 upstream 7cc2a8ea1048 51095195 .config log report
ci-upstream-kasan-gce-smack-root 2020/05/23 20:06 upstream 444565650a5f 9682898d .config log report
ci-upstream-kasan-gce 2019/01/23 17:45 upstream 333478a7eb21 7cf3249c .config log report
ci-upstream-kasan-gce-selinux-root 2018/09/08 01:57 upstream 3d0e7a9e00fd 6b5120a4 .config log report