From nobody Tue Jan 04 23:38:28 2022 X-Original-To: fs@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 0808C1937DE6 for ; Tue, 4 Jan 2022 23:38:29 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JT8FJ5T8Rz3KyN for ; Tue, 4 Jan 2022 23:38:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 97B3021BF2 for ; Tue, 4 Jan 2022 23:38:28 +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 204NcSvo087330 for ; Tue, 4 Jan 2022 23:38:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 204NcSY9087329 for fs@FreeBSD.org; Tue, 4 Jan 2022 23:38:28 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: fs@FreeBSD.org Subject: [Bug 260894] Nonexportable file systems are usable over NFSv4 Date: Tue, 04 Jan 2022 23:38:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rmacklem@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641339508; 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=F/QY6YvDjYj2Divh7kKCKnc2pYx1rqtcnW1D1dFbkN0=; b=WPdCZIM0J92FSA7pMaPPf3WclkD83IdKAA4z2YMlKsDXZD405CquO54vR+hOrhpkTm1yy3 FP/Ju5qCzPTrFg6uU7CylpDFjzunImsnRXk3w65pPOJIOw3LIwLMLhMNEDskBz0kI9PvZF fSpyB/ZV1zCqupl9ByEkkAKYEyK6d6bX/dl0xgz3EsbmX/8Q4ukTskc8EdrUmDDkvSSC9G R3fRqKLi0YalHE6aAopYrpe7LoNz/clJcu+ImvwwXQFwxOklI3kvABWb517RvkFUEgZdOU Rh4XVoVbQS7Flinom1QnJzG0OjAcWkCCn/QQBPOG5DWrDyaRI0msts8c3vMJxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641339508; a=rsa-sha256; cv=none; b=msmCIWAh8RNLh0yETgLsKhvjbF+NSrUYVjjhU2rXqnvcY7kb+H28+OERQMxVoEIu/cEIgb T5oldgiK67w3R142JZeJb+Kcx2UDeUN11yvTxVEClxSyeleQsqNsCzbyYOzdOvlks3KCVG 8SqiMBnfK6siTL6KSfmPBUug0tJkhCtrRrWqFWnKCJmSg5Porj58CoTkJddJs6VeOF/LQR xZ6CbMeWKGhXasEFs15sUEaDC55Oz9TysizXnpBWVs3hBlmapsduxjhY+Jw4Uam5YSHoBi S6FX2xKQ3no6ObE7Q4a9J+d5L5DMl1+0/T9ezvV9pTpIxFo6RHb11noNRE0Qbg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260894 --- Comment #5 from Rick Macklem --- Take a look at usr.sbin/mountd/mountd.c, around line#3205-3264. If I read it correctly, a return from nmount(2) of EINVAL indicates "this is not a mount point". The loop then moves up a directory level and tries again. I have a hunch that what you did was export the underlying/parent file system and you were looking at "/mnt" in this parent file system. Short answer, try EPERM instead of EINVAL. Another issue is that nmount(2) is also used by mountd.c to delete exports, and that will fail too, if you have VFS_MOUNT() return a failure for that case. --> Might not matter if it has never been exported. --=20 You are receiving this mail because: You are the assignee for the bug.=