Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2022 14:58:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 264981] jail with vnet interface stuck in dying state
Message-ID:  <bug-264981-227-OwTzasY7Cy@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-264981-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-264981-227@https.bugs.freebsd.org/bugzilla/>

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

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

Steps to repeat:

1: root@:~ # ifconfig lo0 inet 172.16.0.1/32 alias
2: root@:~ # sh test_prison_ref_leak.sh
lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet 172.16.0.1 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=20
#!/bin/sh

# test jail name
n=3D"test_ref_leak"

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

# wait a moment
sleep 1

jls -j $n

--=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-264981-227-OwTzasY7Cy>