syzbot


INFO: rcu detected stall in sctp_generate_heartbeat_event

Status: auto-closed as invalid on 2020/12/24 11:25
Reported-by: syzbot+906345f0d8cc08c096b5@syzkaller.appspotmail.com
First crash: 1792d, last: 1549d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sctp_generate_heartbeat_event (3) sctp 4 1408d 1533d 0/28 auto-closed as invalid on 2021/04/15 02:19
upstream INFO: rcu detected stall in sctp_generate_heartbeat_event sctp 2 2381d 2391d 8/28 fixed on 2018/07/09 18:05
upstream INFO: rcu detected stall in sctp_generate_heartbeat_event (2) net 1 1879d 1878d 0/28 auto-closed as invalid on 2019/12/30 14:27
upstream INFO: rcu detected stall in sctp_generate_heartbeat_event (4) sctp 1 1085d 1085d 0/28 closed as invalid on 2022/02/08 10:10

Sample crash report:
xt_policy: input policy not valid in POSTROUTING and OUTPUT
INFO: rcu_sched detected stalls on CPUs/tasks:
	(detected by 1, t=10503 jiffies, g=10055, c=10054, q=4)
All QSes seen, last rcu_sched kthread activity 10494 (4295011972-4295001478), jiffies_till_next_fqs=1, root ->qsmask 0x0
syz-executor.3  R  running task    27848 30862   6371 0x0000000c
Call Trace:
 <IRQ>
 sched_show_task.cold+0x333/0x39a kernel/sched/core.c:5169
 print_other_cpu_stall kernel/rcu/tree.c:1501 [inline]
 check_cpu_stall kernel/rcu/tree.c:1616 [inline]
 __rcu_pending kernel/rcu/tree.c:3390 [inline]
 rcu_pending kernel/rcu/tree.c:3452 [inline]
 rcu_check_callbacks.cold+0xd29/0xd99 kernel/rcu/tree.c:2792
 update_process_times+0x28/0xa0 kernel/time/timer.c:1591
 tick_sched_handle+0x7d/0x150 kernel/time/tick-sched.c:165
 tick_sched_timer+0x92/0x200 kernel/time/tick-sched.c:1223
 __run_hrtimer kernel/time/hrtimer.c:1223 [inline]
 __hrtimer_run_queues+0x30b/0xc80 kernel/time/hrtimer.c:1287
 hrtimer_interrupt+0x1e6/0x5e0 kernel/time/hrtimer.c:1321
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1075 [inline]
 smp_apic_timer_interrupt+0x117/0x5e0 arch/x86/kernel/apic/apic.c:1100
 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793
RIP: 0010:unwind_get_return_address arch/x86/kernel/unwind_orc.c:252 [inline]
RIP: 0010:unwind_get_return_address+0x46/0x90 arch/x86/kernel/unwind_orc.c:247
RSP: 0018:ffff8880aeb075a0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
RAX: dffffc0000000000 RBX: ffff8880aeb075c8 RCX: 0000000000000000
RDX: 1ffff11015d60ec2 RSI: ffff8880aeb074b8 RDI: ffff8880aeb075c8
RBP: ffff8880aeb07610 R08: 0000000000000001 R09: 0000000000000001
R10: ffff8880aeb07cf0 R11: 0000000000000001 R12: ffff8880aeb07650
R13: 0000000000000000 R14: ffff88812fe52940 R15: 0000000000000180
 __save_stack_trace+0xa0/0x160 arch/x86/kernel/stacktrace.c:45
 save_stack mm/kasan/kasan.c:447 [inline]
 set_track mm/kasan/kasan.c:459 [inline]
 kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551
 __do_kmalloc_node mm/slab.c:3682 [inline]
 __kmalloc_node_track_caller+0x4c/0x70 mm/slab.c:3696
 __kmalloc_reserve net/core/skbuff.c:137 [inline]
 __alloc_skb+0x96/0x510 net/core/skbuff.c:205
 alloc_skb include/linux/skbuff.h:980 [inline]
 _sctp_make_chunk+0x4e/0x460 net/sctp/sm_make_chunk.c:1392
 sctp_make_control net/sctp/sm_make_chunk.c:1433 [inline]
 sctp_make_heartbeat+0x7b/0x340 net/sctp/sm_make_chunk.c:1152
 sctp_sf_heartbeat.constprop.0+0x21/0x170 net/sctp/sm_statefuns.c:981
 sctp_sf_sendbeat_8_3+0x34e/0x4f0 net/sctp/sm_statefuns.c:1025
 sctp_do_sm+0xf6/0x48a0 net/sctp/sm_sideeffect.c:1147
 sctp_generate_heartbeat_event+0x1da/0x3f0 net/sctp/sm_sideeffect.c:391
 call_timer_fn+0x14a/0x650 kernel/time/timer.c:1280
 expire_timers+0x232/0x4d0 kernel/time/timer.c:1319
 __run_timers kernel/time/timer.c:1644 [inline]
 run_timer_softirq+0x1d5/0x5a0 kernel/time/timer.c:1657
 __do_softirq+0x254/0xa1d kernel/softirq.c:288
 invoke_softirq kernel/softirq.c:368 [inline]
 irq_exit+0x193/0x240 kernel/softirq.c:409
 exiting_irq arch/x86/include/asm/apic.h:648 [inline]
 smp_apic_timer_interrupt+0x141/0x5e0 arch/x86/kernel/apic/apic.c:1102
 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793
 </IRQ>
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline]
RIP: 0010:qlink_free mm/kasan/quarantine.c:150 [inline]
RIP: 0010:qlist_free_all+0xfc/0x140 mm/kasan/quarantine.c:166
RSP: 0018:ffff88803e2cf618 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff10
RAX: 0000000000000007 RBX: ffff8880a8590738 RCX: 1ffff11013f9d935
RDX: 0000000000000000 RSI: ffff88809fcec9b0 RDI: 0000000000000286
RBP: 0000000000000000 R08: ffffffff8a0b0630 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a8590bb0
R13: ffff88803e2cf650 R14: ffff88812fe4d040 R15: 0000000000000286
 quarantine_reduce+0x185/0x200 mm/kasan/quarantine.c:259
 kasan_kmalloc+0xa2/0x160 mm/kasan/kasan.c:536
 kmem_cache_alloc_trace+0x131/0x3d0 mm/slab.c:3618
 kmalloc include/linux/slab.h:488 [inline]
 kzalloc include/linux/slab.h:661 [inline]
 push_stack+0x7a/0x450 kernel/bpf/verifier.c:552
 check_cond_jmp_op kernel/bpf/verifier.c:3294 [inline]
 do_check+0x474b/0x9310 kernel/bpf/verifier.c:4360
 bpf_check+0xaf8/0x18a0 kernel/bpf/verifier.c:5047
 bpf_prog_load+0x626/0x1050 kernel/bpf/syscall.c:1057
 SYSC_bpf kernel/bpf/syscall.c:1512 [inline]
 SyS_bpf+0x1336/0x3590 kernel/bpf/syscall.c:1477
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x45d5b9
RSP: 002b:00007f5f3389ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000001c40 RCX: 000000000045d5b9
RDX: 0000000000000048 RSI: 00000000200054c0 RDI: 0000000000000005
RBP: 000000000118cf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007fff10e0abbf R14: 00007f5f3389b9c0 R15: 000000000118cf4c
rcu_sched kthread starved for 10563 jiffies! g10055 c10054 f0x2 RCU_GP_WAIT_FQS(3) ->state=0x0 ->cpu=0
rcu_sched       R  running task    30008     9      2 0x80000000
Call Trace:
 context_switch kernel/sched/core.c:2808 [inline]
 __schedule+0x88b/0x1de0 kernel/sched/core.c:3384
 schedule+0x8d/0x1b0 kernel/sched/core.c:3428
 schedule_timeout+0x4af/0xe90 kernel/time/timer.c:1754
 rcu_gp_kthread+0xc0a/0x1e60 kernel/rcu/tree.c:2255
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404

Crashes (29):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/26 11:24 linux-4.14.y d7e78d08fa77 318430cb .config console log report ci2-linux-4-14
2020/06/29 09:00 linux-4.14.y b850307b279c 0375051c .config console log report ci2-linux-4-14
2020/06/17 23:31 linux-4.14.y b850307b279c d45a4d69 .config console log report ci2-linux-4-14
2020/06/07 09:01 linux-4.14.y c6db52a88798 2c2b926c .config console log report ci2-linux-4-14
2020/05/31 08:45 linux-4.14.y 4f68020fef1c a0331e89 .config console log report ci2-linux-4-14
2020/05/01 21:00 linux-4.14.y 050272a0423e bc734e7a .config console log report ci2-linux-4-14
2020/04/30 23:22 linux-4.14.y 050272a0423e 3698959a .config console log report ci2-linux-4-14
2020/04/27 22:55 linux-4.14.y 050272a0423e 0ce7569e .config console log report ci2-linux-4-14
2020/04/25 19:55 linux-4.14.y 050272a0423e b8bb8e5f .config console log report ci2-linux-4-14
2020/04/25 19:16 linux-4.14.y 050272a0423e a113ba38 .config console log report ci2-linux-4-14
2020/04/25 09:08 linux-4.14.y 050272a0423e a113ba38 .config console log report ci2-linux-4-14
2020/04/14 12:40 linux-4.14.y c10b57a567e4 3f3c5574 .config console log report ci2-linux-4-14
2020/04/11 05:12 linux-4.14.y 4520f06b03ae a8c6a3f8 .config console log report ci2-linux-4-14
2020/04/09 18:54 linux-4.14.y 4520f06b03ae a8c6a3f8 .config console log report ci2-linux-4-14
2020/04/03 21:41 linux-4.14.y 4520f06b03ae ef26b610 .config console log report ci2-linux-4-14
2020/04/03 09:45 linux-4.14.y 4520f06b03ae 5ed396e6 .config console log report ci2-linux-4-14
2020/04/02 16:08 linux-4.14.y 4520f06b03ae a34e2c33 .config console log report ci2-linux-4-14
2020/04/01 21:06 linux-4.14.y 01364dad1d45 a34e2c33 .config console log report ci2-linux-4-14
2020/03/24 19:24 linux-4.14.y 01364dad1d45 68660b21 .config console log report ci2-linux-4-14
2020/03/07 09:33 linux-4.14.y 78d697fc93f9 2e9971bb .config console log report ci2-linux-4-14
2020/03/07 08:55 linux-4.14.y 78d697fc93f9 fd2a5f28 .config console log report ci2-linux-4-14
2020/03/03 21:46 linux-4.14.y 78d697fc93f9 1f73b64b .config console log report ci2-linux-4-14
2020/02/21 18:47 linux-4.14.y 98db2bf27b9e 2ffa6679 .config console log report ci2-linux-4-14
2020/02/20 00:24 linux-4.14.y 98db2bf27b9e 47fae6e9 .config console log report ci2-linux-4-14
2020/01/22 01:51 linux-4.14.y c1141b3aab36 8eda0b95 .config console log report ci2-linux-4-14
2020/01/19 16:26 linux-4.14.y c1141b3aab36 0342f8c7 .config console log report ci2-linux-4-14
2020/01/04 13:39 linux-4.14.y 84f5ad468100 68256974 .config console log report ci2-linux-4-14
2019/12/31 16:44 linux-4.14.y 4c5bf01e16a7 25a0186e .config console log report ci2-linux-4-14
2019/12/27 15:39 linux-4.14.y e1f7d50ae3a3 be5c2c81 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.