syzbot


INFO: rcu detected stall in sctp_setsockopt

Status: auto-closed as invalid on 2020/11/28 08:55
Reported-by: syzbot+009e2c345524a2d0c360@syzkaller.appspotmail.com
First crash: 1412d, last: 1364d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sctp_setsockopt net 8 1686d 1893d 0/26 auto-closed as invalid on 2019/12/12 00:34
upstream INFO: rcu detected stall in sctp_setsockopt (2) sctp 8 1334d 1472d 0/26 auto-closed as invalid on 2020/11/28 11:26

Sample crash report:
netlink: 'syz-executor.0': attribute type 9 has an invalid length.
netlink: 'syz-executor.0': attribute type 2 has an invalid length.
netlink: 'syz-executor.0': attribute type 9 has an invalid length.
netlink: 'syz-executor.0': attribute type 2 has an invalid length.
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P24536
rcu: 	(detected by 0, t=10503 jiffies, g=418501, q=6093)
syz-executor.5  R  running task    28632 24536   6949 0x00000006
Call Trace:
 <IRQ>
 sched_show_task.cold+0x332/0x396 kernel/sched/core.c:5341
 rcu_print_detail_task_stall_rnp+0xc6/0xff kernel/rcu/tree_plugin.h:627
 rcu_print_detail_task_stall kernel/rcu/tree_plugin.h:640 [inline]
 print_other_cpu_stall kernel/rcu/tree.c:1418 [inline]
 check_cpu_stall kernel/rcu/tree.c:1557 [inline]
 __rcu_pending kernel/rcu/tree.c:3293 [inline]
 rcu_pending kernel/rcu/tree.c:3336 [inline]
 rcu_check_callbacks.cold+0x859/0xe19 kernel/rcu/tree.c:2682
 update_process_times+0x2a/0x70 kernel/time/timer.c:1649
 tick_sched_handle+0x9b/0x180 kernel/time/tick-sched.c:168
 tick_sched_timer+0xfc/0x290 kernel/time/tick-sched.c:1278
 __run_hrtimer kernel/time/hrtimer.c:1401 [inline]
 __hrtimer_run_queues+0x3f6/0xe60 kernel/time/hrtimer.c:1463
 hrtimer_interrupt+0x32a/0x930 kernel/time/hrtimer.c:1521
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1067 [inline]
 smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1092
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:write_comp_data+0x6c/0x70 kernel/kcov.c:146
Code: 00 00 4e 8d 04 dd 28 00 00 00 4c 39 c6 72 1b 48 83 c7 01 4e 89 54 00 e0 4e 89 4c 00 e8 4a 89 54 00 f0 4a 89 4c d8 20 48 89 38 <c3> 0f 1f 00 48 8b 0c 24 40 0f b6 d6 40 0f b6 f7 31 ff eb 80 48 8b
RSP: 0018:ffff888022f6f8e8 EFLAGS: 00000297 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000002 RBX: ffff888042e101a0 RCX: ffffffff86bf766d
RDX: 1900000000000000 RSI: ffff8880203f4600 RDI: 0000000000000007
RBP: ffff888022f6f9d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 000000009fc4e2bb R12: 1900000000000000
R13: ffff888042e101a8 R14: 0000000000000000 R15: 0000000000000001
 __sctp_v6_cmp_addr+0x2ad/0x520 net/sctp/ipv6.c:603
 sctp_v6_cmp_addr+0x1a/0xd0 net/sctp/ipv6.c:621
 sctp_bind_addr_state+0x14b/0x330 net/sctp/bind_addr.c:393
 sctp_copy_local_addr_list+0x217/0x4e0 net/sctp/protocol.c:177
 sctp_copy_one_addr net/sctp/bind_addr.c:449 [inline]
 sctp_bind_addr_copy+0xde/0x470 net/sctp/bind_addr.c:71
 __sctp_connect+0x70e/0xd40 net/sctp/socket.c:1214
 __sctp_setsockopt_connectx+0x123/0x180 net/sctp/socket.c:1367
 sctp_setsockopt_connectx net/sctp/socket.c:1399 [inline]
 sctp_setsockopt net/sctp/socket.c:4344 [inline]
 sctp_setsockopt+0x2c88/0x4b60 net/sctp/socket.c:4301
 __sys_setsockopt+0x14d/0x240 net/socket.c:1901
 __do_sys_setsockopt net/socket.c:1912 [inline]
 __se_sys_setsockopt net/socket.c:1909 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:1909
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45cc79
Code: 2d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f3543f31c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 000000000002fa40 RCX: 000000000045cc79
RDX: 000000000000006e RSI: 0000000000000084 RDI: 0000000000000006
RBP: 000000000078c090 R08: 000000000000001c R09: 0000000000000000
R10: 0000000020000600 R11: 0000000000000246 R12: 000000000078c04c
R13: 00007ffd85c4529f R14: 00007f3543f329c0 R15: 000000000078c04c
syz-executor.5  R  running task    28632 24536   6949 0x80000006
Call Trace:
 <IRQ>
 sched_show_task.cold+0x332/0x396 kernel/sched/core.c:5341
 rcu_print_detail_task_stall_rnp+0xc6/0xff kernel/rcu/tree_plugin.h:627
 rcu_print_detail_task_stall kernel/rcu/tree_plugin.h:642 [inline]
 print_other_cpu_stall kernel/rcu/tree.c:1418 [inline]
 check_cpu_stall kernel/rcu/tree.c:1557 [inline]
 __rcu_pending kernel/rcu/tree.c:3293 [inline]
 rcu_pending kernel/rcu/tree.c:3336 [inline]
 rcu_check_callbacks.cold+0x8b7/0xe19 kernel/rcu/tree.c:2682
 update_process_times+0x2a/0x70 kernel/time/timer.c:1649
 tick_sched_handle+0x9b/0x180 kernel/time/tick-sched.c:168
 tick_sched_timer+0xfc/0x290 kernel/time/tick-sched.c:1278
 __run_hrtimer kernel/time/hrtimer.c:1401 [inline]
 __hrtimer_run_queues+0x3f6/0xe60 kernel/time/hrtimer.c:1463
 hrtimer_interrupt+0x32a/0x930 kernel/time/hrtimer.c:1521
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1067 [inline]
 smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1092
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:write_comp_data+0x6c/0x70 kernel/kcov.c:146
Code: 00 00 4e 8d 04 dd 28 00 00 00 4c 39 c6 72 1b 48 83 c7 01 4e 89 54 00 e0 4e 89 4c 00 e8 4a 89 54 00 f0 4a 89 4c d8 20 48 89 38 <c3> 0f 1f 00 48 8b 0c 24 40 0f b6 d6 40 0f b6 f7 31 ff eb 80 48 8b
RSP: 0018:ffff888022f6f8e8 EFLAGS: 00000297 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000002 RBX: ffff888042e101a0 RCX: ffffffff86bf766d
RDX: 1900000000000000 RSI: ffff8880203f4600 RDI: 0000000000000007
RBP: ffff888022f6f9d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 000000009fc4e2bb R12: 1900000000000000
R13: ffff888042e101a8 R14: 0000000000000000 R15: 0000000000000001
 __sctp_v6_cmp_addr+0x2ad/0x520 net/sctp/ipv6.c:603
 sctp_v6_cmp_addr+0x1a/0xd0 net/sctp/ipv6.c:621
 sctp_bind_addr_state+0x14b/0x330 net/sctp/bind_addr.c:393
 sctp_copy_local_addr_list+0x217/0x4e0 net/sctp/protocol.c:177
 sctp_copy_one_addr net/sctp/bind_addr.c:449 [inline]
 sctp_bind_addr_copy+0xde/0x470 net/sctp/bind_addr.c:71
 __sctp_connect+0x70e/0xd40 net/sctp/socket.c:1214
 __sctp_setsockopt_connectx+0x123/0x180 net/sctp/socket.c:1367
 sctp_setsockopt_connectx net/sctp/socket.c:1399 [inline]
 sctp_setsockopt net/sctp/socket.c:4344 [inline]
 sctp_setsockopt+0x2c88/0x4b60 net/sctp/socket.c:4301
 __sys_setsockopt+0x14d/0x240 net/socket.c:1901
 __do_sys_setsockopt net/socket.c:1912 [inline]
 __se_sys_setsockopt net/socket.c:1909 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:1909
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45cc79
Code: 2d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f3543f31c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 000000000002fa40 RCX: 000000000045cc79
RDX: 000000000000006e RSI: 0000000000000084 RDI: 0000000000000006
RBP: 000000000078c090 R08: 000000000000001c R09: 0000000000000000
R10: 0000000020000600 R11: 0000000000000246 R12: 000000000078c04c
R13: 00007ffd85c4529f R14: 00007f3543f329c0 R15: 000000000078c04c

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/31 08:54 linux-4.19.y 205a42ce2861 8df85ed9 .config console log report ci2-linux-4-19
2020/06/14 22:08 linux-4.19.y 3fc898571b97 2a22c77a .config console log report ci2-linux-4-19
2020/06/13 10:52 linux-4.19.y 3fc898571b97 f4724dd3 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.