syzbot


INFO: rcu detected stall in sctp_generate_timeout_event

Status: upstream: reported on 2024/10/12 19:21
Reported-by: syzbot+ce24bd7a1a925c2bbf1d@syzkaller.appspotmail.com
First crash: 57d, last: 57d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sctp_generate_timeout_event net 1 1099d 1099d 0/28 auto-closed as invalid on 2022/02/03 11:46
upstream INFO: rcu detected stall in sctp_generate_timeout_event (2) sctp 1 123d 123d 0/28 auto-obsoleted due to no activity on 2024/11/05 06:45
linux-4.19 BUG: soft lockup in sctp_generate_timeout_event C error 4 1061d 1236d 0/1 upstream: reported C repro on 2021/07/21 02:50

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-.... } 2797 jiffies s: 1409 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: 3748 Comm: syz.0.12 Not tainted 6.1.112-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 2f 38 c5 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:ffffc90000006b78 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff817a0fa2
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8e99f968
RBP: 0000000000000000 R08: ffffffff817a0f7e R09: fffffbfff2eb6a55
R10: 0000000000000000 R11: dffffc0000000001 R12: 00000027c6978b74
R13: ffff8880b8e2a540 R14: ffff8880b8e2a4c0 R15: dffffc0000000000
FS:  00007fa16f1086c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4084d07ab8 CR3: 000000005823f000 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]
 cpumask_test_cpu include/linux/cpumask.h:444 [inline]
 cpu_online include/linux/cpumask.h:1030 [inline]
 trace_hrtimer_cancel include/trace/events/timer.h:297 [inline]
 debug_deactivate+0x82/0x280 kernel/time/hrtimer.c:483
 __run_hrtimer kernel/time/hrtimer.c:1657 [inline]
 __hrtimer_run_queues+0x334/0xe50 kernel/time/hrtimer.c:1753
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1815
 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:lock_release+0x637/0xa20 kernel/locking/lockdep.c:5686
Code: 3c 3b 00 74 08 4c 89 f7 e8 16 82 77 00 f6 84 24 91 00 00 00 02 75 6f 41 f7 c5 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 04 27 00 00 00 00 4b c7 44 27 08 00 00 00 00 65 48 8b 04 25
RSP: 0018:ffffc90000006f20 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000000df6 RCX: ffffc90000006f03
RDX: 0000000000000005 RSI: ffffffff8b0c14c0 RDI: ffffffff8b5d7180
RBP: ffffc90000007058 R08: dffffc0000000000 R09: fffffbfff1d33f2e
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000000df0
R13: 0000000000000246 R14: ffffc90000006fb0 R15: dffffc0000000000
 rcu_lock_release include/linux/rcupdate.h:355 [inline]
 rcu_read_unlock include/linux/rcupdate.h:824 [inline]
 is_bpf_text_address+0x289/0x2a0 kernel/bpf/core.c:733
 kernel_text_address+0x9f/0xd0 kernel/extable.c:125
 __kernel_text_address+0x9/0x40 kernel/extable.c:79
 unwind_get_return_address+0x49/0x80 arch/x86/kernel/unwind_orc.c:323
 arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
 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_slab_alloc+0x65/0x70 mm/kasan/common.c:328
 kasan_slab_alloc include/linux/kasan.h:201 [inline]
 slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737
 slab_alloc_node mm/slub.c:3398 [inline]
 kmem_cache_alloc_node+0x136/0x310 mm/slub.c:3443
 __alloc_skb+0xde/0x670 net/core/skbuff.c:505
 alloc_skb include/linux/skbuff.h:1271 [inline]
 _sctp_make_chunk+0x58/0x450 net/sctp/sm_make_chunk.c:1443
 sctp_make_control net/sctp/sm_make_chunk.c:1490 [inline]
 sctp_make_init+0x5f9/0x2840 net/sctp/sm_make_chunk.c:319
 sctp_sf_t1_init_timer_expire+0x1eb/0x520 net/sctp/sm_statefuns.c:5927
 sctp_do_sm+0x1ed/0x5c80 net/sctp/sm_sideeffect.c:1167
 sctp_generate_timeout_event+0x226/0x350 net/sctp/sm_sideeffect.c:295
 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:strlen+0x3f/0x60 lib/string.c:495
Code: 00 00 00 fc ff df 48 89 fb 49 89 c4 48 89 d8 48 c1 e8 03 42 0f b6 04 38 84 c0 75 12 48 ff c3 49 8d 44 24 01 43 80 7c 26 01 00 <75> dd eb 13 89 d9 80 e1 07 38 c1 7c e5 48 89 df e8 1c 7a 41 f7 eb
RSP: 0018:ffffc90004bd71d8 EFLAGS: 00000202
RAX: 0000000000000000 RBX: ffffffff8b09aac1 RCX: 0000000004bd7203
RDX: 0000000000000000 RSI: ffff88802468cc78 RDI: ffffffff8b09aac0
RBP: ffffc90004bd7320 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffffffffffff
R13: ffffffff8d1f72e0 R14: ffffffff8b09aac0 R15: dffffc0000000000
 trace_event_get_offsets_lock_acquire include/trace/events/lock.h:24 [inline]
 perf_trace_lock_acquire+0x114/0x4a0 include/trace/events/lock.h:24
 trace_lock_acquire include/trace/events/lock.h:24 [inline]
 lock_acquire+0x544/0x5a0 kernel/locking/lockdep.c:5633
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:351 [inline]
 copy_pte_range mm/memory.c:1042 [inline]
 copy_pmd_range mm/memory.c:1177 [inline]
 copy_pud_range mm/memory.c:1214 [inline]
 copy_p4d_range mm/memory.c:1238 [inline]
 copy_page_range+0x1148/0x4660 mm/memory.c:1336
 dup_mmap kernel/fork.c:696 [inline]
 dup_mm kernel/fork.c:1540 [inline]
 copy_mm+0xf42/0x1990 kernel/fork.c:1589
 copy_process+0x19d5/0x4060 kernel/fork.c:2267
 kernel_clone+0x222/0x920 kernel/fork.c:2682
 __do_sys_clone kernel/fork.c:2823 [inline]
 __se_sys_clone kernel/fork.c:2807 [inline]
 __x64_sys_clone+0x231/0x280 kernel/fork.c:2807
 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:0x7fa16e37dff9
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:00007fa16f107fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007fa16e535f80 RCX: 00007fa16e37dff9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fa16e3f0296 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fa16e535f80 R15: 00007ffde06e0448
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/12 19:20 linux-6.1.y aa4cd140bba5 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sctp_generate_timeout_event
* Struck through repros no longer work on HEAD.