syzbot


INFO: rcu detected stall in hsr_announce

Status: upstream: reported on 2024/09/03 13:47
Reported-by: syzbot+41bb2f0b9c7811bdfae7@syzkaller.appspotmail.com
First crash: 156d, last: 56d
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in hsr_announce (3) net 1 1892d 1891d 0/28 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in hsr_announce (5) net 4 1179d 1191d 0/28 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in hsr_announce (6) kvm 2 1017d 1017d 0/28 auto-closed as invalid on 2022/06/25 07:59
linux-4.14 INFO: rcu detected stall in hsr_announce C error 25 1679d 1877d 0/1 upstream: reported C repro on 2019/12/17 23:42
upstream INFO: rcu detected stall in hsr_announce (4) net 1 1518d 1518d 0/28 auto-closed as invalid on 2021/03/11 15:56
upstream INFO: rcu detected stall in hsr_announce net 1 1972d 1972d 0/28 auto-closed as invalid on 2019/11/13 18:24
upstream INFO: rcu detected stall in hsr_announce (2) net 3 1896d 1896d 0/28 closed as invalid on 2019/11/29 14:24
linux-5.15 INFO: rcu detected stall in hsr_announce 6 128d 175d 0/3 auto-obsoleted due to no activity on 2025/01/08 22:52
linux-4.19 INFO: rcu detected stall in hsr_announce 1 1591d 1591d 0/1 auto-closed as invalid on 2021/01/27 07:34
linux-4.19 BUG: soft lockup in hsr_announce (2) 7 842d 1296d 0/1 auto-obsoleted due to no activity on 2023/02/15 11:56
upstream BUG: soft lockup in hsr_announce (2) net 3 497d 506d 0/28 auto-obsoleted due to no activity on 2023/12/27 12:08

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-.... } 2687 jiffies s: 1369 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: 4345 Comm: syz.3.4 Not tainted 6.1.119-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:kasan_check_range+0x5/0x290 mm/kasan/generic.c:188
Code: c7 e8 8f 6c d0 08 31 c0 c3 0f 0b b8 ea ff ff ff c3 0f 0b b8 ea ff ff ff c3 cc cc cc cc cc cc cc cc cc cc cc cc 55 41 57 41 56 <53> b0 01 48 85 f6 0f 84 9a 01 00 00 48 89 fd 48 01 f5 0f 82 5a 02
RSP: 0018:ffffc90000006fd8 EFLAGS: 00000046
RAX: 0000000000000001 RBX: 0000000000000048 RCX: ffffffff816b124a
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff9124c268
RBP: 0000000000000005 R08: dffffc0000000000 R09: fffffbfff224984e
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888078dc4658
R13: dffffc0000000000 R14: 0000000000000020 R15: ffff888078dc4728
FS:  00007f017e6ee6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f017e6edf98 CR3: 000000005598f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:72 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 hlock_class kernel/locking/lockdep.c:228 [inline]
 mark_lock+0x9a/0x340 kernel/locking/lockdep.c:4606
 __lock_acquire+0xb7f/0x1f80 kernel/locking/lockdep.c:5003
 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
 seqcount_lockdep_reader_access+0xf8/0x220 include/linux/seqlock.h:102
 timekeeping_get_delta kernel/time/timekeeping.c:254 [inline]
 timekeeping_get_ns kernel/time/timekeeping.c:388 [inline]
 ktime_get_update_offsets_now+0x89/0x420 kernel/time/timekeeping.c:2320
 hrtimer_update_base kernel/time/hrtimer.c:632 [inline]
 hrtimer_interrupt+0x12f/0x980 kernel/time/hrtimer.c:1797
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1107 [inline]
 __sysvec_apic_timer_interrupt+0x158/0x5b0 arch/x86/kernel/apic/apic.c:1124
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
 sysvec_apic_timer_interrupt+0x4d/0xc0 arch/x86/kernel/apic/apic.c:1118
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:should_resched arch/x86/include/asm/preempt.h:103 [inline]
RIP: 0010:__local_bh_enable_ip+0x16c/0x1f0 kernel/softirq.c:403
Code: 8b e8 48 a7 5d 09 65 66 8b 05 d0 59 af 7e 66 85 c0 75 57 bf 01 00 00 00 e8 01 4a 0a 00 e8 ec 16 3d 00 fb 65 8b 05 bc 29 ae 7e <85> c0 75 05 e8 6b 4d ac ff 48 c7 44 24 20 0e 36 e0 45 49 c7 04 1c
RSP: 0018:ffffc900000075a0 EFLAGS: 00000286
RAX: 0000000000000301 RBX: 1ffff92000000eb8 RCX: ffffffff816b124a
RDX: dffffc0000000000 RSI: ffffffff8b0c01c0 RDI: ffffffff8b5e6200
RBP: ffffc90000007650 R08: dffffc0000000000 R09: fffffbfff224986a
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff92000000ebc R14: ffffc900000075e0 R15: 0000000000000200
 local_bh_enable include/linux/bottom_half.h:33 [inline]
 rcu_read_unlock_bh include/linux/rcupdate.h:861 [inline]
 __dev_queue_xmit+0x173c/0x3d50 net/core/dev.c:4328
 dev_queue_xmit include/linux/netdevice.h:3021 [inline]
 hsr_xmit net/hsr/hsr_forward.c:380 [inline]
 hsr_forward_do net/hsr/hsr_forward.c:471 [inline]
 hsr_forward_skb+0x17f3/0x2390 net/hsr/hsr_forward.c:619
 send_hsr_supervision_frame+0x540/0xad0 net/hsr/hsr_device.c:323
 hsr_announce+0x1a4/0x340 net/hsr/hsr_device.c:379
 call_timer_fn+0x1ad/0x6b0 kernel/time/timer.c:1504
 expire_timers kernel/time/timer.c:1549 [inline]
 __run_timers+0x67c/0x890 kernel/time/timer.c:1820
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833
 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:571
 __do_softirq kernel/softirq.c:605 [inline]
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:654
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:666
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
 sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:__mutex_lock+0x1d/0xd80 kernel/locking/mutex.c:746
Code: 8b 04 24 be 02 00 00 00 31 c9 eb 01 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec 20 01 00 00 4c 89 44 24 68 <49> 89 ce 89 d3 89 74 24 14 49 89 fd 65 48 8b 04 25 28 00 00 00 48
RSP: 0018:ffffc90002e87bc0 EFLAGS: 00000286
RAX: ffffffff81b15254 RBX: ffff888078dc3b80 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff888078dc4fb8
RBP: ffffc90002e87d10 R08: ffffffff81b1526f R09: ffffed100f1b8776
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888078dc3ba8 R15: ffff888078dc3b80
 __do_sys_perf_event_open kernel/events/core.c:12749 [inline]
 __se_sys_perf_event_open+0x43ff/0x4960 kernel/events/core.c:12331
 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:0x7f017d985d19
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:00007f017e6ee038 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00007f017db75fa0 RCX: 00007f017d985d19
RDX: ffffffffffffffff RSI: 0000000000000000 RDI: 00000000200000c0
RBP: 00007f017da01a20 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f017db75fa0 R15: 00007ffc74ddfca8
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/12 17:49 linux-6.1.y e4d90d63d385 530e80f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in hsr_announce
2024/09/22 04:41 linux-6.1.y e526b12bf916 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in hsr_announce
2024/09/03 13:46 linux-6.1.y 311d8503ef9f 326f9c5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in hsr_announce
* Struck through repros no longer work on HEAD.