[v6.1] INFO: rcu detected stall in gc_worker

0 views
Skip to first unread message

syzbot

unread,
Jul 2, 2023, 10:12:49 PM7/2/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 0f4ac6b4c5f0 Linux 6.1.37
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=141ddeb8a80000
kernel config: https://syzkaller.appspot.com/x/.config?x=4242391d5bdd7a3a
dashboard link: https://syzkaller.appspot.com/bug?extid=458308355e7401f2f4c5
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17696830a80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=118f5ac8a80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/aaf32c4b82fb/disk-0f4ac6b4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/fb723c3ba3ca/vmlinux-0f4ac6b4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/5dbf7a668b05/bzImage-0f4ac6b4.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+458308...@syzkaller.appspotmail.com

rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 1-...!: (1 GPs behind) idle=e134/1/0x4000000000000000 softirq=8238/8241 fqs=0
(t=14076 jiffies g=6621 q=695 ncpus=2)
rcu: rcu_preempt kthread timer wakeup didn't happen for 14075 jiffies! g6621 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: Possible timer handling issue on cpu=0 timer-softirq=18868
rcu: rcu_preempt kthread starved for 14076 jiffies! g6621 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=0
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:26944 pid:16 ppid:2 flags:0x00004000
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5241 [inline]
__schedule+0x132c/0x4330 kernel/sched/core.c:6554
schedule+0xbf/0x180 kernel/sched/core.c:6630
schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1935
rcu_gp_fqs_loop+0x2c2/0x1010 kernel/rcu/tree.c:1661
rcu_gp_kthread+0xa3/0x3a0 kernel/rcu/tree.c:1860
kthread+0x26e/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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3620 Comm: kworker/0:8 Not tainted 6.1.37-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Workqueue: events_power_efficient gc_worker
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline]
RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline]
RIP: 0010:__raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline]
RIP: 0010:_raw_spin_lock_irq+0x85/0x110 kernel/locking/spinlock.c:170
Code: f1 00 f3 f3 f3 4b 89 44 3d 00 4c 89 f3 48 c1 eb 03 42 80 3c 3b 00 74 08 4c 89 f7 e8 15 64 52 f7 48 c7 44 24 20 00 00 00 00 9c <8f> 44 24 20 42 80 3c 3b 00 74 08 4c 89 f7 e8 78 63 52 f7 8b 44 24
RSP: 0018:ffffc90000007cb8 EFLAGS: 00000046
RAX: f3f3f300f1f1f1f1 RBX: 1ffff92000000f9c RCX: ffff88807c800000
RDX: 0000000000010000 RSI: ffffffff8b3ccd80 RDI: ffff8880b982a4c0
RBP: ffffc90000007d50 R08: ffffffff81793f3f R09: fffffbfff1ca663e
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b982a4c0
R13: 1ffff92000000f98 R14: ffffc90000007ce0 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f93edf39370 CR3: 000000000cc8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<IRQ>
__run_hrtimer kernel/time/hrtimer.c:1689 [inline]
__hrtimer_run_queues+0x6d3/0xe50 kernel/time/hrtimer.c:1749
hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
__sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:lock_is_held_type+0x137/0x180
Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f
RSP: 0018:ffffc90003e1f998 EFLAGS: 00000206
RAX: f6420f8779143000 RBX: 0000000000000002 RCX: ffff88807c800000
RDX: 0000000000000000 RSI: ffffffff8aebe3a0 RDI: ffffffff8b3ccda0
RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff1ca663e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246
R13: ffff88807c800000 R14: 00000000ffffffff R15: ffffffff8cf27320
lock_is_held include/linux/lockdep.h:283 [inline]
__might_resched+0xf0/0x780 kernel/sched/core.c:9903
gc_worker+0xd7d/0x14b0 net/netfilter/nf_conntrack_core.c:1578
process_one_work+0x8aa/0x11f0 kernel/workqueue.c:2289
worker_thread+0xa5f/0x1210 kernel/workqueue.c:2436
kthread+0x26e/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
</TASK>
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.311 msecs
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3620 Comm: kworker/0:8 Not tainted 6.1.37-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Workqueue: events_power_efficient gc_worker
RIP: 0010:arch_atomic_read arch/x86/include/asm/atomic.h:29 [inline]
RIP: 0010:rcu_dynticks_curr_cpu_in_eqs include/linux/context_tracking.h:122 [inline]
RIP: 0010:rcu_is_watching+0x56/0xb0 kernel/rcu/tree.c:720
Code: f0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 f7 e8 f0 6f 6d 00 48 c7 c3 a8 4a 03 00 49 03 1e 48 89 d8 48 c1 e8 03 42 0f b6 04 38 <84> c0 75 1e 8b 03 65 ff 0d 15 9e 8f 7e 74 0c 83 e0 04 c1 e8 02 5b
RSP: 0018:ffffc90000007ca0 EFLAGS: 00000806
RAX: 0000000000000000 RBX: ffff8880b9834aa8 RCX: ffff88807c800000
RDX: ffff88807c800000 RSI: ffffffff8b3ccd80 RDI: ffffffff8b3ccd40
RBP: ffff888075c5b2e8 R08: ffffffff88b5ab40 R09: ffffed100eb8b62c
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888075c5b000
R13: ffff888075c5b360 R14: ffffffff8c999840 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f93edf39370 CR3: 000000000cc8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<IRQ>
rcu_read_unlock include/linux/rcupdate.h:776 [inline]
advance_sched+0x769/0x940 net/sched/sch_taprio.c:755
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1749
hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
__sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:lock_is_held_type+0x137/0x180
Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f
RSP: 0018:ffffc90003e1f998 EFLAGS: 00000206
RAX: f6420f8779143000 RBX: 0000000000000002 RCX: ffff88807c800000
RDX: 0000000000000000 RSI: ffffffff8aebe3a0 RDI: ffffffff8b3ccda0
RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff1ca663e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246
R13: ffff88807c800000 R14: 00000000ffffffff R15: ffffffff8cf27320
lock_is_held include/linux/lockdep.h:283 [inline]
__might_resched+0xf0/0x780 kernel/sched/core.c:9903
gc_worker+0xd7d/0x14b0 net/netfilter/nf_conntrack_core.c:1578
process_one_work+0x8aa/0x11f0 kernel/workqueue.c:2289
worker_thread+0xa5f/0x1210 kernel/workqueue.c:2436
kthread+0x26e/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
</TASK>
CPU: 1 PID: 46 Comm: kworker/u4:3 Not tainted 6.1.37-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:csd_lock_wait kernel/smp.c:413 [inline]
RIP: 0010:smp_call_function_many_cond+0x1f62/0x33d0 kernel/smp.c:987
Code: 2f 44 89 ee 83 e6 01 31 ff e8 9a 11 0b 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 0a e8 25 0e 0b 00 e9 1b ff ff ff f3 90 <42> 0f b6 04 2b 84 c0 75 14 41 f7 07 01 00 00 00 0f 84 fe fe ff ff
RSP: 0018:ffffc90000b775a0 EFLAGS: 00000293
RAX: ffffffff817ecd3d RBX: 1ffff1101730841d RCX: ffff888018aa8000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90000b77980 R08: ffffffff817ecd06 R09: fffffbfff2051845
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000800000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880b98420e8
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000600 CR3: 000000000cc8e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
</IRQ>
<TASK>
on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1155
on_each_cpu include/linux/smp.h:71 [inline]
text_poke_sync arch/x86/kernel/alternative.c:1316 [inline]
text_poke_bp_batch+0x5f9/0x940 arch/x86/kernel/alternative.c:1578
text_poke_flush arch/x86/kernel/alternative.c:1707 [inline]
text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1714
arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146
static_key_enable_cpuslocked+0x12e/0x250 kernel/jump_label.c:177
static_key_enable+0x16/0x20 kernel/jump_label.c:190
toggle_allocation_gate+0xbf/0x480 mm/kfence/core.c:804
process_one_work+0x8aa/0x11f0 kernel/workqueue.c:2289
worker_thread+0xa5f/0x1210 kernel/workqueue.c:2436
kthread+0x26e/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages