syzbot


INFO: rcu detected stall in sys_getsockopt

Status: auto-obsoleted due to no activity on 2024/03/21 16:23
Reported-by: syzbot+8ea796d5925941ba12f6@syzkaller.appspotmail.com
First crash: 161d, last: 161d
Similar bugs (14)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_getsockopt (2) kernel 1 1595d 1595d 0/26 closed as invalid on 2020/01/08 05:23
linux-4.19 INFO: rcu detected stall in sys_getsockopt 1 608d 608d 0/1 auto-obsoleted due to no activity on 2023/01/19 05:52
upstream INFO: rcu detected stall in sys_getsockopt (11) netfilter 4 142d 154d 0/26 auto-obsoleted due to no activity on 2024/03/30 17:47
upstream INFO: rcu detected stall in sys_getsockopt (3) kernel 1 1595d 1595d 0/26 closed as invalid on 2020/01/08 05:33
upstream INFO: rcu detected stall in sys_getsockopt (4) kernel 3 1595d 1595d 0/26 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in sys_getsockopt (6) kvm 3 1013d 1081d 0/26 auto-closed as invalid on 2021/11/10 12:58
upstream INFO: rcu detected stall in sys_getsockopt (7) netfilter 2 870d 919d 0/26 closed as invalid on 2022/02/08 10:10
upstream INFO: rcu detected stall in sys_getsockopt (5) sctp 2 1412d 1455d 0/26 auto-closed as invalid on 2020/10/06 19:28
linux-6.1 INFO: rcu detected stall in sys_getsockopt 4 78d 235d 0/3 upstream: reported on 2023/09/28 22:07
upstream INFO: rcu detected stall in sys_getsockopt (10) mm 9 273d 355d 0/26 auto-obsoleted due to no activity on 2023/11/20 15:28
upstream INFO: rcu detected stall in sys_getsockopt (9) kernel 6 476d 632d 0/26 auto-obsoleted due to no activity on 2023/05/01 05:21
upstream INFO: rcu detected stall in sys_getsockopt (8) net 2 760d 776d 0/26 auto-closed as invalid on 2022/07/21 00:25
upstream INFO: rcu detected stall in sys_getsockopt kernel 2 1630d 1630d 0/26 closed as invalid on 2019/12/04 14:04
android-5-15 BUG: soft lockup in sys_getsockopt 4 22d 28d 0/2 premoderation: reported on 2024/04/23 07:54

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P4217/1:b..l P3735/1:b..l P6372/1:b..l
	(detected by 1, t=10502 jiffies, g=59421, q=105)
task:syz-executor.1  state:R  running task     stack:20960 pid: 6372 ppid:  6371 flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6780
 irqentry_exit+0x53/0x80 kernel/entry/common.c:426
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5627
Code: 2b 00 74 08 4c 89 f7 e8 dc 5e 67 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc90004b56d60 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff9200096adb8 RCX: 1ffff9200096ad58
RDX: dffffc0000000000 RSI: ffffffff8a8b2000 RDI: ffffffff8ad87dc0
RBP: ffffc90004b56ea8 R08: dffffc0000000000 R09: fffffbfff1f79e19
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200096adb4
R13: dffffc0000000000 R14: ffffc90004b56dc0 R15: 0000000000000246
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:269
 rcu_read_lock include/linux/rcupdate.h:696 [inline]
 net_generic+0x1b/0x200 include/net/netns/generic.h:44
 find_inlist_lock_noload+0x39/0x260 net/bridge/netfilter/ebtables.c:324
 find_inlist_lock net/bridge/netfilter/ebtables.c:370 [inline]
 find_table_lock net/bridge/netfilter/ebtables.c:379 [inline]
 do_ebt_get_ctl+0x3cb/0x28e0 net/bridge/netfilter/ebtables.c:2461
 nf_getsockopt+0x28e/0x2b0 net/netfilter/nf_sockopt.c:116
 ip_getsockopt+0x136c/0x1ec0 net/ipv4/ip_sockglue.c:1787
 tcp_getsockopt+0x26d/0x6c20 net/ipv4/tcp.c:4293
 __sys_getsockopt+0x2a6/0x550 net/socket.c:2240
 __do_sys_getsockopt net/socket.c:2255 [inline]
 __se_sys_getsockopt net/socket.c:2252 [inline]
 __x64_sys_getsockopt+0xb1/0xc0 net/socket.c:2252
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7faa6b7ed74a
RSP: 002b:00007fff93b89278 EFLAGS: 00000246 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 00007faa6b8e5ea0 RCX: 00007faa6b7ed74a
RDX: 0000000000000080 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000003 R08: 00007fff93b8929c R09: 00007fff93b896a7
R10: 00007fff93b892a0 R11: 0000000000000246 R12: 00007fff93b892a0
R13: 00007fff93b8929c R14: 0000000000000002 R15: 0000000000000000
 </TASK>
task:kworker/u4:11   state:R  running task     stack:20152 pid: 3735 ppid:     2 flags:0x00004000
Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 preempt_schedule_notrace+0xf8/0x140 kernel/sched/core.c:6631
 preempt_schedule_notrace_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:35
 rcu_is_watching+0x72/0xa0 kernel/rcu/tree.c:1124
 trace_lock_acquire include/trace/events/lock.h:13 [inline]
 lock_acquire+0xdd/0x4f0 kernel/locking/lockdep.c:5594
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:269
 rcu_read_lock include/linux/rcupdate.h:696 [inline]
 batadv_iv_ogm_slide_own_bcast_window net/batman-adv/bat_iv_ogm.c:755 [inline]
 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:826 [inline]
 batadv_iv_ogm_schedule+0x429/0x1000 net/batman-adv/bat_iv_ogm.c:869
 batadv_iv_send_outstanding_bat_ogm_packet+0x6fa/0x800 net/batman-adv/bat_iv_ogm.c:1713
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
task:kworker/u4:17   state:R  running task     stack:23320 pid: 4217 ppid:     2 flags:0x00004000
Workqueue: netns cleanup_net
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6780
 irqentry_exit+0x53/0x80 kernel/entry/common.c:426
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5627
Code: 2b 00 74 08 4c 89 f7 e8 dc 5e 67 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc90002df78e0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff920005bef28 RCX: 1ffff920005beec8
RDX: dffffc0000000000 RSI: ffffffff8a8b2000 RDI: ffffffff8ad87dc0
RBP: ffffc90002df7a40 R08: dffffc0000000000 R09: fffffbfff1f79e19
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920005bef24
R13: dffffc0000000000 R14: ffffc90002df7940 R15: 0000000000000246
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:269
 rcu_read_lock include/linux/rcupdate.h:696 [inline]
 inet_twsk_purge+0x11e/0xa20 net/ipv4/inet_timewait_sock.c:268
 ops_exit_list net/core/net_namespace.c:174 [inline]
 cleanup_net+0x763/0xb60 net/core/net_namespace.c:596
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/12 16:22 linux-5.15.y 8a1d809b0545 ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_getsockopt
* Struck through repros no longer work on HEAD.