syzbot


INFO: rcu detected stall in sys_recvmmsg (2)

Status: auto-obsoleted due to no activity on 2023/01/03 09:53
Subsystems: net
[Documentation on labels]
First crash: 640d, last: 610d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_recvmmsg (3) kasan mm batman 38 1d23h 163d 0/26 upstream: reported on 2023/12/19 09:31
linux-4.19 INFO: rcu detected stall in sys_recvmmsg C error 1 524d 524d 0/1 upstream: reported C repro on 2022/12/23 04:58
linux-5.15 INFO: rcu detected stall in sys_recvmmsg origin:upstream C 8 10d 420d 0/3 upstream: reported C repro on 2023/04/06 01:32
linux-6.1 INFO: rcu detected stall in sys_recvmmsg (2) 2 2d13h 55d 0/3 upstream: reported on 2024/04/05 00:00
upstream INFO: rcu detected stall in sys_recvmmsg mptcp C done 52 850d 981d 20/26 fixed on 2022/03/08 16:11
linux-6.1 INFO: rcu detected stall in sys_recvmmsg 5 301d 432d 0/3 auto-obsoleted due to no activity on 2023/11/11 06:06
android-5-15 BUG: soft lockup in sys_recvmmsg 4 8h35m 36d 0/2 premoderation: reported on 2024/04/23 17:26

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=3264/1/0x4000000000000000 softirq=37917/37918 fqs=26
	(detected by 0, t=10502 jiffies, g=47333, q=293 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 9244 Comm: syz-executor.3 Not tainted 6.0.0-rc7-syzkaller-00034-ga1375562c0a8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:arch_static_branch include/trace/events/lock.h:69 [inline]
RIP: 0010:static_key_false include/linux/jump_label.h:207 [inline]
RIP: 0010:trace_lock_release+0x2/0x1a0 include/trace/events/lock.h:69
Code: c1 d8 e3 25 8e 80 e1 07 80 c1 03 38 c1 0f 8c 42 fb ff ff 48 c7 c7 d8 e3 25 8e e8 e9 d2 73 00 e9 31 fb ff ff 0f 1f 40 00 41 57 <41> 56 41 54 53 0f 1f 44 00 00 65 8b 05 f5 a0 98 7e 83 f8 08 0f 83
RSP: 0018:ffffc900001f0b30 EFLAGS: 00000806
RAX: f3f3f3f3f300f2f2 RBX: ffffffff91aa9628 RCX: 0000000000000002
RDX: ffff88808509a940 RSI: ffffffff81791c19 RDI: ffffffff91aa9640
RBP: ffffc900001f0c70 R08: dffffc0000000000 R09: fffff5200003e174
R10: fffff5200003e175 R11: 1ffff9200003e174 R12: dffffc0000000000
R13: ffffffff81791c19 R14: ffffc900001f0ca0 R15: 1ffff9200003e174
FS:  00007fc70fdfe700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020385030 CR3: 0000000083a73000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 lock_release+0x81/0x870 kernel/locking/lockdep.c:5677
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:149 [inline]
 _raw_spin_unlock_irqrestore+0x75/0x130 kernel/locking/spinlock.c:194
 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline]
 debug_deactivate kernel/time/hrtimer.c:481 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1653 [inline]
 __hrtimer_run_queues+0x2f9/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:1095 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x280 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:native_irq_disable arch/x86/include/asm/irqflags.h:40 [inline]
RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:75 [inline]
RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:107 [inline]
RIP: 0010:lock_is_held_type+0x6a/0x190 kernel/locking/lockdep.c:5705
Code: 2c 25 00 6f 02 00 41 83 bd 74 0a 00 00 00 0f 85 e7 00 00 00 41 89 f6 49 89 ff 48 c7 04 24 00 00 00 00 9c 8f 04 24 4c 8b 24 24 <fa> 48 c7 c7 20 84 ad 8a e8 d9 14 00 00 65 ff 05 52 da c8 75 41 83
RSP: 0018:ffffc9000a8ff498 EFLAGS: 00000246
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff8cd20900
RBP: 00000000ffffffff R08: dffffc0000000000 R09: ffffc9000a8ff6c0
R10: fffff5200151fedd R11: 1ffff9200151fed8 R12: 0000000000000246
R13: ffff88803bbfbb00 R14: 00000000ffffffff R15: ffffffff8cd20900
 lock_is_held include/linux/lockdep.h:283 [inline]
 __might_resched+0x99/0x6a0 kernel/sched/core.c:9854
 __mutex_lock_common+0xd2/0x26c0 kernel/locking/mutex.c:580
 __mutex_lock kernel/locking/mutex.c:747 [inline]
 mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799
 __unix_dgram_recvmsg+0x24c/0x1200 net/unix/af_unix.c:2404
 ____sys_recvmsg+0x285/0x530
 ___sys_recvmsg net/socket.c:2743 [inline]
 do_recvmmsg+0x490/0xb20 net/socket.c:2837
 __sys_recvmmsg net/socket.c:2916 [inline]
 __do_sys_recvmmsg net/socket.c:2939 [inline]
 __se_sys_recvmmsg net/socket.c:2932 [inline]
 __x64_sys_recvmmsg+0x195/0x240 net/socket.c:2932
 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:0x7fc710e8a669
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:00007fc70fdfe168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007fc710fac050 RCX: 00007fc710e8a669
RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00007fc710ee5560 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffce8f1c26f R14: 00007fc70fdfe300 R15: 0000000000022000
 </TASK>
rcu: rcu_preempt kthread starved for 10449 jiffies! g47333 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->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:R  running task     stack:25976 pid:   17 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5182 [inline]
 __schedule+0x957/0xe20 kernel/sched/core.c:6494
 schedule+0xcb/0x190 kernel/sched/core.c:6570
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1935
 rcu_gp_fqs_loop+0x309/0x1070 kernel/rcu/tree.c:1657
 rcu_gp_kthread+0xa5/0x390 kernel/rcu/tree.c:1854
 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:
NMI backtrace for cpu 0
CPU: 0 PID: 12 Comm: kworker/u4:1 Not tainted 6.0.0-rc7-syzkaller-00034-ga1375562c0a8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Workqueue: events_unbound toggle_allocation_gate
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x47c/0x4b0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x169/0x280 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline]
 rcu_check_gp_kthread_starvation+0x1da/0x250 kernel/rcu/tree_stall.h:514
 print_other_cpu_stall+0x1554/0x1690 kernel/rcu/tree_stall.h:619
 check_cpu_stall kernel/rcu/tree_stall.h:762 [inline]
 rcu_pending kernel/rcu/tree.c:3660 [inline]
 rcu_sched_clock_irq+0xa17/0x1950 kernel/rcu/tree.c:2342
 update_process_times+0x148/0x1b0 kernel/time/timer.c:1839
 tick_sched_handle kernel/time/tick-sched.c:243 [inline]
 tick_sched_timer+0x377/0x540 kernel/time/tick-sched.c:1480
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x4cb/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:1095 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x280 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:csd_lock_wait kernel/smp.c:414 [inline]
RIP: 0010:smp_call_function_many_cond+0x1132/0x16f0 kernel/smp.c:988
Code: 3e 44 89 fe 83 e6 01 31 ff e8 da fa 0a 00 41 83 e7 01 49 bf 00 00 00 00 00 fc ff df 75 0a e8 a5 f6 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:ffffc90000117760 EFLAGS: 00000293
RAX: ffffffff817e9fdd RBX: 1ffff11017367fe1 RCX: ffff88801233d880
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90000117940 R08: ffffffff817e9fa6 R09: fffffbfff1ff4609
R10: fffffbfff1ff4609 R11: 1ffffffff1ff4608 R12: ffff8880b9a3acc0
R13: 0000000000000001 R14: ffff8880b9b3ff08 R15: dffffc0000000000
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1154
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:1302 [inline]
 text_poke_bp_batch+0x324/0x970 arch/x86/kernel/alternative.c:1490
 text_poke_flush arch/x86/kernel/alternative.c:1660 [inline]
 text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1667
 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146
 static_key_enable_cpuslocked+0x129/0x250 kernel/jump_label.c:177
 static_key_enable+0x16/0x20 kernel/jump_label.c:190
 toggle_allocation_gate+0xbf/0x470 mm/kfence/core.c:811
 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289
 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/27 16:29 upstream a1375562c0a8 87840e00 .config console log report info ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_recvmmsg
2022/09/11 23:29 upstream 4ed9c1e971b1 356d8217 .config console log report info ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_recvmmsg
2022/09/06 20:59 upstream d2ec799d1c1b 65aea2b9 .config console log report info ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_recvmmsg
2022/08/28 11:47 upstream 10d4879f9ef0 07177916 .config console log report info ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_recvmmsg
* Struck through repros no longer work on HEAD.