[Bug 264981] jail with vnet interface stuck in dying state

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 17 Dec 2022 14:58:19 UTC

--- Comment #8 from Zhenlei Huang <zlei.huang@gmail.com> ---
Non-vnet jails are also affected.

Steps to repeat:

1: root@:~ # ifconfig lo0 inet alias
2: root@:~ # sh test_prison_ref_leak.sh
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        inet netmask 0xffffffff
        groups: lo
   JID  IP Address      Hostname                      Path
jls: jail "test_ref_leak" is dying

The content of test_prison_ref_leak.sh:

root@:~ # cat test_prison_ref_leak.sh 

# test jail name

jail -c name=$n path=/ persist ip4.addr=
# The following trigger jail pr_ref leak
jexec $n ifconfig lo0
jail -R $n

# wait a moment
sleep 1

jls -j $n

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