From nobody Mon Oct 20 16:01:54 2025 X-Original-To: bugs@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 4cr0YG4GqLz6CfSW for ; Mon, 20 Oct 2025 16:01:54 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cr0YG3mhSz3PWt for ; Mon, 20 Oct 2025 16:01:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760976114; 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; bh=p0v58FcXBJRavFMtzjl57xFb37tsM3klcbJAQs8GVMY=; b=Uz+WUKRU1pHNQRTtDjUc9eS0AdcTEs+wABAjF/dNZtNr45RpULmmPdY73ZlBabY0tKIUOm j4ZQtWq32gboshxhkAgMpJg41YiQr1CG6zZCrYtcmcQS+c5rjeP6QXNH+S9w0NqoEdhk4q DeErHzuvCQPlBfKjFKH2mUqx24JFSvju3PmXNcG+QYsnzD43EZpWmXgGIDuYNv6gIpm2ou KeEUIWm7/6UKXn3yItesy7RgSQHk6AnwzPkr3W67lRTJxnB+cJuIYc+HuGHuVXuFJBz0kL g0EftL9xJ+Y/zMtpk9AGKlSXCl+hkWHpe3xwmwG5RVaA3OUzHifL+hVtnB12Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760976114; 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; bh=p0v58FcXBJRavFMtzjl57xFb37tsM3klcbJAQs8GVMY=; b=RSvcsMS+4NSYaOgC2qklclhDRenQauhDHs+GSgM/IUglwnteD7dWSYcG3F7QjGcgzMh9wz wQXMv7IkPUjX2xQrB3CWO8igy1tBt51Or/vpUjdNQLEbCrfxFQKswzgnKNlNVKqJlisU7a acvIL6eJ8o+MOmweMCQBG6cMeeWZFpJu10e/MdPRHXsUrIWpoKaBa0YSkrLTAqoByF8deC jbt3nQg/eX+7CqFJuVXxIgv7VH9jRhCgkn5h9kXA7dF/Z1Vfq7P+6/vciiZNXxB2WV4KET k54hsCYAWdqtmRQMa9NsNPWtkQUISzZw5uNqK5d/C5hhsMea03WkCTvHPaMhpg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760976114; a=rsa-sha256; cv=none; b=eFQJhNQy43rRjyJxuzPAr8qRrD+eZhEL8LSQhdY+5q/6NVN5CubMdmE5BCKfhWmeTDunzs vppfakKWwoHmXeyhKO6vEAQ+Ru2dtzTCBGm+oLtdFq45Xbq46geN6Poxe0P58NZKVOVTTd h+t7830m0saC5ds25zE1H0FhgwnMZ9N+axPWoI1zimLc+RCDmvJD4zTvO6ntzPTi30PIdX d1ASD/Y1jcDKvKRnr/lLS8LKUL6wTsVLqiNYBl+deDVov2kpYia03JXAgPu34O33m0e8rL v7tULPotJPLm4IyZ3/1QaSNso9K2EAujWjNcliYHdIZkTqAHI2eGEr8FEHiOHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cr0YG3NVVz4cH for ; Mon, 20 Oct 2025 16:01:54 +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 59KG1sEQ027774 for ; Mon, 20 Oct 2025 16:01:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59KG1snQ027773 for bugs@FreeBSD.org; Mon, 20 Oct 2025 16:01:54 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: bugs@FreeBSD.org Subject: [Bug 290383] realpath() returns path outside chroot for "lower fs" in -o union mounts Date: Mon, 20 Oct 2025 16:01:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: equinox@diac24.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D290383 Bug ID: 290383 Summary: realpath() returns path outside chroot for "lower fs" in -o union mounts Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: equinox@diac24.net The realpath() system call returns the full path outside chroot if a "-o un= ion" (NOT unionfs - that works correctly) mount is used, for any path that is not "unioned" in the upper file system: # cat > realpathtest.sh <