syzbot


INFO: rcu detected stall in kvm_vm_worker_thread

Status: auto-obsoleted due to no activity on 2023/02/11 11:33
Subsystems: cgroups
[Documentation on labels]
First crash: 893d, last: 893d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in kvm_vm_worker_thread (2) mm 1 214d 214d 0/28 auto-obsoleted due to no activity on 2024/11/22 19:28

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-...!: (10499 ticks this GP) idle=79d4/1/0x4000000000000000 softirq=53725/53725 fqs=0
	(t=10500 jiffies g=59597 q=361 ncpus=2)
rcu: rcu_preempt kthread timer wakeup didn't happen for 10499 jiffies! g59597 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=41294
rcu: rcu_preempt kthread starved for 10500 jiffies! g59597 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:27160 pid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5178 [inline]
 __schedule+0x8f3/0xd90 kernel/sched/core.c:6490
 schedule+0xcb/0x190 kernel/sched/core.c:6566
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1935
 rcu_gp_fqs_loop+0x309/0x1070 kernel/rcu/tree.c:1658
 rcu_gp_kthread+0xa5/0x390 kernel/rcu/tree.c:1857
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 18988 Comm: kvm-nx-lpage-re Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:rcu_read_lock_sched_held+0x9b/0x130 kernel/rcu/update.c:126
Code: 3e 01 00 84 c0 74 1b 48 c7 c7 20 f1 d1 8c be ff ff ff ff e8 97 27 ca 08 85 c0 74 36 41 bf 01 00 00 00 48 c7 04 24 0e 36 e0 45 <49> c7 04 1e 00 00 00 00 65 48 8b 04 25 28 00 00 00 48 3b 44 24 48
RSP: 0018:ffffc900001f0a80 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 1ffff9200003e150 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8e26e428
RBP: ffffc900001f0b08 R08: dffffc0000000000 R09: fffffbfff1c4dc86
R10: fffffbfff1c4dc86 R11: 1ffffffff1c4dc85 R12: dffffc0000000000
R13: ffffffff8177f337 R14: dffffc0000000000 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e621000 CR3: 0000000086506000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 trace_lock_release+0x7b/0x1a0 include/trace/events/lock.h:69
 lock_release+0x81/0x870 kernel/locking/lockdep.c:5679
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:149 [inline]
 _raw_spin_unlock_irqrestore+0x75/0x130 kernel/locking/spinlock.c:194
 __run_hrtimer kernel/time/hrtimer.c:1681 [inline]
 __hrtimer_run_queues+0x487/0xa60 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x3a6/0xfd0 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x280 arch/x86/kernel/apic/apic.c:1113
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202
Code: c1 e2 f6 ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 0e f8 24 f7 48 89 df e8 e6 4e 26 f7 e8 e1 de 4b f7 fb bf 01 00 00 00 <e8> a6 09 19 f7 65 8b 05 37 20 bf 75 85 c0 74 02 5b c3 e8 44 3d bd
RSP: 0018:ffffc90004bf7ad0 EFLAGS: 00000286
RAX: 0f651857d952b900 RBX: ffffffff8cd472a0 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffc90004bf7cc0 R08: dffffc0000000000 R09: fffffbfff19a8e55
R10: fffffbfff19a8e55 R11: 1ffffffff19a8e54 R12: ffff888072356800
R13: 0000000000000388 R14: dffffc0000000000 R15: ffff888072356800
 spin_unlock_irq include/linux/spinlock.h:400 [inline]
 find_css_set+0x1bc7/0x1e70 kernel/cgroup/cgroup.c:1276
 cgroup_migrate_prepare_dst+0x12b/0x6d0 kernel/cgroup/cgroup.c:2767
 cgroup_attach_task+0x54b/0x6d0 kernel/cgroup/cgroup.c:2873
 cgroup_attach_task_all+0xba/0x130 kernel/cgroup/cgroup-v1.c:71
 kvm_vm_worker_thread+0x350/0x4e0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:6015
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
CPU: 0 PID: 18991 Comm: syz-executor.3 Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:csd_lock_wait kernel/smp.c:413 [inline]
RIP: 0010:smp_call_function_many_cond+0x1112/0x16c0 kernel/smp.c:987
Code: 3e 44 89 fe 83 e6 01 31 ff e8 aa fe 0a 00 41 83 e7 01 49 bf 00 00 00 00 00 fc ff df 75 0a e8 75 fa 0a 00 e9 85 fe ff ff f3 90 <42> 0f b6 04 3b 84 c0 75 14 41 f7 06 01 00 00 00 0f 84 68 fe ff ff
RSP: 0018:ffffc90004b577c0 EFLAGS: 00000246
RAX: ffffffff817d71fd RBX: 1ffff11017367fe5 RCX: 0000000000040000
RDX: ffffc9000f74d000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc90004b57990 R08: ffffffff817d71c6 R09: ffffed10173475a3
R10: ffffed10173475a3 R11: 1ffff110173475a2 R12: ffff8880b9a3ad00
R13: 0000000000000001 R14: ffff8880b9b3ff28 R15: dffffc0000000000
FS:  00007f7fc4cdf700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e521000 CR3: 00000000892df000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 clock_was_set+0x88b/0x930 kernel/time/hrtimer.c:974
 timekeeping_inject_offset+0xa4e/0xae0 kernel/time/timekeeping.c:1395
 do_adjtimex+0x4bb/0xb00 kernel/time/timekeeping.c:2444
 do_clock_adjtime kernel/time/posix-timers.c:1118 [inline]
 __do_sys_clock_adjtime kernel/time/posix-timers.c:1130 [inline]
 __se_sys_clock_adjtime kernel/time/posix-timers.c:1121 [inline]
 __x64_sys_clock_adjtime+0x1ec/0x2a0 kernel/time/posix-timers.c:1121
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f7fc3a8b5a9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f7fc4cdf168 EFLAGS: 00000246 ORIG_RAX: 0000000000000131
RAX: ffffffffffffffda RBX: 00007f7fc3babf80 RCX: 00007f7fc3a8b5a9
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000000
RBP: 00007f7fc3ae6580 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd439b725f R14: 00007f7fc4cdf300 R15: 0000000000022000
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 18988 Comm: kvm-nx-lpage-re Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:101 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x5e/0x2e0 mm/kasan/generic.c:189
Code: c1 eb 03 49 b8 00 00 00 00 00 fc ff df 4f 8d 0c 03 4c 8d 54 37 ff 49 c1 ea 03 48 bb 01 00 00 00 00 fc ff df 49 01 da 4d 89 d6 <4d> 29 ce 49 83 fe 10 7f 30 4d 85 f6 0f 84 8e 01 00 00 4c 89 cb 4c
RSP: 0018:ffffc900001f0a30 EFLAGS: 00000082
RAX: 0000000000000001 RBX: dffffc0000000001 RCX: ffffffff8168248b
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8e26e428
RBP: 000000000001ffff R08: dffffc0000000000 R09: fffffbfff1c4dc85
R10: fffffbfff1c4dc86 R11: 1ffffffff1c4dc85 R12: dffffc0000000000
R13: 1ffff9200003e15c R14: fffffbfff1c4dc86 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e621000 CR3: 0000000086506000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:71 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 cpumask_test_cpu include/linux/cpumask.h:390 [inline]
 cpu_online include/linux/cpumask.h:965 [inline]
 trace_lock_acquire+0x3b/0x1d0 include/trace/events/lock.h:24
 lock_acquire+0xa5/0x400 kernel/locking/lockdep.c:5639
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
 debug_object_activate+0x97/0x6a0 lib/debugobjects.c:658
 debug_hrtimer_activate kernel/time/hrtimer.c:420 [inline]
 debug_activate kernel/time/hrtimer.c:475 [inline]
 enqueue_hrtimer kernel/time/hrtimer.c:1084 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1702 [inline]
 __hrtimer_run_queues+0x595/0xa60 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x3a6/0xfd0 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x280 arch/x86/kernel/apic/apic.c:1113
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202
Code: c1 e2 f6 ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 0e f8 24 f7 48 89 df e8 e6 4e 26 f7 e8 e1 de 4b f7 fb bf 01 00 00 00 <e8> a6 09 19 f7 65 8b 05 37 20 bf 75 85 c0 74 02 5b c3 e8 44 3d bd
RSP: 0018:ffffc90004bf7ad0 EFLAGS: 00000286
RAX: 0f651857d952b900 RBX: ffffffff8cd472a0 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffc90004bf7cc0 R08: dffffc0000000000 R09: fffffbfff19a8e55
R10: fffffbfff19a8e55 R11: 1ffffffff19a8e54 R12: ffff888072356800
R13: 0000000000000388 R14: dffffc0000000000 R15: ffff888072356800
 spin_unlock_irq include/linux/spinlock.h:400 [inline]
 find_css_set+0x1bc7/0x1e70 kernel/cgroup/cgroup.c:1276
 cgroup_migrate_prepare_dst+0x12b/0x6d0 kernel/cgroup/cgroup.c:2767
 cgroup_attach_task+0x54b/0x6d0 kernel/cgroup/cgroup.c:2873
 cgroup_attach_task_all+0xba/0x130 kernel/cgroup/cgroup-v1.c:71
 kvm_vm_worker_thread+0x350/0x4e0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:6015
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/16 14:01 upstream 55be6084c8e0 67cb024c .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in kvm_vm_worker_thread
* Struck through repros no longer work on HEAD.