syzbot


INFO: rcu detected stall in kauditd_thread (3)

Status: auto-obsoleted due to no activity on 2024/02/20 23:02
Subsystems: kernel
[Documentation on labels]
First crash: 198d, last: 165d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in kauditd_thread kernel 2 834d 889d 0/26 closed as invalid on 2022/02/08 10:00
linux-6.1 INFO: rcu detected stall in kauditd_thread (2) 3 40d 146d 0/3 upstream: reported on 2023/12/11 16:51
upstream INFO: rcu detected stall in kauditd_thread (4) audit bpf C 5 10d 39d 0/26 upstream: reported C repro on 2024/03/27 18:39
linux-6.1 INFO: rcu detected stall in kauditd_thread 2 260d 347d 0/3 auto-obsoleted due to no activity on 2023/11/27 06:59
linux-5.15 INFO: rcu detected stall in kauditd_thread 2 135d 152d 0/3 auto-obsoleted due to no activity on 2024/03/31 22:45
android-5-15 BUG: soft lockup in kauditd_thread origin:lts C 3 17h31m 31d 0/2 upstream: reported C repro on 2024/04/04 20:01

Sample crash report:
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 ticks this GP) idle=920c/1/0x4000000000000000 softirq=95902/95902 fqs=1
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P10978/1:b..l
rcu: 	(detected by 1, t=10504 jiffies, g=151805, q=100 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: kauditd Not tainted 6.7.0-rc2-syzkaller-00029-g9b6de136b5f0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:rcu_dynticks_curr_cpu_in_eqs include/linux/context_tracking.h:122 [inline]
RIP: 0010:rcu_is_watching+0x3a/0xb0 kernel/rcu/tree.c:700
Code: e8 2b 24 a0 09 89 c3 83 f8 08 73 76 49 bf 00 00 00 00 00 fc ff df 4c 8d 34 dd 40 89 34 8d 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 <74> 08 4c 89 f7 e8 3c b9 73 00 48 c7 c3 08 6c 03 00 49 03 1e 48 89
RSP: 0018:ffffc90000007b00 EFLAGS: 00000046
RAX: 1ffffffff1a69128 RBX: 0000000000000000 RCX: ffffffff816d25a4
RDX: 0000000000000000 RSI: ffffffff8bbdf360 RDI: ffffffff8bbdf320
RBP: ffffc90000007c68 R08: ffffffff8f00c02f R09: 1ffffffff1e01805
R10: dffffc0000000000 R11: fffffbfff1e01806 R12: 1ffff92000000f6c
R13: dffffc0000000000 R14: ffffffff8d348940 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30a21000 CR3: 0000000020557000 CR4: 00000000003506f0
DR0: 000000000000d8dd DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 trace_lock_acquire include/trace/events/lock.h:24 [inline]
 lock_acquire+0xe3/0x530 kernel/locking/lockdep.c:5724
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:351 [inline]
 advance_sched+0xae/0xcb0 net/sched/sch_taprio.c:935
 __run_hrtimer kernel/time/hrtimer.c:1688 [inline]
 __hrtimer_run_queues+0x59f/0xd20 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1065 [inline]
 __sysvec_apic_timer_interrupt+0x104/0x3a0 arch/x86/kernel/apic/apic.c:1082
 sysvec_apic_timer_interrupt+0x92/0xb0 arch/x86/kernel/apic/apic.c:1076
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:console_flush_all+0x9c3/0xeb0 kernel/printk/printk.c:2973
Code: 48 21 c3 0f 85 fa 01 00 00 e8 e9 7b 1d 00 48 8b 5c 24 38 4d 85 f6 75 07 e8 da 7b 1d 00 eb 06 e8 d3 7b 1d 00 fb 48 8b 44 24 58 <42> 0f b6 04 28 84 c0 0f 85 4a 02 00 00 0f b6 1b 31 ff 89 de e8 44
RSP: 0018:ffffc90000a4f7e0 EFLAGS: 00000293
RAX: 1ffff92000149f48 RBX: ffffc90000a4fa40 RCX: ffff88801ae6bb80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000a4f990 R08: ffffffff8170fd84 R09: 1ffffffff21ba86c
R10: dffffc0000000000 R11: fffffbfff21ba86d R12: ffffffff8e0cf4c0
R13: dffffc0000000000 R14: 0000000000000200 R15: ffffffff8e0cf518
 console_unlock+0x13b/0x4d0 kernel/printk/printk.c:3036
 vprintk_emit+0x508/0x720 kernel/printk/printk.c:2303
 _printk+0xd5/0x120 kernel/printk/printk.c:2328
 kauditd_printk_skb kernel/audit.c:535 [inline]
 kauditd_hold_skb+0x1bc/0x210 kernel/audit.c:570
 kauditd_send_queue+0x2a3/0x2f0 kernel/audit.c:755
 kauditd_thread+0x75c/0x990 kernel/audit.c:879
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
task:kworker/u4:7    state:R  running task     stack:25552 pid:10978 tgid:10978 ppid:2      flags:0x00004000
Workqueue: bat_events batadv_nc_worker
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5376 [inline]
 __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688
 preempt_schedule_irq+0xfb/0x1b0 kernel/sched/core.c:7008
 irqentry_exit+0x5a/0x80 kernel/entry/common.c:432
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:lock_acquire+0x25a/0x530 kernel/locking/lockdep.c:5757
Code: 2b 00 74 08 4c 89 f7 e8 64 31 7d 00 f6 44 24 61 02 0f 85 8a 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc9000f66f9c0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92001ecdf44 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: ffffffff8b6ac0e0 RDI: ffffffff8bbdf380
RBP: ffffc9000f66fb10 R08: ffffffff90dd4367 R09: 1ffffffff21ba86c
R10: dffffc0000000000 R11: fffffbfff21ba86d R12: 1ffff92001ecdf40
R13: dffffc0000000000 R14: ffffc9000f66fa20 R15: 0000000000000246
 rcu_lock_acquire include/linux/rcupdate.h:301 [inline]
 rcu_read_lock include/linux/rcupdate.h:747 [inline]
 batadv_nc_process_nc_paths+0xd6/0x390 net/batman-adv/network-coding.c:687
 batadv_nc_worker+0x42a/0x610 net/batman-adv/network-coding.c:728
 process_one_work kernel/workqueue.c:2630 [inline]
 process_scheduled_works+0x90f/0x1420 kernel/workqueue.c:2703
 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2784
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
rcu: rcu_preempt kthread starved for 10501 jiffies! g151805 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->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:R  running task     stack:26256 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5376 [inline]
 __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688
 __schedule_loop kernel/sched/core.c:6763 [inline]
 schedule+0x149/0x260 kernel/sched/core.c:6778
 schedule_timeout+0x1bd/0x300 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x30a/0x1500 kernel/rcu/tree.c:1631
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:1830
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 PID: 10995 Comm: kworker/u4:12 Not tainted 6.7.0-rc2-syzkaller-00029-g9b6de136b5f0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:csd_lock_wait kernel/smp.c:311 [inline]
RIP: 0010:smp_call_function_many_cond+0x1832/0x2940 kernel/smp.c:855
Code: 45 8b 65 00 44 89 e6 83 e6 01 31 ff e8 e7 87 0b 00 41 83 e4 01 49 bc 00 00 00 00 00 fc ff df 75 07 e8 22 84 0b 00 eb 38 f3 90 <42> 0f b6 04 23 84 c0 75 11 41 f7 45 00 01 00 00 00 74 1e e8 06 84
RSP: 0018:ffffc90010137720 EFLAGS: 00000293
RAX: ffffffff8182f57a RBX: 1ffff110173087c5 RCX: ffff888063629dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90010137920 R08: ffffffff8182f549 R09: 1ffffffff21ba86c
R10: dffffc0000000000 R11: fffffbfff21ba86d R12: dffffc0000000000
R13: ffff8880b9843e28 R14: ffff8880b993d480 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8097f0666e CR3: 000000000d730000 CR4: 00000000003506f0
DR0: 000000000000d8dd DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1023
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:2006 [inline]
 text_poke_bp_batch+0x352/0xb30 arch/x86/kernel/alternative.c:2216
 text_poke_flush arch/x86/kernel/alternative.c:2407 [inline]
 text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2414
 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
 static_key_enable_cpuslocked+0x132/0x260 kernel/jump_label.c:205
 static_key_enable+0x1a/0x20 kernel/jump_label.c:218
 toggle_allocation_gate+0xb5/0x250 mm/kfence/core.c:830
 process_one_work kernel/workqueue.c:2630 [inline]
 process_scheduled_works+0x90f/0x1420 kernel/workqueue.c:2703
 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2784
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
watchdog: BUG: soft lockup - CPU#1 stuck for 246s! [kworker/u4:12:10995]
Modules linked in:
irq event stamp: 4488962
hardirqs last  enabled at (4488961): [<ffffffff8b16b6cf>] irqentry_exit+0x5f/0x80 kernel/entry/common.c:435
hardirqs last disabled at (4488962): [<ffffffff8b16945e>] sysvec_apic_timer_interrupt+0xe/0xb0 arch/x86/kernel/apic/apic.c:1076
softirqs last  enabled at (4488960): [<ffffffff8155f8f1>] invoke_softirq kernel/softirq.c:427 [inline]
softirqs last  enabled at (4488960): [<ffffffff8155f8f1>] __irq_exit_rcu+0xf1/0x1b0 kernel/softirq.c:632
softirqs last disabled at (4488901): [<ffffffff8155f8f1>] invoke_softirq kernel/softirq.c:427 [inline]
softirqs last disabled at (4488901): [<ffffffff8155f8f1>] __irq_exit_rcu+0xf1/0x1b0 kernel/softirq.c:632
CPU: 1 PID: 10995 Comm: kworker/u4:12 Not tainted 6.7.0-rc2-syzkaller-00029-g9b6de136b5f0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:csd_lock_wait kernel/smp.c:311 [inline]
RIP: 0010:smp_call_function_many_cond+0x1832/0x2940 kernel/smp.c:855
Code: 45 8b 65 00 44 89 e6 83 e6 01 31 ff e8 e7 87 0b 00 41 83 e4 01 49 bc 00 00 00 00 00 fc ff df 75 07 e8 22 84 0b 00 eb 38 f3 90 <42> 0f b6 04 23 84 c0 75 11 41 f7 45 00 01 00 00 00 74 1e e8 06 84
RSP: 0018:ffffc90010137720 EFLAGS: 00000293
RAX: ffffffff8182f57a RBX: 1ffff110173087c5 RCX: ffff888063629dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90010137920 R08: ffffffff8182f549 R09: 1ffffffff21ba86c
R10: dffffc0000000000 R11: fffffbfff21ba86d R12: dffffc0000000000
R13: ffff8880b9843e28 R14: ffff8880b993d480 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8097f0666e CR3: 000000000d730000 CR4: 00000000003506f0
DR0: 000000000000d8dd DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1023
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:2006 [inline]
 text_poke_bp_batch+0x352/0xb30 arch/x86/kernel/alternative.c:2216
 text_poke_flush arch/x86/kernel/alternative.c:2407 [inline]
 text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2414
 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
 static_key_enable_cpuslocked+0x132/0x260 kernel/jump_label.c:205
 static_key_enable+0x1a/0x20 kernel/jump_label.c:218
 toggle_allocation_gate+0xb5/0x250 mm/kfence/core.c:830
 process_one_work kernel/workqueue.c:2630 [inline]
 process_scheduled_works+0x90f/0x1420 kernel/workqueue.c:2703
 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2784
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: kauditd Not tainted 6.7.0-rc2-syzkaller-00029-g9b6de136b5f0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:__lock_acquire+0x47b/0x1fd0 kernel/locking/lockdep.c:5079
Code: 41 09 c7 41 09 cf 41 09 ff 48 8b 44 24 20 0f b6 04 30 84 c0 0f 85 0f 13 00 00 44 8b a4 24 e0 00 00 00 48 8b 44 24 10 44 89 38 <49> 89 c7 4c 8b 74 24 28 4b 8d 5c f0 24 48 89 d8 48 c1 e8 03 0f b6
RSP: 0018:ffffc90000007a70 EFLAGS: 00000046
RAX: ffff88801ae6c6b0 RBX: 0000000000004066 RCX: 0000000000040000
RDX: 0000000000080000 RSI: dffffc0000000000 RDI: 0000000000004066
RBP: 000000000000000a R08: ffff88801ae6c640 R09: 0000000000000001
R10: dffffc0000000000 R11: fffffbfff1e01806 R12: 0000000000000000
R13: 0000000000000066 R14: 0000000000000001 R15: 00000000000c4066
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30a21000 CR3: 0000000020557000 CR4: 00000000003506f0
DR0: 000000000000d8dd DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5753
 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline]
 _raw_spin_lock_irq+0xd3/0x120 kernel/locking/spinlock.c:170
 __run_hrtimer kernel/time/hrtimer.c:1692 [inline]
 __hrtimer_run_queues+0x66c/0xd20 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1065 [inline]
 __sysvec_apic_timer_interrupt+0x104/0x3a0 arch/x86/kernel/apic/apic.c:1082
 sysvec_apic_timer_interrupt+0x92/0xb0 arch/x86/kernel/apic/apic.c:1076
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:console_flush_all+0x9c3/0xeb0 kernel/printk/printk.c:2973
Code: 48 21 c3 0f 85 fa 01 00 00 e8 e9 7b 1d 00 48 8b 5c 24 38 4d 85 f6 75 07 e8 da 7b 1d 00 eb 06 e8 d3 7b 1d 00 fb 48 8b 44 24 58 <42> 0f b6 04 28 84 c0 0f 85 4a 02 00 00 0f b6 1b 31 ff 89 de e8 44
RSP: 0018:ffffc90000a4f7e0 EFLAGS: 00000293
RAX: 1ffff92000149f48 RBX: ffffc90000a4fa40 RCX: ffff88801ae6bb80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000a4f990 R08: ffffffff8170fd84 R09: 1ffffffff21ba86c
R10: dffffc0000000000 R11: fffffbfff21ba86d R12: ffffffff8e0cf4c0
R13: dffffc0000000000 R14: 0000000000000200 R15: ffffffff8e0cf518
 console_unlock+0x13b/0x4d0 kernel/printk/printk.c:3036
 vprintk_emit+0x508/0x720 kernel/printk/printk.c:2303
 _printk+0xd5/0x120 kernel/printk/printk.c:2328
 kauditd_printk_skb kernel/audit.c:535 [inline]
 kauditd_hold_skb+0x1bc/0x210 kernel/audit.c:570
 kauditd_send_queue+0x2a3/0x2f0 kernel/audit.c:755
 kauditd_thread+0x75c/0x990 kernel/audit.c:879
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/22 23:00 upstream 9b6de136b5f0 03e12510 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in kauditd_thread
2023/10/20 07:03 linux-next 4230ea146b1e 42e1d524 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in kauditd_thread
* Struck through repros no longer work on HEAD.