syzbot


INFO: rcu detected stall in sock_close (4)

Status: auto-obsoleted due to no activity on 2024/01/24 15:51
Subsystems: net
[Documentation on labels]
First crash: 222d, last: 184d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in sock_close (2) 1 94d 94d 0/3 upstream: reported on 2024/01/24 14:38
linux-6.1 INFO: rcu detected stall in sock_close origin:upstream C done 1 292d 292d 3/3 fixed on 2023/09/23 10:26
upstream INFO: rcu detected stall in sock_close cgroups mm 6 1606d 1607d 0/26 closed as invalid on 2019/12/04 14:04
linux-6.1 INFO: rcu detected stall in sock_close (2) 1 86d 86d 0/3 upstream: reported on 2024/02/01 05:24
upstream INFO: rcu detected stall in sock_close (3) tipc C done done 5 894d 1389d 0/26 closed as invalid on 2022/02/08 10:42
linux-5.15 INFO: rcu detected stall in sock_close C error 2 272d 326d 0/3 auto-obsoleted due to no activity on 2023/11/07 13:02
upstream INFO: rcu detected stall in sock_close (2) cgroups mm 1 1571d 1571d 0/26 closed as invalid on 2020/01/09 08:13
android-5-10 BUG: soft lockup in sock_close C 22 1d14h 33d 0/2 upstream: reported C repro on 2024/03/25 07:28
android-5-15 BUG: soft lockup in sock_close C 112 17m 32d 0/2 upstream: reported C repro on 2024/03/26 23:21
android-6-1 BUG: soft lockup in sock_close C error 2 31d 32d 0/2 upstream: reported C repro on 2024/03/27 04:09

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P12/1:b..l
rcu: 	(detected by 0, t=10502 jiffies, g=55497, q=116 ncpus=2)
task:kworker/u4:1    state:R  running task     stack:21528 pid:12    ppid:2      flags:0x00004000
Workqueue: bat_events batadv_nc_worker
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x196c/0x4af0 kernel/sched/core.c:6695
 preempt_schedule_irq+0xfb/0x1b0 kernel/sched/core.c:7007
 irqentry_exit+0x57/0x80 kernel/entry/common.c:432
 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:650
RIP: 0010:lock_acquire+0x25a/0x520 kernel/locking/lockdep.c:5757
Code: 2b 00 74 08 4c 89 f7 e8 64 c5 7b 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:ffffc90000117a20 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000022f50 RCX: ffffffff816d1d87
RDX: 0000000000000000 RSI: ffffffff8b0ab6a0 RDI: ffffffff8b5986e0
RBP: ffffc90000117b80 R08: dffffc0000000000 R09: 1ffffffff20dc870
R10: dffffc0000000000 R11: fffffbfff20dc871 R12: 1ffff92000022f4c
R13: dffffc0000000000 R14: ffffc90000117a80 R15: 0000000000000246
 rcu_lock_acquire include/linux/rcupdate.h:303 [inline]
 rcu_read_lock include/linux/rcupdate.h:749 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
 batadv_nc_worker+0xec/0x610 net/batman-adv/network-coding.c:719
 process_one_work kernel/workqueue.c:2630 [inline]
 process_scheduled_works+0x90f/0x1400 kernel/workqueue.c:2703
 worker_thread+0xa5f/0xff0 kernel/workqueue.c:2784
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g55497 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=49261
rcu: rcu_preempt kthread starved for 10502 jiffies! g55497 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=1
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:I stack:26136 pid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x196c/0x4af0 kernel/sched/core.c:6695
 schedule+0xc3/0x180 kernel/sched/core.c:6771
 schedule_timeout+0x1bd/0x300 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x2c6/0x1010 kernel/rcu/tree.c:1613
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:1812
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 7671 Comm: syz-executor.1 Not tainted 6.6.0-rc7-syzkaller-00041-g611da07b89fd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:__lock_acquire+0x21/0x7f70 kernel/locking/lockdep.c:4992
Code: eb 89 0f 1f 80 00 00 00 00 f3 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec a0 02 00 00 44 89 4c 24 78 <45> 89 c5 41 89 ce 89 94 24 c8 00 00 00 41 89 f4 48 89 fa 65 48 8b
RSP: 0018:ffffc900001f05e0 EFLAGS: 00000082
RAX: 0000000000000001 RBX: ffffc900001f0940 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffffffff8d994b20
RBP: ffffc900001f08a8 R08: 0000000000000001 R09: 0000000000000001
R10: dffffc0000000000 R11: fffffbfff1d32d36 R12: 1ffff9200003e124
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000046
FS:  0000555556c2a480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd32a775198 CR3: 0000000028413000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5753
 debug_objects_fill_pool+0x9f/0x9a0 lib/debugobjects.c:614
 debug_object_activate+0x12b/0x530 lib/debugobjects.c:713
 debug_hrtimer_activate kernel/time/hrtimer.c:422 [inline]
 debug_activate kernel/time/hrtimer.c:477 [inline]
 enqueue_hrtimer+0x30/0x310 kernel/time/hrtimer.c:1087
 __run_hrtimer kernel/time/hrtimer.c:1705 [inline]
 __hrtimer_run_queues+0x6c0/0xd10 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1063 [inline]
 __sysvec_apic_timer_interrupt+0x104/0x390 arch/x86/kernel/apic/apic.c:1080
 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1074
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:inet_sock_destruct+0x3f9/0x7f0 net/ipv4/af_inet.c:142
Code: 00 00 00 89 de e8 87 72 3b f8 83 fb 01 75 45 48 8b 04 24 4c 8d 78 12 4c 89 fb 48 c1 eb 03 0f b6 04 2b 84 c0 0f 85 a3 03 00 00 <41> 0f b6 2f bf 07 00 00 00 89 ee e8 c7 71 3b f8 83 fd 07 0f 85 68
RSP: 0018:ffffc90008b4fd58 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 1ffff1100f3bd312 RCX: ffff88807d975940
RDX: ffff88807d975940 RSI: 0000000000000001 RDI: 0000000000000001
RBP: dffffc0000000000 R08: ffffffff8952adf9 R09: 1ffff1100f3bd31c
R10: dffffc0000000000 R11: ffffed100f3bd31d R12: 1ffff1100f3bd315
R13: ffff888079de9d68 R14: ffff888079de98a8 R15: ffff888079de9892
 __sk_destruct+0x54/0x610 net/core/sock.c:2185
 inet_release+0x178/0x1f0 net/ipv4/af_inet.c:433
 __sock_release net/socket.c:659 [inline]
 sock_close+0xb8/0x230 net/socket.c:1419
 __fput+0x3f8/0x910 fs/file_table.c:384
 __do_sys_close fs/open.c:1572 [inline]
 __se_sys_close+0x15f/0x220 fs/open.c:1557
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd32a67b9da
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24
RSP: 002b:00007ffc14cf5190 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fd32a67b9da
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007ffc14cf520c R08: 00007ffc14cf4aec R09: 00007ffc14cf4ef7
R10: 00007ffc14cf4b70 R11: 0000000000000293 R12: 0000000000000032
R13: 00000000000f92dd R14: 00000000000f92bf R15: 0000000000000002
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/26 15:44 upstream 611da07b89fd 23afc60f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sock_close
2023/09/19 02:28 upstream 2cf0f7156238 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sock_close
* Struck through repros no longer work on HEAD.