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: 64d, last: 46d
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 1800d 1800d 0/28 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in hsr_announce (5) net 4 1088d 1100d 0/28 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in hsr_announce (6) kvm 2 926d 926d 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 1588d 1786d 0/1 upstream: reported C repro on 2019/12/17 23:42
upstream INFO: rcu detected stall in hsr_announce (4) net 1 1426d 1426d 0/28 auto-closed as invalid on 2021/03/11 15:56
upstream INFO: rcu detected stall in hsr_announce net 1 1880d 1880d 0/28 auto-closed as invalid on 2019/11/13 18:24
upstream INFO: rcu detected stall in hsr_announce (2) net 3 1805d 1805d 0/28 closed as invalid on 2019/11/29 14:24
linux-5.15 INFO: rcu detected stall in hsr_announce 6 37d 83d 0/3 upstream: reported on 2024/08/15 19:00
linux-4.19 INFO: rcu detected stall in hsr_announce 1 1500d 1500d 0/1 auto-closed as invalid on 2021/01/27 07:34
linux-4.19 BUG: soft lockup in hsr_announce (2) 7 751d 1205d 0/1 auto-obsoleted due to no activity on 2023/02/15 11:56
upstream BUG: soft lockup in hsr_announce (2) net 3 406d 415d 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-.... } 2664 jiffies s: 1353 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: 3732 Comm: syz.0.8 Not tainted 6.1.111-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:27 [inline]
RIP: 0010:static_key_false include/linux/jump_label.h:207 [inline]
RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:147 [inline]
RIP: 0010:wrmsr arch/x86/include/asm/msr.h:254 [inline]
RIP: 0010:native_apic_msr_write+0x35/0x50 arch/x86/include/asm/apic.h:206
Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 89 f6 31 d2 e9 1f c9 29 03 66 2e 0f 1f 84 00 00 00 00 00
RSP: 0018:ffffc90000007128 EFLAGS: 00000046
RAX: 00000000000000b4 RBX: ffffffff8cd8ba30 RCX: 0000000000000838
RDX: 0000000000000000 RSI: 00000000000000b4 RDI: 0000000000000838
RBP: 00000000000000b4 R08: ffffffff817cf3dd R09: fffffbfff1d33cae
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b8e271c0
R13: dffffc0000000000 R14: 00000000000000b4 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd80d665000 CR3: 000000005310c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 apic_write arch/x86/include/asm/apic.h:394 [inline]
 lapic_next_event+0x5b/0x70 arch/x86/kernel/apic/apic.c:478
 clockevents_program_event+0x1c5/0x310 kernel/time/clockevents.c:334
 hrtimer_interrupt+0x546/0x980 kernel/time/hrtimer.c:1828
 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+0x3e/0xb0 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:orc_ip arch/x86/kernel/unwind_orc.c:30 [inline]
RIP: 0010:__orc_find arch/x86/kernel/unwind_orc.c:52 [inline]
RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:178 [inline]
RIP: 0010:unwind_next_frame+0x4a2/0x2220 arch/x86/kernel/unwind_orc.c:448
Code: 89 c1 48 c1 f9 02 48 c1 e8 3f 48 01 c8 48 83 e0 fe 49 8d 1c 47 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 <84> c0 75 27 48 63 03 48 01 d8 48 8d 4b 04 4c 39 e8 4c 0f 46 f9 48
RSP: 0018:ffffc90000007380 EFLAGS: 00000a07
RAX: 0000000000000000 RBX: ffffffff8f0bd974 RCX: dffffc0000000000
RDX: ffffffff8fa944a4 RSI: ffffffff8aa6e4b0 RDI: dffffc0000000000
RBP: ffffffff8f0bd9a0 R08: 0000000000000016 R09: ffffc90000007550
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8f0bd94c
R13: ffffffff8aa6e4af R14: ffffffff8f0bd94c R15: ffffffff8f0bd94c
 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516
 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236
 kasan_slab_free include/linux/kasan.h:177 [inline]
 slab_free_hook mm/slub.c:1724 [inline]
 slab_free_freelist_hook mm/slub.c:1750 [inline]
 slab_free mm/slub.c:3661 [inline]
 kmem_cache_free+0x292/0x510 mm/slub.c:3683
 kfree_skb include/linux/skbuff.h:1220 [inline]
 hsr_forward_skb+0x1be5/0x2390 net/hsr/hsr_forward.c:629
 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
 sysvec_apic_timer_interrupt+0x91/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:page_table_check_clear+0x1e/0x6d0 mm/page_table_check.c:67
Code: 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 41 57 41 56 41 55 41 54 53 50 49 89 f6 48 89 fb e8 0a cf 9d ff 48 89 df e8 52 15 00 00 <89> c5 31 ff 89 c6 e8 57 d2 9d ff 85 ed 0f 84 4a 03 00 00 48 bd 00
RSP: 0018:ffffc900045372e0 EFLAGS: 00000293
RAX: 0000000000000001 RBX: 000000000007241d RCX: ffff88802da90000
RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000
RBP: ffffc90004537510 R08: ffffffff81ecf995 R09: fffffbfff1d33cae
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001c90740
R13: ffff888074d8a448 R14: 0000000000000001 R15: dffffc0000000000
 zap_pte_range mm/memory.c:1435 [inline]
 zap_pmd_range mm/memory.c:1574 [inline]
 zap_pud_range mm/memory.c:1603 [inline]
 zap_p4d_range mm/memory.c:1624 [inline]
 unmap_page_range+0x1b4a/0x2740 mm/memory.c:1645
 unmap_vmas+0x48b/0x640 mm/memory.c:1730
 exit_mmap+0x252/0x9f0 mm/mmap.c:3227
 __mmput+0x115/0x3c0 kernel/fork.c:1199
 exit_mm+0x226/0x300 kernel/exit.c:565
 do_exit+0x9f6/0x26a0 kernel/exit.c:858
 do_group_exit+0x202/0x2b0 kernel/exit.c:1021
 get_signal+0x16f7/0x17d0 kernel/signal.c:2870
 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871
 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:174
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fc161b7def9
Code: Unable to access opcode bytes at 0x7fc161b7decf.
RSP: 002b:00007fc1629d8038 EFLAGS: 00000246 ORIG_RAX: 0000000000000035
RAX: 0000000000000000 RBX: 00007fc161d36058 RCX: 00007fc161b7def9
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001
RBP: 00007fc161bf0b76 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020000500 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fc161d36058 R15: 00007ffed63540c8
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.