syzbot


INFO: rcu detected stall in sys_recvmmsg (2)

Status: auto-obsoleted due to no activity on 2024/11/22 11:58
Reported-by: syzbot+21ec4549d7d2c6bf9a0b@syzkaller.appspotmail.com
First crash: 240d, last: 109d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_recvmmsg (3) mm 79 19h55m 348d 0/28 upstream: reported on 2023/12/19 09:31
linux-6.1 INFO: rcu detected stall in sys_recvmmsg (3) 1 5d13h 5d13h 0/3 upstream: reported on 2024/11/26 05:10
linux-4.19 INFO: rcu detected stall in sys_recvmmsg C error 1 709d 709d 0/1 upstream: reported C repro on 2022/12/23 04:58
linux-5.15 INFO: rcu detected stall in sys_recvmmsg origin:upstream missing-backport C done 21 4d08h 605d 0/3 upstream: reported C repro on 2023/04/06 01:32
upstream INFO: rcu detected stall in sys_recvmmsg mptcp C done 52 1035d 1166d 20/28 fixed on 2022/03/08 16:11
linux-6.1 INFO: rcu detected stall in sys_recvmmsg 5 486d 617d 0/3 auto-obsoleted due to no activity on 2023/11/11 06:06
upstream INFO: rcu detected stall in sys_recvmmsg (2) net 4 796d 826d 0/28 auto-obsoleted due to no activity on 2023/01/03 09:53
android-5-15 BUG: soft lockup in sys_recvmmsg 5 129d 222d 0/2 auto-obsoleted due to no activity on 2024/10/23 09:30

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 GPs behind) idle=b824/1/0x4000000000000000 softirq=12340/12341 fqs=1
	(detected by 1, t=10502 jiffies, g=14193, q=27 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4473 Comm: syz.0.163 Not tainted 6.1.104-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:__lock_acquire+0x433/0x1f80 kernel/locking/lockdep.c:4992
Code: 03 c1 e7 10 09 c7 8b 44 24 60 83 e0 01 c1 e0 12 31 c9 83 7c 24 3c 00 0f 95 c1 c1 e1 13 41 c1 e4 14 41 09 cc 41 09 c4 41 09 fc <48> 8b 44 24 30 0f b6 04 10 84 c0 0f 85 e5 12 00 00 44 8b b4 24 d8
RSP: 0018:ffffc90000007a80 EFLAGS: 00000002
RAX: 0000000000040000 RBX: 0000000000004061 RCX: 0000000000080000
RDX: dffffc0000000000 RSI: ffff8880251e0ae0 RDI: 0000000000004061
RBP: ffff8880251e0ac4 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000000c4061
R13: ffff8880251e0000 R14: ffff8880b982a4d8 R15: 0000000000000061
FS:  00007f24b05b76c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2de16ff8 CR3: 000000007a4fb000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline]
 _raw_spin_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:170
 __run_hrtimer kernel/time/hrtimer.c:1690 [inline]
 __hrtimer_run_queues+0x6d3/0xe50 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 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:653
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194
Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 32 8e 32 f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> 87 d9 ae f6 65 8b 05 28 e2 52 75 85 c0 74 3f 48 c7 04 24 0e 36
RSP: 0018:ffffc9000358f5c0 EFLAGS: 00000206
RAX: 4d45a9aca9acca00 RBX: 1ffff920006b1ebc RCX: ffffffff816adfda
RDX: dffffc0000000000 RSI: ffffffff8b0c0260 RDI: 0000000000000001
RBP: ffffc9000358f650 R08: dffffc0000000000 R09: fffffbfff20e7459
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff920006b1eb8 R14: ffffc9000358f5e0 R15: 0000000000000246
 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
 __wake_up_common_lock kernel/sched/wait.c:140 [inline]
 __wake_up_sync_key+0x121/0x1c0 kernel/sched/wait.c:208
 __unix_dgram_recvmsg+0x5fe/0x1260 net/unix/af_unix.c:2477
 ____sys_recvmsg+0x285/0x530
 ___sys_recvmsg net/socket.c:2775 [inline]
 do_recvmmsg+0x46d/0xad0 net/socket.c:2869
 __sys_recvmmsg net/socket.c:2948 [inline]
 __do_sys_recvmmsg net/socket.c:2971 [inline]
 __se_sys_recvmmsg net/socket.c:2964 [inline]
 __x64_sys_recvmmsg+0x195/0x240 net/socket.c:2964
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f24af7799f9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f24b05b7038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f24af916058 RCX: 00007f24af7799f9
RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00007f24af7e78ee R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f24af916058 R15: 00007fffd695edd8
 </TASK>
rcu: rcu_preempt kthread starved for 10500 jiffies! g14193 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:25816 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965
 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 PID: 3740 Comm: kworker/u4:7 Not tainted 6.1.104-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:csd_lock_wait kernel/smp.c:424 [inline]
RIP: 0010:smp_call_function_many_cond+0x1fb0/0x3460 kernel/smp.c:998
Code: 2f 44 89 ee 83 e6 01 31 ff e8 4c 40 0b 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 0a e8 d7 3c 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:ffffc900049af5a0 EFLAGS: 00000293
RAX: ffffffff817f634b RBX: 1ffff11017308595 RCX: ffff88807f0e0000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900049af980 R08: ffffffff817f6314 R09: fffffbfff20e7445
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000800000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880b9842ca8
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2de0bff8 CR3: 000000000d08e000 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:1166
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:1334 [inline]
 text_poke_bp_batch+0x5f9/0x940 arch/x86/kernel/alternative.c:1596
 text_poke_flush arch/x86/kernel/alternative.c:1725 [inline]
 text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1732
 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146
 static_key_enable_cpuslocked+0x12e/0x250 kernel/jump_label.c:205
 static_key_enable+0x16/0x20 kernel/jump_label.c:218
 toggle_allocation_gate+0xbf/0x480 mm/kfence/core.c:804
 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292
 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
vkms_vblank_simulate: vblank timer overrun

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/14 11:58 linux-6.1.y 36790ef5e00b 07a4d4ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_recvmmsg
2024/08/14 11:56 linux-6.1.y 36790ef5e00b 07a4d4ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_recvmmsg
2024/06/03 15:53 linux-6.1.y 88690811da69 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_recvmmsg
2024/05/27 21:54 linux-6.1.y 88690811da69 761766e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_recvmmsg
2024/04/04 23:59 linux-6.1.y 347385861c50 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_recvmmsg
* Struck through repros no longer work on HEAD.