syzbot


INFO: rcu detected stall in kvm_vm_ioctl

Status: auto-obsoleted due to no activity on 2023/09/23 08:44
Subsystems: kernel
[Documentation on labels]
First crash: 608d, last: 608d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in kvm_vm_ioctl (2) kernel 2 160d 175d 0/28 auto-obsoleted due to no activity on 2025/01/13 09:22

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 1-...D } 2631 jiffies s: 26165 root: 0x2/.
rcu: blocking rcu_node structures (internal RCU debug):
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 13882 Comm: syz-executor.3 Not tainted 6.5.0-rc3-next-20230725-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:arch_atomic_read arch/x86/include/asm/atomic.h:23 [inline]
RIP: 0010:raw_atomic_read include/linux/atomic/atomic-arch-fallback.h:444 [inline]
RIP: 0010:rcu_dynticks_curr_cpu_in_eqs include/linux/context_tracking.h:122 [inline]
RIP: 0010:rcu_is_watching+0x5c/0xb0 kernel/rcu/tree.c:699
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 75 54 48 03 1c ed 00 9a 3a 8c 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 0f b6 14 02 <48> 89 d8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 1c 8b 03 c1 e8 02
RSP: 0018:ffffc900001e0c20 EFLAGS: 00000802
RAX: dffffc0000000000 RBX: ffff8880b9936d68 RCX: ffffffff8167e487
RDX: 0000000000000000 RSI: ffffffff8ac87480 RDI: ffffffff8c3a9a08
RBP: 0000000000000001 R08: 0000000000000000 R09: fffffbfff1d58962
R10: ffffffff8eac4b17 R11: 0000000000094000 R12: 0000000000000001
R13: 0000000000000000 R14: ffffffff9230aca0 R15: 0000000000000000
FS:  00007f3a7e6456c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30644000 CR3: 0000000077779000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 trace_lock_acquire include/trace/events/lock.h:24 [inline]
 lock_acquire+0x464/0x510 kernel/locking/lockdep.c:5732
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x3a/0x50 kernel/locking/spinlock.c:162
 debug_object_deactivate lib/debugobjects.c:783 [inline]
 debug_object_deactivate+0x113/0x320 lib/debugobjects.c:771
 debug_hrtimer_deactivate kernel/time/hrtimer.c:427 [inline]
 debug_deactivate kernel/time/hrtimer.c:483 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1656 [inline]
 __hrtimer_run_queues+0x470/0xc10 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1098 [inline]
 __sysvec_apic_timer_interrupt+0x14a/0x430 arch/x86/kernel/apic/apic.c:1115
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1109
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:__insn_get_emulate_prefix arch/x86/lib/insn.c:91 [inline]
RIP: 0010:insn_get_emulate_prefix arch/x86/lib/insn.c:106 [inline]
RIP: 0010:insn_get_prefixes+0x11b/0x1120 arch/x86/lib/insn.c:134
Code: 4c 89 e0 4c 89 e2 48 c1 e8 03 83 e2 07 42 0f b6 04 38 38 d0 7f 08 84 c0 0f 85 54 0e 00 00 48 8d bd 60 e6 b0 8b 41 0f b6 1c 24 <48> 89 fa 48 89 f9 48 c1 ea 03 83 e1 07 42 0f b6 14 3a 38 ca 7f 08
RSP: 0018:ffffc90005be7708 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 000000000000000f RCX: ffffc900066a9000
RDX: 0000000000000006 RSI: ffffffff8a2b5831 RDI: ffffffff8bb0e660
RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000005
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8123c14e
R13: ffffffff8123c14e R14: ffffffff8123c14f R15: dffffc0000000000
 insn_get_opcode+0x462/0xa30 arch/x86/lib/insn.c:272
 insn_get_modrm+0x30e/0x730 arch/x86/lib/insn.c:343
 insn_get_sib+0x1ad/0x320 arch/x86/lib/insn.c:421
 insn_get_displacement+0x23a/0x680 arch/x86/lib/insn.c:464
 insn_get_immediate+0x550/0x1c50 arch/x86/lib/insn.c:632
 insn_get_length arch/x86/lib/insn.c:707 [inline]
 insn_decode+0x2ae/0x340 arch/x86/lib/insn.c:747
 arch_jump_entry_size+0xa4/0x110 arch/x86/kernel/jump_label.c:24
 __jump_label_patch+0x80/0x340 arch/x86/kernel/jump_label.c:45
 arch_jump_label_transform_queue+0x66/0x100 arch/x86/kernel/jump_label.c:137
 __jump_label_update+0x125/0x420 kernel/jump_label.c:475
 jump_label_update+0x32e/0x410 kernel/jump_label.c:829
 static_key_slow_inc_cpuslocked+0xe1/0x190 kernel/jump_label.c:165
 static_key_slow_inc+0x1a/0x30 kernel/jump_label.c:186
 kvm_arch_vcpu_create+0x2c6/0xc20 arch/x86/kvm/x86.c:11850
 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:3946 [inline]
 kvm_vm_ioctl+0xe4b/0x26e0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4741
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3a7d87cb29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3a7e6450c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f3a7d99bf80 RCX: 00007f3a7d87cb29
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000004
RBP: 00007f3a7d8c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f3a7d99bf80 R15: 00007ffe6ec9a8d8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/25 08:41 linux-next 1e25dd777248 9a0ddda3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in kvm_vm_ioctl
* Struck through repros no longer work on HEAD.