syzbot


INFO: rcu detected stall in tun_chr_close (4)

Status: closed as invalid on 2022/02/08 10:00
Subsystems: bpf net
[Documentation on labels]
First crash: 900d, last: 830d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in tun_chr_close (3) netfilter 1 1369d 1369d 0/26 auto-closed as invalid on 2020/10/25 04:38
upstream INFO: rcu detected stall in tun_chr_close (2) netfilter 1 1510d 1510d 0/26 closed as invalid on 2020/05/30 17:14
upstream INFO: rcu detected stall in tun_chr_close net 13 1964d 2045d 0/26 auto-closed as invalid on 2019/06/08 11:01
linux-5.15 INFO: rcu detected stall in tun_chr_close 1 104d 104d 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 328d 328d 0/26 auto-obsoleted due to no activity on 2023/09/01 17:23
android-5-15 BUG: soft lockup in tun_chr_close 1 6d02h 6d02h 0/2 premoderation: reported on 2024/04/20 23:17

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-....: (10499 ticks this GP) idle=261/1/0x4000000000000000 softirq=174161/174162 fqs=5212 
	(t=10500 jiffies g=329225 q=189)
NMI backtrace for cpu 0
CPU: 0 PID: 25642 Comm: syz-executor.1 Not tainted 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x1ae/0x220 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_dump_cpu_stacks+0x25e/0x3f0 kernel/rcu/tree_stall.h:343
 print_cpu_stall kernel/rcu/tree_stall.h:627 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:711 [inline]
 rcu_pending kernel/rcu/tree.c:3878 [inline]
 rcu_sched_clock_irq.cold+0x9d/0x746 kernel/rcu/tree.c:2597
 update_process_times+0x16d/0x200 kernel/time/timer.c:1785
 tick_sched_handle+0x9b/0x180 kernel/time/tick-sched.c:226
 tick_sched_timer+0x1b0/0x2d0 kernel/time/tick-sched.c:1421
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x1c0/0xe50 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_is_held_type+0xff/0x140 kernel/locking/lockdep.c:5673
Code: 00 00 b8 ff ff ff ff 65 0f c1 05 3c 09 cb 76 83 f8 01 75 29 9c 58 f6 c4 02 75 3d 48 f7 04 24 00 02 00 00 74 01 fb 48 83 c4 08 <44> 89 e8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 45 31 ed eb b9 0f 0b 48
RSP: 0018:ffffc90002baf770 EFLAGS: 00000292
RAX: 0000000000000046 RBX: 0000000000000001 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffffff8b982da0 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff8192251d R11: 0000000000000000 R12: ffff88807d550000
R13: 0000000000000001 R14: 00000000ffffffff R15: ffff88807d550a88
 dev_map_notification+0x223/0xa20 kernel/bpf/devmap.c:1109
 notifier_call_chain+0xb5/0x200 kernel/notifier.c:83
 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:2002
 call_netdevice_notifiers_extack net/core/dev.c:2014 [inline]
 call_netdevice_notifiers net/core/dev.c:2028 [inline]
 unregister_netdevice_many+0x94f/0x1790 net/core/dev.c:11074
 unregister_netdevice_queue+0x2dd/0x3c0 net/core/dev.c:11008
 unregister_netdevice include/linux/netdevice.h:2989 [inline]
 __tun_detach+0x10ad/0x13d0 drivers/net/tun.c:670
 tun_detach drivers/net/tun.c:687 [inline]
 tun_chr_close+0xc4/0x180 drivers/net/tun.c:3397
 __fput+0x286/0x9f0 fs/file_table.c:280
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0xbaa/0x2a20 kernel/exit.c:826
 do_group_exit+0x125/0x310 kernel/exit.c:923
 get_signal+0x47d/0x21d0 kernel/signal.c:2855
 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:868
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fb140a3bae9
Code: Unable to access opcode bytes at RIP 0x7fb140a3babf.
RSP: 002b:00007fb13dfb1188 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: 0000000000000005 RBX: 00007fb140b4ef60 RCX: 00007fb140a3bae9
RDX: 0000000000000040 RSI: 0000000020000080 RDI: 0100000000000000
RBP: 00007fb140a95f25 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd14e40def R14: 00007fb13dfb1300 R15: 0000000000022000
 </TASK>
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	b8 ff ff ff ff       	mov    $0xffffffff,%eax
   7:	65 0f c1 05 3c 09 cb 	xadd   %eax,%gs:0x76cb093c(%rip)        # 0x76cb094b
   e:	76
   f:	83 f8 01             	cmp    $0x1,%eax
  12:	75 29                	jne    0x3d
  14:	9c                   	pushfq
  15:	58                   	pop    %rax
  16:	f6 c4 02             	test   $0x2,%ah
  19:	75 3d                	jne    0x58
  1b:	48 f7 04 24 00 02 00 	testq  $0x200,(%rsp)
  22:	00
  23:	74 01                	je     0x26
  25:	fb                   	sti
  26:	48 83 c4 08          	add    $0x8,%rsp
* 2a:	44 89 e8             	mov    %r13d,%eax <-- trapping instruction
  2d:	5b                   	pop    %rbx
  2e:	5d                   	pop    %rbp
  2f:	41 5c                	pop    %r12
  31:	41 5d                	pop    %r13
  33:	41 5e                	pop    %r14
  35:	41 5f                	pop    %r15
  37:	c3                   	retq
  38:	45 31 ed             	xor    %r13d,%r13d
  3b:	eb b9                	jmp    0xfffffff6
  3d:	0f 0b                	ud2
  3f:	48                   	rex.W

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/08 19:56 bpf 47b3708c6088 d29682f1 .config console log report info ci-upstream-bpf-kasan-gce INFO: rcu detected stall in tun_chr_close
2022/01/17 20:25 net-next-old fe8152b38d3a 731a2d23 .config console log report info ci-upstream-net-kasan-gce INFO: rcu detected stall in tun_chr_close
2022/01/09 14:14 net-next-old 82192cb497f9 2ca0d385 .config console log report info ci-upstream-net-kasan-gce INFO: rcu detected stall in tun_chr_close
* Struck through repros no longer work on HEAD.