Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2024 11:20:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        jail@FreeBSD.org
Subject:   [Bug 281751] Unable to start jail from vty1... virtual terminal
Message-ID:  <bug-281751-29815-US9tIKn2mP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-281751-29815@https.bugs.freebsd.org/bugzilla/>
References:  <bug-281751-29815@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=3D281751

Olivier Certner <olce@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |olce@FreeBSD.org

--- Comment #35 from Olivier Certner <olce@FreeBSD.org> ---
@kib, @kevans:
Too early to tell for this case, but the only failures of jail_attach(2) wi=
th
EPERM I've seen so far were caused by an outstanding open directory in the =
root
shell launching jail(8) or jexec(8).

This is how I recently discovered the pam_xdg() file descriptor leak, fixed=
 in
-CURRENT on 08/30 (06986e899972) and MFCed to 14-STABLE on 09/03 (9e8d504bb=
5a1)
(13-STABLE not concerned).  Given the tests performed by Alex, this is not =
the
exact problem here (else he wouldn't be able to reproduce it on a recent
snapshot of -CURRENT), but might be the same kind of problem.

@Alex
I'd suggest a couple of things:
1. Report the output of 'fstat -p $$' from the shells used to launch the
jail(8) or jexec(8) commands, both in the succeeding and failing cases.
2. Launch and keep running this dtrace script, then launch a failing 'jexec=
':
dtrace -n
'fbt::mac_vnode_check_chroot:return,fbt::change_dir:return,fbt::pwd_chroot_=
chdir:return
/(int)arg1 =3D=3D EPERM/ { stack(); }'
You shouldn't get much output from it, so you can keep it running for a whi=
le.=20
Try to correlate its new outputs with your actions (particular launches), a=
nd
post all that here.

Thanks and regards.

--=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-281751-29815-US9tIKn2mP>