syzbot


INFO: rcu detected stall in sctp_inet_connect (4)

Status: closed as invalid on 2022/02/08 10:00
Subsystems: sctp
[Documentation on labels]
First crash: 991d, last: 889d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sctp_inet_connect (2) kernel 4 1569d 1654d 0/26 auto-closed as invalid on 2020/04/07 07:45
upstream INFO: rcu detected stall in sctp_inet_connect (5) net 1 325d 325d 0/26 auto-obsoleted due to no activity on 2023/09/02 17:34
linux-4.19 INFO: rcu detected stall in sctp_inet_connect 2 1347d 1412d 0/1 auto-closed as invalid on 2020/12/15 01:43
upstream INFO: rcu detected stall in sctp_inet_connect (3) sctp 12 1255d 1466d 0/26 auto-closed as invalid on 2021/02/14 17:57
upstream INFO: rcu detected stall in sctp_inet_connect netfilter 1 1872d 1872d 0/26 auto-closed as invalid on 2019/09/07 12:17

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P14620
	(detected by 1, t=10502 jiffies, g=311469, q=681)
task:syz-executor.3  state:R  running task     stack:27664 pid:14620 ppid:  6567 flags:0x00004006
Call Trace:
 <IRQ>
 sched_show_task kernel/sched/core.c:8545 [inline]
 sched_show_task+0x433/0x5b0 kernel/sched/core.c:8519
 rcu_print_detail_task_stall_rnp kernel/rcu/tree_stall.h:227 [inline]
 print_other_cpu_stall kernel/rcu/tree_stall.h:567 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:729 [inline]
 rcu_pending kernel/rcu/tree.c:3880 [inline]
 rcu_sched_clock_irq+0x1fa5/0x2200 kernel/rcu/tree.c:2599
 update_process_times+0x16d/0x200 kernel/time/timer.c:1785
 tick_sched_handle+0x9b/0x180 kernel/time/tick-sched.c:226
 tick_sched_timer+0x1b0/0x2d0 kernel/time/tick-sched.c:1421
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x1c0/0xe50 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:check_kcov_mode kernel/kcov.c:163 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0xd/0x60 kernel/kcov.c:197
Code: ff ff ba 08 00 00 00 4d 8b 03 48 0f bd ca 49 8b 45 00 48 63 c9 e9 64 ff ff ff 0f 1f 00 65 8b 05 49 f2 8b 7e 89 c1 48 8b 34 24 <81> e1 00 01 00 00 65 48 8b 14 25 40 f0 01 00 a9 00 01 ff 00 74 0e
RSP: 0018:ffffc90017147a38 EFLAGS: 00000293
RAX: 0000000080000000 RBX: ffff88803f61c300 RCX: 0000000080000000
RDX: 0000000000040000 RSI: ffffffff885adee1 RDI: 0000000000000003
RBP: dffffc0000000000 R08: 0000000000000000 R09: 000000000000000a
R10: ffffffff885adf3f R11: 000000000000000a R12: ffffc90017147ad0
R13: ffff88806fdc8098 R14: ffffffff8d3d30e0 R15: 0000000000000000
 sctp_bind_addr_state+0xb1/0x1d0 net/sctp/bind_addr.c:405
 sctp_copy_local_addr_list+0x1fe/0x4f0 net/sctp/protocol.c:163
 sctp_copy_one_addr net/sctp/bind_addr.c:460 [inline]
 sctp_bind_addr_copy+0xde/0x460 net/sctp/bind_addr.c:56
 sctp_connect_new_asoc+0x1cd/0x770 net/sctp/socket.c:1092
 __sctp_connect+0x3d0/0xc30 net/sctp/socket.c:1194
 sctp_connect net/sctp/socket.c:4808 [inline]
 sctp_inet_connect+0x15e/0x200 net/sctp/socket.c:4823
 __sys_connect_file+0x155/0x1a0 net/socket.c:1896
 __sys_connect+0x161/0x190 net/socket.c:1913
 __do_sys_connect net/socket.c:1923 [inline]
 __se_sys_connect net/socket.c:1920 [inline]
 __x64_sys_connect+0x6f/0xb0 net/socket.c:1920
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fd4caeb98d9
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd4c8430188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007fd4cafbdf60 RCX: 00007fd4caeb98d9
RDX: 000000000000001c RSI: 0000000020000140 RDI: 0000000000000008
RBP: 00007fd4caf13cb4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff4eabcc3f R14: 00007fd4c8430300 R15: 0000000000022000
----------------
Code disassembly (best guess), 2 bytes skipped:
   0:	ba 08 00 00 00       	mov    $0x8,%edx
   5:	4d 8b 03             	mov    (%r11),%r8
   8:	48 0f bd ca          	bsr    %rdx,%rcx
   c:	49 8b 45 00          	mov    0x0(%r13),%rax
  10:	48 63 c9             	movslq %ecx,%rcx
  13:	e9 64 ff ff ff       	jmpq   0xffffff7c
  18:	0f 1f 00             	nopl   (%rax)
  1b:	65 8b 05 49 f2 8b 7e 	mov    %gs:0x7e8bf249(%rip),%eax        # 0x7e8bf26b
  22:	89 c1                	mov    %eax,%ecx
  24:	48 8b 34 24          	mov    (%rsp),%rsi
* 28:	81 e1 00 01 00 00    	and    $0x100,%ecx <-- trapping instruction
  2e:	65 48 8b 14 25 40 f0 	mov    %gs:0x1f040,%rdx
  35:	01 00
  37:	a9 00 01 ff 00       	test   $0xff0100,%eax
  3c:	74 0e                	je     0x4c

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/02 13:58 net-old 5cfe5109a1d7 db0f5787 .config console log report info ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sctp_inet_connect
2021/09/25 03:31 net-old 4526fe74c3c5 8cac236e .config console log report info ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sctp_inet_connect
2021/11/18 04:15 net-next-old 75082e7f4680 cafff8b6 .config console log report info ci-upstream-net-kasan-gce INFO: rcu detected stall in sctp_inet_connect
2021/11/03 16:29 net-next-old cc0356d6a02e 4c1be0be .config console log report info ci-upstream-net-kasan-gce INFO: rcu detected stall in sctp_inet_connect
2021/09/21 13:29 net-next-old bea714581a31 169724fe .config console log report info ci-upstream-net-kasan-gce INFO: rcu detected stall in sctp_inet_connect
2021/08/08 03:17 linux-next 7999516e20bd 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sctp_inet_connect
* Struck through repros no longer work on HEAD.