syzbot


INFO: rcu detected stall in tun_chr_close (2)

Status: upstream: reported on 2024/09/06 18:42
Reported-by: syzbot+d1684e6cac8b6aa281b1@syzkaller.appspotmail.com
First crash: 78d, last: 78d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in tun_chr_close (3) netfilter 1 1581d 1581d 0/28 auto-closed as invalid on 2020/10/25 04:38
upstream INFO: rcu detected stall in tun_chr_close (2) netfilter 1 1721d 1721d 0/28 closed as invalid on 2020/05/30 17:14
upstream INFO: rcu detected stall in tun_chr_close (4) bpf net 3 1041d 1111d 0/28 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in tun_chr_close net 13 2175d 2256d 0/28 auto-closed as invalid on 2019/06/08 11:01
linux-5.15 INFO: rcu detected stall in tun_chr_close 1 315d 315d 0/3 auto-obsoleted due to no activity on 2024/04/23 00:30
upstream INFO: rcu detected stall in tun_chr_close (5) net 1 539d 539d 0/28 auto-obsoleted due to no activity on 2023/09/01 17:23
android-5-15 BUG: soft lockup in tun_chr_close 3 187d 217d 0/2 auto-obsoleted due to no activity on 2024/08/19 06:38

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-....: (1 GPs behind) idle=035/1/0x4000000000000000 softirq=7832/7857 fqs=5245 
	(detected by 1, t=10502 jiffies, g=6489, q=1503)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4262 Comm: syz-executor Not tainted 5.15.166-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:enqueue_hrtimer+0x1a6/0x390 kernel/time/hrtimer.c:1092
Code: c1 e8 03 42 0f b6 04 20 84 c0 0f 85 9a 00 00 00 41 c6 46 38 01 49 83 c5 50 4c 89 ef 4c 89 f6 e8 40 a1 be 02 0f b6 c0 5b 41 5c <41> 5d 41 5e 41 5f 5d c3 e8 dd c4 10 00 0f 0b e9 4d ff ff ff e8 d1
RSP: 0018:ffffc90000007a98 EFLAGS: 00000086
RAX: 0000000000000001 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000018 RSI: ffff8880b902a3d0 RDI: ffff8880615d8340
RBP: ffff8880b902a244 R08: dffffc0000000000 R09: ffff8880615d8340
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b902a200
R13: ffff8880b902a3d0 R14: ffff8880615d8340 R15: 1ffff11017205470
FS:  0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc30aece08 CR3: 0000000076c72000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __run_hrtimer kernel/time/hrtimer.c:1705 [inline]
 __hrtimer_run_queues+0x6b6/0xcf0 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102
 sysvec_apic_timer_interrupt+0x3e/0xb0 arch/x86/kernel/apic/apic.c:1096
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:ffs arch/x86/include/asm/bitops.h:297 [inline]
RIP: 0010:handle_softirqs+0x1d6/0x930 kernel/softirq.c:546
Code: 24 78 4c 89 7c 24 70 0f b7 db 48 c7 c7 60 11 8a 8a e8 2e ae e6 08 65 66 c7 05 a4 14 b6 7e 00 00 e8 6f 56 39 00 fb 89 5c 24 34 <b8> ff ff ff ff 0f bc 44 24 34 41 89 c6 41 ff c6 0f 85 f3 00 00 00
RSP: 0018:ffffc90000007e20 EFLAGS: 00000282
RAX: 52d29f9aa731c600 RBX: 0000000000000386 RCX: ffffffff81631a88
RDX: dffffc0000000000 RSI: ffffffff8a8b2a20 RDI: ffffffff8ad90100
RBP: ffffc90000007f30 R08: dffffc0000000000 R09: fffffbfff20e223b
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880766f8000
R13: 1ffff92000000fe8 R14: dffffc0000000000 R15: 1ffff92000000fd8
 __do_softirq kernel/softirq.c:592 [inline]
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:finish_lock_switch+0x91/0x100 kernel/sched/core.c:4782
Code: 45 31 c9 68 37 9b 59 81 e8 9c 11 09 00 48 83 c4 08 4c 89 ff e8 50 db fe ff 66 90 4c 89 ff e8 e6 17 e4 08 e8 21 3f 2d 00 fb 5b <41> 5c 41 5d 41 5e 41 5f c3 44 89 f1 80 e1 07 80 c1 03 38 c1 7c 87
RSP: 0018:ffffc90003be72d8 EFLAGS: 00000286
RAX: 52d29f9aa731c600 RBX: ffff888062fed974 RCX: ffffffff81631a88
RDX: dffffc0000000000 RSI: ffffffff8a8b2a20 RDI: ffffffff8ad90100
RBP: ffffc90003be7350 R08: dffffc0000000000 R09: fffffbfff20e223b
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff1101720760b R14: ffff8880b903b058 R15: ffff8880b903a300
 finish_task_switch+0x134/0x630 kernel/sched/core.c:4899
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12cc/0x45b0 kernel/sched/core.c:6373
 schedule+0x11b/0x1f0 kernel/sched/core.c:6456
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6515
 __mutex_lock_common+0xe34/0x25a0 kernel/locking/mutex.c:669
 __mutex_lock kernel/locking/mutex.c:729 [inline]
 mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743
 rcu_barrier+0x9c/0x4e0 kernel/rcu/tree.c:4039
 netdev_run_todo+0x381/0xc40 net/core/dev.c:10622
 tun_detach drivers/net/tun.c:705 [inline]
 tun_chr_close+0x136/0x1b0 drivers/net/tun.c:3440
 __fput+0x3fe/0x8e0 fs/file_table.c:280
 task_work_run+0x129/0x1a0 kernel/task_work.c:188
 exit_task_work include/linux/task_work.h:33 [inline]
 do_exit+0x6a3/0x2480 kernel/exit.c:874
 do_group_exit+0x144/0x310 kernel/exit.c:996
 get_signal+0xc66/0x14e0 kernel/signal.c:2897
 arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:867
 handle_signal_work kernel/entry/common.c:154 [inline]
 exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:178
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214
 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
 syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f18430b1d8c
Code: Unable to access opcode bytes at RIP 0x7f18430b1d62.
RSP: 002b:00007fff8fa4cdb0 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: 000000000000002c RBX: 00007f1843d97620 RCX: 00007f18430b1d8c
RDX: 000000000000002c RSI: 00007f1843d97670 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007fff8fa4ce04 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003
R13: 0000000000000000 R14: 00007f1843d97670 R15: 0000000000000000
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/06 18:42 linux-5.15.y 14e468424d3e 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in tun_chr_close
* Struck through repros no longer work on HEAD.