Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2022 19:38:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 266999] panic: make_dev_sv: bad si_name (error=17, si_name=tun3)
Message-ID:  <bug-266999-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266999

            Bug ID: 266999
           Summary: panic: make_dev_sv: bad si_name (error=3D17,
                    si_name=3Dtun3)
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: p.mousavizadeh@protonmail.com

FreeBSD Version:
% freebsd-version -ku
13.1-RELEASE-p2
13.1-RELEASE-p2

Steps to reproduce:
I do not know why this is happens. This happened multiple times and logs be=
fore
panic are not familiar. But the panic message is always the same with excep=
tion
of the tun* number.

panic message:
kernel: panic: make_dev_sv: bad si_name (error=3D17, si_name=3Dtun2)
kernel: cpuid =3D 0
kernel: time =3D 1665591262
kernel: KDB: stack backtrace:
kernel: #0 0xffffffff80c694a5 at kdb_backtrace+0x65
kernel: #1 0xffffffff80c1bb5f at vpanic+0x17f
kernel: #2 0xffffffff80c1b9d3 at panic+0x43
kernel: #3 0xffffffff80bb07dd at make_dev_sv+0x3fd
kernel: #4 0xffffffff80bb03cb at make_dev_s+0x3b
kernel: #5 0xffffffff80d3e69b at tun_create_device+0xdb
kernel: #6 0xffffffff80d3fecc at tunclone+0x25c
kernel: #7 0xffffffff80ab27d0 at devfs_lookup+0x600
kernel: #8 0xffffffff80ce9bfc at lookup+0x45c
kernel: #9 0xffffffff80ce8e29 at namei+0x259
kernel: #10 0xffffffff80d0e2f3 at vn_open_cred+0x533
kernel: #11 0xffffffff80d04663 at kern_openat+0x283
kernel: #12 0xffffffff810b0d55 at amd64_syscall+0x775
kernel: #13 0xffffffff81087e8b at fast_syscall_common+0xf8
kernel: Uptime: 8m18s
kernel: Dumping 337 out of 4054
MB:..5%..15%..24%..34%..43%..53%..62%..72%..81%..91%
kernel: Dump complete
kernel: Automatic reboot in 15 seconds - press a key on the console to abort
kernel: Rebooting...
kernel: ---<<BOOT>>---
kernel: Copyright (c) 1992-2021 The FreeBSD Project.
kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,
1994
kernel:  The Regents of the University of California. All rights reserved.
kernel: FreeBSD is a registered trademark of The FreeBSD Foundation.
kernel: FreeBSD 13.1-RELEASE-p2 GENERIC amd64
kernel: FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git
llvmorg-13.0.0-0-gd7b669b3a303)
kernel: VT(vga): text 80x25
kernel: CPU: QEMU Virtual CPU version 2.5+ (1995.51-MHz K8-class CPU)

Detailed:
% cat /var/crash/core.txt.3 | grep -A 60 curth
__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
55      /usr/src/sys/amd64/include/pcpu_aux.h: No such file or directory.
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
#1  doadump (textdump=3D<optimized out>) at /usr/src/sys/kern/kern_shutdown=
.c:399
#2  0xffffffff80c1b75c in kern_reboot (howto=3D260)
    at /usr/src/sys/kern/kern_shutdown.c:487
#3  0xffffffff80c1bbce in vpanic (
    fmt=3D0xffffffff811f51ab "make_dev_sv: bad si_name (error=3D%d, si_name=
=3D%s)",=20
    ap=3D<optimized out>) at /usr/src/sys/kern/kern_shutdown.c:920
#4  0xffffffff80c1b9d3 in panic (fmt=3D<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:844
#5  0xffffffff80bb07dd in make_dev_sv (args1=3D<optimized out>,=20
    dres=3D0xfffffe00a8557880, fmt=3D<optimized out>, ap=3D<optimized out>)
    at /usr/src/sys/kern/kern_conf.c:808
#6  0xffffffff80bb03cb in make_dev_s (args=3D<unavailable>,=20
    args@entry=3D0xfffffe00a8557620, dres=3D<unavailable>,=20
    dres@entry=3D0xfffffe00a8557880, fmt=3D<unavailable>)
    at /usr/src/sys/kern/kern_conf.c:853
#7  0xffffffff80d3e69b in tun_create_device (
    drv=3Ddrv@entry=3D0xffffffff819287e0 <tuntap_drivers>, unit=3D4,=20
    cr=3Dcr@entry=3D0xfffff80128d22e00, dev=3Ddev@entry=3D0xfffffe00a855788=
0,=20
    name=3Dname@entry=3D0xfffffe00a85576d0 "tun4")
    at /usr/src/sys/net/if_tuntap.c:819
#8  0xffffffff80d3fecc in tunclone (arg=3D<optimized out>, arg@entry=3D0x0,=
=20
    cred=3Dcred@entry=3D0xfffff80128d22e00, name=3D0xfffffe00a85576d0 "tun4=
",=20
    name@entry=3D0xfffffe00a855799c "tun", namelen=3D4,=20
    dev=3Ddev@entry=3D0xfffffe00a8557880) at /usr/src/sys/net/if_tuntap.c:6=
08
#9  0xffffffff80ab27d0 in devfs_lookupx (ap=3D<optimized out>,=20
    dm_unlock=3D<optimized out>) at /usr/src/sys/fs/devfs/devfs_vnops.c:1115
#10 devfs_lookup (ap=3D<unavailable>,=20
    ap@entry=3D<error reading variable: value is not available>)
    at /usr/src/sys/fs/devfs/devfs_vnops.c:1192
#11 0xffffffff80ce9bfc in VOP_LOOKUP (dvp=3D0xfffff80128c245b8,=20
    vpp=3D0xfffffe00a8557d10, cnp=3D0xfffffe00a8557d38) at ./vnode_if.h:65
#12 lookup (ndp=3Dndp@entry=3D0xfffffe00a8557cb8)
    at /usr/src/sys/kern/vfs_lookup.c:1086
#13 0xffffffff80ce8e29 in namei (ndp=3Dndp@entry=3D0xfffffe00a8557cb8)
    at /usr/src/sys/kern/vfs_lookup.c:616
#14 0xffffffff80d0e2f3 in vn_open_cred (ndp=3Dndp@entry=3D0xfffffe00a8557cb=
8,=20
    flagp=3Dflagp@entry=3D0xfffffe00a8557dd4, cmode=3Dcmode@entry=3D0,=20
    vn_open_flags=3D<optimized out>, vn_open_flags@entry=3D16,=20
    cred=3D0xfffff80128d22e00, fp=3D0xfffff80128edf6e0)
    at /usr/src/sys/kern/vfs_vnops.c:327
#15 0xffffffff80d04663 in kern_openat (td=3D0xfffffe00a8eb1720, fd=3D-100,=
=20
    path=3D0x20b9d6 <error: Cannot access memory at address 0x20b9d6>,=20
    pathseg=3DUIO_USERSPACE, flags=3D3, mode=3D<optimized out>)
    at /usr/src/sys/kern/vfs_syscalls.c:1159
#16 0xffffffff810b0d55 in syscallenter (td=3D0xfffffe00a8eb1720)
    at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:161
#17 amd64_syscall (td=3D0xfffffe00a8eb1720, traced=3D0)
    at /usr/src/sys/amd64/amd64/trap.c:1185
#18 <signal handler called>
#19 0x0000000827f895fa in ?? ()
Backtrace stopped: Cannot access memory at address 0x8203f8e68
(kgdb)=20

What I configured (it works for at least two weeks):
I have multiple FIBs with vnet enabled jails + PF. OpenVPN Clients on diffe=
rent
FIBs. loaded netgraph ng_{netflow, ksocket, ether}

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266999-227>