From nobody Mon Sep 30 11:20:24 2024 X-Original-To: jail@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XHJXB12l7z5Y8YN for ; Mon, 30 Sep 2024 11:20:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XHJX9747Bz42yt for ; Mon, 30 Sep 2024 11:20:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727695226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BLc+gc+jY3zvL55zLNR2Lz4NVR1ph1DCNToI0WlXab0=; b=rQUol1OK/5VkCsqY9gd3Xyh1Jmgss95oxxGhaKOZ09UCxdmpf0Dj6hZctz3yVPM+oYaGV1 ho9nKOw8sqB0RsKnEoUGnQuG6IeItbfQz2abysu/0c0q6WW9ZNy4m+zqZCcie3vdVeQFu/ 84rFCBBphLKbeDsYvaURiMNBVhSvsenNGa3ntnD6bK7C/UWpQyh1Mhxyd9eVcTbgNcIhOI n+jcrMR3Jt6CAXhTxm2531VfwBPgMZzIRuSs4bKDatJIOjCgj71xBMyJjmgGFqpaJWyLDT IHdgeftS7YGgYP/DbYQVaqe2wFL70qbH+5I21M2n5WEK5qa7Hf6HQaIo8ev5iA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727695226; a=rsa-sha256; cv=none; b=BJD9rHlltAKa93GQPSLj+5oV44K71TutFOuE8QNK1FV0rBYdBBdGWrMLI6TWKTI9+p3f8D HxuazUb0haosGX4xJ57WuAhUTaRwAWpnuv9hRt/kgsDZo4qb+o4zNCMQu4raThWYiVZQME 9Xce15Ya5Mi2T2fqkjguAs3LaoqP+L5fEwPHXGa8G0jclkcavS+t65ApLgaVxIQ/Txry2n amt1Vz+wF2rOsoOKoNMt5IE78twP/+GHfG9a1SZf0uoRxpkH6Sip9wfPGYr5fOD79GGWVG PlhYHEHcHW2U4dHtDOZjMDiG6Cx/DF4lh7LHdP4g99AAz519ssoE0q++PdZbPg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XHJX96cm8zr1f for ; Mon, 30 Sep 2024 11:20:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 48UBKPf4056178 for ; Mon, 30 Sep 2024 11:20:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48UBKPsM056177 for jail@FreeBSD.org; Mon, 30 Sep 2024 11:20:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: jail@FreeBSD.org Subject: [Bug 281751] Unable to start jail from vty1... virtual terminal Date: Mon, 30 Sep 2024 11:20:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: olce@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281751 Olivier Certner changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |olce@FreeBSD.org --- Comment #35 from Olivier Certner --- @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.=