syzbot


INFO: rcu detected stall in nsim_dev_trap_report_work

Status: upstream: reported on 2024/03/30 02:24
Reported-by: syzbot+ac23b001b33c45edd69c@syzkaller.appspotmail.com
First crash: 86d, last: 41d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in nsim_dev_trap_report_work 1 11d 11d 0/3 upstream: reported on 2024/06/13 10:37
upstream INFO: rcu detected stall in nsim_dev_trap_report_work (2) net syz done 5 15d 236d 0/27 upstream: reported syz repro on 2023/11/01 08:50
upstream INFO: rcu detected stall in nsim_dev_trap_report_work net syz 4 291d 334d 23/27 fixed on 2023/10/12 12:48

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-...D } 2687 jiffies s: 51409 root: 0x1/.
rcu: blocking rcu_node structures (internal RCU debug):
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 6167 Comm: kworker/0:16 Not tainted 6.1.90-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Workqueue: events nsim_dev_trap_report_work
RIP: 0010:debug_spin_unlock kernel/locking/spinlock_debug.c:101 [inline]
RIP: 0010:do_raw_spin_unlock+0x81/0x8a0 kernel/locking/spinlock_debug.c:140
Code: 48 c1 e8 03 0f b6 04 18 84 c0 0f 85 23 04 00 00 41 83 3f 00 0f 84 99 01 00 00 4d 8d 6f 10 4d 89 ec 49 c1 ec 03 41 80 3c 1c 00 <74> 08 4c 89 ef e8 35 3f 76 00 65 48 8b 2d dd a9 96 7e 49 39 6d 00
RSP: 0018:ffffc90000007c50 EFLAGS: 00000046
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffffffff816bc524
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880602a32e8
RBP: ffff8880602a32e8 R08: dffffc0000000000 R09: ffffed100c05465e
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100c05465f
R13: ffff8880602a32f8 R14: dffffc0000000000 R15: ffff8880602a32e8
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc929b4b38 CR3: 0000000065bb2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 000000000000000a DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __raw_spin_unlock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_unlock+0x1a/0x40 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:391 [inline]
 advance_sched+0x68b/0x970 net/sched/sch_taprio.c:749
 __run_hrtimer kernel/time/hrtimer.c:1686 [inline]
 __hrtimer_run_queues+0x5e5/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:__sanitizer_cov_trace_pc+0x58/0x60 kernel/kcov.c:225
Code: f8 15 00 00 83 fa 02 75 21 48 8b 91 00 16 00 00 48 8b 32 48 8d 7e 01 8b 89 fc 15 00 00 48 39 cf 73 08 48 89 3a 48 89 44 f2 08 <c3> 0f 1f 80 00 00 00 00 4c 8b 04 24 65 48 8b 15 84 e1 77 7e 65 8b
RSP: 0018:ffffc9000b34fb40 EFLAGS: 00000293
RAX: ffffffff845fe693 RBX: 0000000000000000 RCX: ffff88807e28d940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff845fe688 R09: ffffffff88889fa5
R10: 0000000000000003 R11: ffff88807e28d940 R12: 0000000000000014
R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff8880405c800e
 do_csum lib/checksum.c:54 [inline]
 ip_fast_csum+0x53/0x2a0 lib/checksum.c:108
 nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:771 [inline]
 nsim_dev_trap_report drivers/net/netdevsim/dev.c:805 [inline]
 nsim_dev_trap_report_work+0x54f/0xa90 drivers/net/netdevsim/dev.c:850
 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:308
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/14 01:12 linux-6.1.y 909ba1f1b414 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in nsim_dev_trap_report_work
2024/03/30 02:24 linux-6.1.y e5cd595e23c1 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in nsim_dev_trap_report_work
* Struck through repros no longer work on HEAD.