syzbot


INFO: rcu detected stall in sys_getsockopt

Status: upstream: reported on 2022/09/21 05:52
Reported-by: syzbot+84adca4a1efb62374a51@syzkaller.appspotmail.com
First crash: 80d, last: 80d
similar bugs (8):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_getsockopt (2) 1 1067d 1067d 0/24 closed as invalid on 2020/01/08 05:23
upstream INFO: rcu detected stall in sys_getsockopt (3) 1 1067d 1067d 0/24 closed as invalid on 2020/01/08 05:33
upstream INFO: rcu detected stall in sys_getsockopt (4) 3 1066d 1066d 0/24 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in sys_getsockopt (6) 3 484d 552d 0/24 auto-closed as invalid on 2021/11/10 12:58
upstream INFO: rcu detected stall in sys_getsockopt (7) 2 341d 391d 0/24 closed as invalid on 2022/02/08 10:10
upstream INFO: rcu detected stall in sys_getsockopt (5) 2 884d 927d 0/24 auto-closed as invalid on 2020/10/06 19:28
upstream INFO: rcu detected stall in sys_getsockopt (8) 2 232d 248d 0/24 auto-closed as invalid on 2022/07/21 00:25
upstream INFO: rcu detected stall in sys_getsockopt 2 1102d 1102d 0/24 closed as invalid on 2019/12/04 14:04

Sample crash report:
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P15593
rcu: 	(detected by 0, t=10502 jiffies, g=544237, q=12959)
syz-executor.5  R  running task    28376 15593  29835 0x00000006
Call Trace:
 <IRQ>
 sched_show_task.cold+0x332/0x396 kernel/sched/core.c:5337
 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:1650
 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:1465 [inline]
 __hrtimer_run_queues+0x3f6/0xe60 kernel/time/hrtimer.c:1527
 hrtimer_interrupt+0x326/0x9e0 kernel/time/hrtimer.c:1585
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1071 [inline]
 smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1096
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:__sanitizer_cov_trace_pc+0x37/0x50 kernel/kcov.c:106
Code: 65 8b 15 cc 59 9f 7e 81 e2 00 01 1f 00 75 2b 8b 90 60 13 00 00 83 fa 02 75 20 48 8b 88 68 13 00 00 8b 80 64 13 00 00 48 8b 11 <48> 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 0f 1f 84 00 00
RSP: 0018:ffff88821f0677f8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000040000 RBX: ffff88806e002580 RCX: ffffc9000d427000
RDX: 000000000003ffff RSI: ffffffff87728445 RDI: 0000000000000005
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 000000009d3c8deb R12: ffff88821f067890
R13: ffff88822e896b10 R14: ffffffff8afe7060 R15: 0000000000000000
 __read_once_size include/linux/compiler.h:263 [inline]
 sctp_bind_addr_state+0x165/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:452 [inline]
 sctp_bind_addr_copy+0xde/0x470 net/sctp/bind_addr.c:71
 __sctp_connect+0x739/0xd00 net/sctp/socket.c:1228
 __sctp_setsockopt_connectx+0x132/0x1c0 net/sctp/socket.c:1381
 sctp_getsockopt_connectx3 net/sctp/socket.c:1466 [inline]
 sctp_getsockopt+0x1af7/0x5db0 net/sctp/socket.c:7471
 __sys_getsockopt+0x135/0x210 net/socket.c:2050
 __do_sys_getsockopt net/socket.c:2061 [inline]
 __se_sys_getsockopt net/socket.c:2058 [inline]
 __x64_sys_getsockopt+0xba/0x150 net/socket.c:2058
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa305833409
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa3041a8168 EFLAGS: 00000246 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 00007fa305945f80 RCX: 00007fa305833409
RDX: 000000000000006f RSI: 0000000000000084 RDI: 0000000000000005
RBP: 00007fa30588e367 R08: 0000000020000180 R09: 0000000000000000
R10: 0000000020000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffb9fd736f R14: 00007fa3041a8300 R15: 0000000000022000
syz-executor.5  R  running task    28376 15593  29835 0x80000006
Call Trace:
 <IRQ>
 sched_show_task.cold+0x332/0x396 kernel/sched/core.c:5337
 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:1650
 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:1465 [inline]
 __hrtimer_run_queues+0x3f6/0xe60 kernel/time/hrtimer.c:1527
 hrtimer_interrupt+0x326/0x9e0 kernel/time/hrtimer.c:1585
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1071 [inline]
 smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1096
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:__sanitizer_cov_trace_pc+0x37/0x50 kernel/kcov.c:106
Code: 65 8b 15 cc 59 9f 7e 81 e2 00 01 1f 00 75 2b 8b 90 60 13 00 00 83 fa 02 75 20 48 8b 88 68 13 00 00 8b 80 64 13 00 00 48 8b 11 <48> 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 0f 1f 84 00 00
RSP: 0018:ffff88821f0677f8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000040000 RBX: ffff88806e002580 RCX: ffffc9000d427000
RDX: 000000000003ffff RSI: ffffffff87728445 RDI: 0000000000000005
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 000000009d3c8deb R12: ffff88821f067890
R13: ffff88822e896b10 R14: ffffffff8afe7060 R15: 0000000000000000
 __read_once_size include/linux/compiler.h:263 [inline]
 sctp_bind_addr_state+0x165/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:452 [inline]
 sctp_bind_addr_copy+0xde/0x470 net/sctp/bind_addr.c:71
 __sctp_connect+0x739/0xd00 net/sctp/socket.c:1228
 __sctp_setsockopt_connectx+0x132/0x1c0 net/sctp/socket.c:1381
 sctp_getsockopt_connectx3 net/sctp/socket.c:1466 [inline]
 sctp_getsockopt+0x1af7/0x5db0 net/sctp/socket.c:7471
 __sys_getsockopt+0x135/0x210 net/socket.c:2050
 __do_sys_getsockopt net/socket.c:2061 [inline]
 __se_sys_getsockopt net/socket.c:2058 [inline]
 __x64_sys_getsockopt+0xba/0x150 net/socket.c:2058
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa305833409
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa3041a8168 EFLAGS: 00000246 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 00007fa305945f80 RCX: 00007fa305833409
RDX: 000000000000006f RSI: 0000000000000084 RDI: 0000000000000005
RBP: 00007fa30588e367 R08: 0000000020000180 R09: 0000000000000000
R10: 0000000020000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffb9fd736f R14: 00007fa3041a8300 R15: 0000000000022000
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { P15593 } 10594 jiffies s: 60797 root: 0x0/T
IPVS: dh: UDP 172.20.20.170:0 - no destination available
rcu: blocking rcu_node structures:
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available
IPVS: dh: UDP 172.20.20.170:0 - no destination available

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2022/09/21 05:51 linux-4.19.y 3f8a27f9e27b c4b8ccfd .config log report info INFO: rcu detected stall in sys_getsockopt
* Struck through repros no longer work on HEAD.