syzbot


INFO: rcu detected stall in tun_chr_close

Status: auto-closed as invalid on 2019/06/08 11:01
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+d953ae028b23023fe564@syzkaller.appspotmail.com
First crash: 2259d, last: 2178d
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 1583d 1583d 0/28 auto-closed as invalid on 2020/10/25 04:38
upstream INFO: rcu detected stall in tun_chr_close (2) netfilter 1 1724d 1724d 0/28 closed as invalid on 2020/05/30 17:14
upstream INFO: rcu detected stall in tun_chr_close (4) bpf net 3 1043d 1113d 0/28 closed as invalid on 2022/02/08 10:00
linux-5.15 INFO: rcu detected stall in tun_chr_close (2) 1 80d 80d 0/3 upstream: reported on 2024/09/06 18:42
linux-5.15 INFO: rcu detected stall in tun_chr_close 1 317d 317d 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 541d 541d 0/28 auto-obsoleted due to no activity on 2023/09/01 17:23

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-....: (10431 ticks this GP) idle=bde/1/0x4000000000000002 softirq=239321/239321 fqs=5225 
rcu: 	 (t=10501 jiffies g=380525 q=934)
NMI backtrace for cpu 0
CPU: 0 PID: 15076 Comm: syz-executor1 Not tainted 4.20.0-rc5+ #369
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x244/0x39d lib/dump_stack.c:113
 nmi_cpu_backtrace.cold.2+0x5c/0xa1 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1e8/0x22a lib/nmi_backtrace.c:62
 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_dump_cpu_stacks+0x16f/0x1bc kernel/rcu/tree.c:1195
 print_cpu_stall.cold.67+0x1f3/0x3c7 kernel/rcu/tree.c:1334
 check_cpu_stall kernel/rcu/tree.c:1408 [inline]
 rcu_pending kernel/rcu/tree.c:2961 [inline]
 rcu_check_callbacks+0xf3b/0x13f0 kernel/rcu/tree.c:2506
 update_process_times+0x2d/0x70 kernel/time/timer.c:1636
 tick_sched_handle+0x9f/0x180 kernel/time/tick-sched.c:164
 tick_sched_timer+0x45/0x130 kernel/time/tick-sched.c:1274
 __run_hrtimer kernel/time/hrtimer.c:1398 [inline]
 __hrtimer_run_queues+0x41c/0x10d0 kernel/time/hrtimer.c:1460
 hrtimer_interrupt+0x313/0x780 kernel/time/hrtimer.c:1518
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1034 [inline]
 smp_apic_timer_interrupt+0x1a1/0x760 arch/x86/kernel/apic/apic.c:1059
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:804
 </IRQ>
RIP: 0010:arch_local_irq_enable arch/x86/include/asm/paravirt.h:771 [inline]
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x56/0x80 kernel/locking/spinlock.c:192
Code: 52 89 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 32 48 83 3d c3 10 77 01 00 74 1f fb 66 0f 1f 44 00 00 <bf> 01 00 00 00 e8 c0 bb 7a f9 65 8b 05 79 fd 26 78 85 c0 74 05 5b
RSP: 0018:ffff8881d1c96c68 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: dffffc0000000000 RBX: ffff8881dae2cc80 RCX: 1ffff1103a8b7554
RDX: 1ffffffff12a4020 RSI: 0000000000000000 RDI: ffffffff89520100
RBP: ffff8881d1c96c70 R08: ffff8881d45baaa0 R09: 0000000000000006
R10: 0000000000000000 R11: ffff8881d45ba200 R12: ffff8881d45ba820
R13: ffffffff882b07a0 R14: ffff8881dae2cc80 R15: ffff8881d45ba200
 rq_unlock_irq kernel/sched/sched.h:1149 [inline]
 __schedule+0x168a/0x21d0 kernel/sched/core.c:3475
 schedule+0xfe/0x460 kernel/sched/core.c:3516
 do_sched_yield+0x1bf/0x2a0 kernel/sched/core.c:4947
 yield+0xb3/0xe0 kernel/sched/core.c:5022
 dev_deactivate_many+0x5d3/0xdd0 net/sched/sch_generic.c:1227
 __dev_close_many+0x197/0x380 net/core/dev.c:1461
 dev_close_many+0x2df/0x860 net/core/dev.c:1499
 rollback_registered_many+0x543/0x1250 net/core/dev.c:7986
 rollback_registered+0x1e9/0x420 net/core/dev.c:8051
 unregister_netdevice_queue+0x321/0x5e0 net/core/dev.c:9095
 unregister_netdevice include/linux/netdevice.h:2637 [inline]
 __tun_detach+0x11b8/0x15c0 drivers/net/tun.c:723
 tun_detach drivers/net/tun.c:740 [inline]
 tun_chr_close+0xe3/0x180 drivers/net/tun.c:3381
 __fput+0x385/0xa30 fs/file_table.c:278
 ____fput+0x15/0x20 fs/file_table.c:309
 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166
 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
 do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x411111
Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 34 19 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01
RSP: 002b:00007ffc33abc300 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000411111
RDX: 0000000000000000 RSI: 00000000007319e0 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000081567d15 R09: 0000000081567d19
R10: 00007ffc33abc230 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 00000000000005a1 R15: 0000000000000001

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/12/10 11:00 upstream 0844895a2e51 96cc4c50 .config console log report ci-upstream-kasan-gce-root
2018/12/09 08:22 upstream 8214bdf7d3e6 c7918378 .config console log report ci-upstream-kasan-gce-selinux-root
2018/11/21 16:58 upstream c8ce94b8fe53 9db828b5 .config console log report ci-upstream-kasan-gce-selinux-root
2018/11/15 21:20 upstream da5322e65940 3a41052e .config console log report ci-upstream-kasan-gce-smack-root
2018/11/11 09:55 upstream e255aee5b66c f3c4e618 .config console log report ci-upstream-kasan-gce-selinux-root
2018/11/03 05:46 upstream 8adcc59974b8 8bd6bd63 .config console log report ci-upstream-kasan-gce-selinux-root
2018/10/28 03:20 upstream 69d5b97c5973 8efba39a .config console log report ci-upstream-kasan-gce-smack-root
2018/10/24 21:17 upstream 638820d8da8e a8292de9 .config console log report ci-upstream-kasan-gce-root
2018/10/24 18:36 upstream 638820d8da8e a8292de9 .config console log report ci-upstream-kasan-gce-selinux-root
2018/10/23 12:38 upstream 58a022870787 24fa2ad8 .config console log report ci-upstream-kasan-gce-root
2018/10/19 20:59 bpf-next 3ddeac6705ab ecb386fe .config console log report ci-upstream-bpf-next-kasan-gce
2018/09/19 19:11 bpf-next 534e0e52bc23 7f125108 .config console log report ci-upstream-bpf-next-kasan-gce
2018/10/16 15:32 linux-next 6d5d82417dd6 1ba7fd7e .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.