🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.emulation
1 messages
1 total messages Started by bugzilla-noreply Sun, 18 Oct 2026 15:49
[Bug 297426] linuxulator: linprocfs /proc/self/exe host path breaks execve under Linux ABI
#14
Author: bugzilla-noreply
Date: Sun, 18 Oct 2026 15:49
70 lines
5340 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297426

--- Comment #44 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=23b326728778fd3a6c37b33686dea98d010eb1cf

commit 23b326728778fd3a6c37b33686dea98d010eb1cf
Author:     Devin Teske <dteske@FreeBSD.org>
AuthorDate: 2026-10-18 15:44:12 +0000
Commit:     Devin Teske <dteske@FreeBSD.org>
CommitDate: 2026-10-18 15:44:12 +0000

    namei: retry absolute symlink expansions from the native root

    For a Linux ABI process, namei() resolves a path first under the ABI
    root (compat.linux.emul_path) and, if that fails, restarts the walk
    of the original path from the native root.  Since 459ac3044b51 an
    absolute symlink target found during the ABI pass stays under the
    ABI root, so self-contained Linux userlands resolve their own
    symlinks correctly (PR 289739); but when the target names a file
    that exists only in the native namespace, the walk fails and the
    restart cannot recover: it re-walks the original path, whose
    ABI-visible prefix (the symlink itself) does not exist natively.

    Casualties are the absolute symlinks planted under the emulator root
    to integrate the host into the Linux namespace -- among them
    linux-rl9-fontconfig's /compat/linux/etc/fonts ->
    /usr/local/etc/fonts (Linux fontconfig cannot load its
    configuration, degrading font matching to arbitrary results) and
    similar links from linux-rl9-alsa-lib and linux-rl9-ca-certificates
    -- and linprocfs' /proc/<pid>/exe, whose target is a host path:
    following it fails for any Linux binary whose text lives outside the
    emulator root (Chromium-based browsers execve /proc/self/exe to
    spawn helpers), unless procfs(5) mounted at the native /proc masks
    the failure.

    Remember the expansion produced while following an absolute symlink
    during the ABI pass and, when that pass fails with ENOENT before the
    target has resolved, perform the one allowed native restart walking
    the saved expansion in place of the original path.  The target has
    resolved once the walk has consumed it, leaving no more than the
    suffix appended past it; an ENOENT after that point restarts from
    the original path as it always has.  Lookups that succeed under the
    ABI root are unaffected, preserving 459ac3044b51; lockless lookups
    are unaffected because cache_fplookup_symlink() already aborts to
    the locked path for absolute symlinks whenever an ABI root is
    active.

    PR:             297426
    Fixes:          459ac3044b51 ("namei: Preserve ABI root for absolute
symlinks before fallback")
    MFC after:      1 month
    Reviewed by:    kib
    Differential Revision:  https://reviews.freebsd.org/D58855

 sys/kern/vfs_lookup.c | 106 +++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 105 insertions(+), 1 deletion(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads