Re: [syzbot] [mm?] INFO: rcu detected stall in seq_read_iter (2)
From: Hillf Danton
Date: Thu Oct 17 2024 - 07:42:44 EST
On Wed, 16 Oct 2024 08:52:22 -0700
> syzbot found the following issue on:
>
> HEAD commit: 9e4c6c1ad9a1 Merge tag 'io_uring-6.12-20241011' of git://g..
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=161bf840580000
#syz test
--- x/virt/kvm/kvm_main.c
+++ y/virt/kvm/kvm_main.c
@@ -6387,7 +6387,7 @@ static void kvm_sched_out(struct preempt
WRITE_ONCE(vcpu->scheduled_out, true);
- if (current->on_rq && vcpu->wants_to_run) {
+ if (current->on_rq && !current->se.sched_delayed && vcpu->wants_to_run) {
WRITE_ONCE(vcpu->preempted, true);
WRITE_ONCE(vcpu->ready, true);
}
--