syzbot


INFO: rcu detected stall in kcompactd

Status: auto-obsoleted due to no activity on 2023/11/10 08:17
Subsystems: mm
[Documentation on labels]
First crash: 268d, last: 268d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in kcompactd kvm 1 916d 912d 0/26 auto-closed as invalid on 2022/01/31 12:36

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 ticks this GP) idle=e60c/1/0x4000000000000000 softirq=134678/134678 fqs=0
rcu: 	(detected by 1, t=10502 jiffies, g=203685, q=89 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 30 Comm: kcompactd0 Not tainted 6.5.0-rc5-syzkaller-00296-gf8de32cc060b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:preempt_count_add+0x16/0x140 kernel/sched/core.c:5856
Code: e8 1f d8 7f 00 e9 54 ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 c7 c0 c0 25 13 92 55 48 ba 00 00 00 00 00 fc ff df <48> 89 c1 53 83 e0 07 89 fb 48 c1 e9 03 83 c0 03 65 01 3d 8b 40 ab
RSP: 0018:ffffc90000007ce8 EFLAGS: 00000046
RAX: ffffffff921325c0 RBX: ffffffff923e7108 RCX: ffffffff923e7108
RDX: dffffc0000000000 RSI: ffffffff8a6c74c0 RDI: 0000000000000001
RBP: 0000000000000002 R08: 0000000000000000 R09: fffffbfff1d55d72
R10: ffffffff8eaaeb97 R11: 0000000000000000 R12: 000000000011d780
R13: ffff888023786340 R14: ffffffff8a6eed00 R15: 1ffff92000000fa6
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000f000 CR3: 0000000155b9c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:109 [inline]
 _raw_spin_lock_irqsave+0x1e/0x50 kernel/locking/spinlock.c:162
 debug_object_activate+0x1a4/0x490 lib/debugobjects.c:717
 debug_hrtimer_activate kernel/time/hrtimer.c:422 [inline]
 debug_activate kernel/time/hrtimer.c:477 [inline]
 enqueue_hrtimer+0x23/0x310 kernel/time/hrtimer.c:1087
 __run_hrtimer kernel/time/hrtimer.c:1705 [inline]
 __hrtimer_run_queues+0xa0a/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:__sanitizer_cov_trace_pc+0x3b/0x70 kernel/kcov.c:207
Code: 81 e1 00 01 00 00 65 48 8b 14 25 c0 b9 03 00 a9 00 01 ff 00 74 0e 85 c9 74 35 8b 82 04 16 00 00 85 c0 74 2b 8b 82 e0 15 00 00 <83> f8 02 75 20 48 8b 8a e8 15 00 00 8b 92 e4 15 00 00 48 8b 01 48
RSP: 0018:ffffc90000c7f900 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888013aa20c0 RSI: ffffffff81bf904b RDI: 0000000000000007
RBP: ffffea00014c3db0 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: ffffc90000c7fa08 R12: dffffc0000000000
R13: ffffea00014c3d40 R14: ffffea00014c3d80 R15: 00000000000530f6
 _compound_head include/linux/page-flags.h:245 [inline]
 PageLRU include/linux/page-flags.h:473 [inline]
 isolate_migratepages_block+0x7fb/0x49d0 mm/compaction.c:1012
 isolate_migratepages mm/compaction.c:2025 [inline]
 compact_zone+0x1906/0x3fb0 mm/compaction.c:2463
 proactive_compact_node+0x118/0x1d0 mm/compaction.c:2751
 kcompactd+0x710/0xd80 mm/compaction.c:3071
 kthread+0x33a/0x430 kernel/kthread.c:389
 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g203685 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=228131
rcu: rcu_preempt kthread starved for 10502 jiffies! g203685 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:27248 pid:15    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0xee1/0x59f0 kernel/sched/core.c:6710
 schedule+0xe7/0x1b0 kernel/sched/core.c:6786
 schedule_timeout+0x157/0x2c0 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x1ec/0xa50 kernel/rcu/tree.c:1609
 rcu_gp_kthread+0x249/0x380 kernel/rcu/tree.c:1808
 kthread+0x33a/0x430 kernel/kthread.c:389
 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </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: 30 Comm: kcompactd0 Not tainted 6.5.0-rc5-syzkaller-00296-gf8de32cc060b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/irqflags.h:134 [inline]
RIP: 0010:lock_release+0x3a3/0x680 kernel/locking/lockdep.c:5784
Code: c0 74 6c 8a e8 4e db ca 08 b8 ff ff ff ff 65 0f c1 05 81 64 9c 7e 83 f8 01 0f 85 dd 01 00 00 9c 58 f6 c4 02 0f 85 c8 01 00 00 <48> f7 04 24 00 02 00 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df 48
RSP: 0018:ffffc90000007d60 EFLAGS: 00000046
RAX: 0000000000000046 RBX: ffffffffffffffff RCX: ffffc90000007db0
RDX: 1ffff1100275456f RSI: ffffffff8a6c74c0 RDI: ffffffff8ac7edc0
RBP: 1ffff92000000fae R08: 0000000000000000 R09: fffffbfff1d55d72
R10: ffffffff8eaaeb97 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000001 R14: ffff888013aa2b80 R15: ffff888013aa20c0
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000f000 CR3: 0000000155b9c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:149 [inline]
 _raw_spin_unlock_irqrestore+0x1a/0x70 kernel/locking/spinlock.c:194
 __run_hrtimer kernel/time/hrtimer.c:1684 [inline]
 __hrtimer_run_queues+0x58b/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:__sanitizer_cov_trace_pc+0x3b/0x70 kernel/kcov.c:207
Code: 81 e1 00 01 00 00 65 48 8b 14 25 c0 b9 03 00 a9 00 01 ff 00 74 0e 85 c9 74 35 8b 82 04 16 00 00 85 c0 74 2b 8b 82 e0 15 00 00 <83> f8 02 75 20 48 8b 8a e8 15 00 00 8b 92 e4 15 00 00 48 8b 01 48
RSP: 0018:ffffc90000c7f900 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888013aa20c0 RSI: ffffffff81bf904b RDI: 0000000000000007
RBP: ffffea00014c3db0 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: ffffc90000c7fa08 R12: dffffc0000000000
R13: ffffea00014c3d40 R14: ffffea00014c3d80 R15: 00000000000530f6
 _compound_head include/linux/page-flags.h:245 [inline]
 PageLRU include/linux/page-flags.h:473 [inline]
 isolate_migratepages_block+0x7fb/0x49d0 mm/compaction.c:1012
 isolate_migratepages mm/compaction.c:2025 [inline]
 compact_zone+0x1906/0x3fb0 mm/compaction.c:2463
 proactive_compact_node+0x118/0x1d0 mm/compaction.c:2751
 kcompactd+0x710/0xd80 mm/compaction.c:3071
 kthread+0x33a/0x430 kernel/kthread.c:389
 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/12 08:14 upstream f8de32cc060b 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in kcompactd
* Struck through repros no longer work on HEAD.