[Bug 266999] tun(4): kernel: panic: make_dev_sv: bad si_name (error=17, si_name=tun2) in in make_dev_sv > tun_create_device > tunclone

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 11 Dec 2023 13:38:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266999

Stéphane Rochoy <stephane.rochoy@stormshield.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stephane.rochoy@stormshield
                   |                            |.eu

--- Comment #6 from Stéphane Rochoy <stephane.rochoy@stormshield.eu> ---
Not sure if relevant but interface renaming seems to conflict with the name
checks performed by `make_dev_sv`. For example, the following commands trigger
the panic:

    # Destroy all existing tuns
    ifconfig -l -g tun | xargs -I {} ifconfig {} destroy

    # Create a new tun "/dev/tun0", and add a symbolic link "/dev/tun1"
pointing on it
    ifconfig tun create name tun1

    # KERNEL PANIC here
    # panic: make_dev_sv: bad si_name (error=17, si_name=tun1)
    ifconfig tun create

(Tested on 653738e895ba, which is a bit old)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.