From nobody Sun Jul 27 22:44:20 2025 X-Original-To: virtualization@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 4bqxVr35Byz63CX2 for ; Sun, 27 Jul 2025 22:44:20 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bqxVr2QTjz3QCK for ; Sun, 27 Jul 2025 22:44:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753656260; 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=Kbmi6EC+uD/qWxb5GugYnBhhvcIvSIKBbH4D46yYuco=; b=b+rgkyjdzalIjh0w4Zlsr55RknVMVp+YFGz9A2TAKEIDA/uzYsO6Dl1wriVkXfsf46n+fz mkOvsOG5DTjB9sS7PANM+jHvXZIXTEPZ/0Bpmq96TjPOp46vx0NFw5cBXimfksyGf7Oe/7 olVcspbLKLoQ3+y39GQtOx/YFlmiGjCRnXOVSPUp4ZtoGTblretofNJeUYXsXg3YgTz/7M Dsm4MzV1Zp+WyuodQo5Htk5Q8BZiCqXjzu/nQ70Yd3ekx+6nqxxRxbKm2oGlg1h8g1jFtK 22u9yGkubEiuHcmNt+rlRViPKrW1gpoS4CkfoXYXM+0JgnsuSVVO8De3fzCpsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753656260; 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=Kbmi6EC+uD/qWxb5GugYnBhhvcIvSIKBbH4D46yYuco=; b=UMVuJwUHBJAWO9siqrBGI1rgIRJQCSKXd9cVbie35Uj09SHD3bPVttBgCNwDSRjDvouqPf bpo7jbLGzw+H8jB7dkVQ34kviySYdaYxricMjaIVuyefxhGeGTvh+FDZ6nxwloDf1efoGU HV+FXHeRz8LVfMd0QUt7H1WV5S1rjJZRlPmJhOh0sAwDKtok+2F3JWsCcZqr87U6DuhE7U jleNuDh9aYSr2hKuYv84YBMYWRQdXpGeTgVGX6p7CiWQSJaspxYsCk00nqCcugbiNc701L WWbTeoeXFNHI9AaWnY1z62u/OhXZ5/kk8eVf7+yrgdeK2+pS7xOnt8bxd7BPRA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1753656260; a=rsa-sha256; cv=none; b=Nwh4GbWTjS7gW6TL/21gtLSzj5AyoFwknZmSIOjWVofgwf7z0eMaqDbpfh+0imBGsT4/h9 kHo4msww83YlDuvkV+kEtD0p7FPoUIphCt9vCaOR0TaNSMKqhzn07I5X/XrOY9wc8+Td+4 /hRqLilSkg1e9nEqB6CggvucUH9QWDjUK3epHXb4trYN6ZXvThcYJo+AsRH8FCb83sGoDX MmH4omJSHEQ8eZOfylbvc49e6IBotCPVVbrYGfykkBlHpMScmkNSL1lkLUfQh3MSgpMAIc pjkEJH6OKW+Xm+5pHLde6lKzWNj+N1oVbD6f0Jo1GIwLHQRdMW1UShPub9no2g== 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 4bqxVr1ns3z3nh for ; Sun, 27 Jul 2025 22:44:20 +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 56RMiKIo095860 for ; Sun, 27 Jul 2025 22:44:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 56RMiK8U095859 for virtualization@FreeBSD.org; Sun, 27 Jul 2025 22:44:20 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: virtualization@FreeBSD.org Subject: [Bug 288444] p9fs chokes on mountpoints in the exported filesystem Date: Sun, 27 Jul 2025 22:44:20 +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: 15.0-CURRENT X-Bugzilla-Keywords: bhyve X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D288444 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open --- Comment #1 from Mark Johnston --- This is basically a limitation of the 9p protocol as implemented by bhyve (= and QEMU). Each file in a 9p share has a unique 64-bit identifier, the QID, and our lib9p just sets qid =3D st_ino. Of course, inode numbers are not unique across datasets, so aliases arise, and this violates some invariants of p9f= s. It looks like QEMU has an option which lets one work around this problem by dynamically remapping host inode numbers to provide unique QIDs, at the cos= t of some overhead and the lack of a guarantee that it always work. (This is "multidevs=3Dremap".) For 15.0 it seems best to simply disallow exporting anything under a mountpoint. That is, if a walk or readdir encounters a file belonging to a different host mountpoint, the 9p server should either hide it or generate = an error. That's a bit inconvenient, but it's a bit easier to implement and i= t's the safest option. --=20 You are receiving this mail because: You are the assignee for the bug.=