Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > muc.lists.freebsd.emulation > #12848 > unrolled thread

[Bug 292282] NFS Shows Empty Filenames Under Linux Emulation

Started bybugzilla-noreply@freebsd.org
First post2026-02-21 17:05 +0000
Last post2026-02-21 17:05 +0000
Articles 1 — 1 participant

Back to article view | Back to muc.lists.freebsd.emulation

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [Bug 292282] NFS Shows Empty Filenames Under Linux Emulation bugzilla-noreply@freebsd.org - 2026-02-21 17:05 +0000

#12848 — [Bug 292282] NFS Shows Empty Filenames Under Linux Emulation

Frombugzilla-noreply@freebsd.org
Date2026-02-21 17:05 +0000
Subject[Bug 292282] NFS Shows Empty Filenames Under Linux Emulation
Message-ID<bug-292282-4077-s8uw9ipbNs@https.bugs.freebsd.org/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292282

--- Comment #15 from commit-hook@FreeBSD.org ---
A commit in branch stable/15 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=86a6407d028d9a58c93c7d1ac54e737d78b1aaaf

commit 86a6407d028d9a58c93c7d1ac54e737d78b1aaaf
Author:     Rick Macklem <rmacklem@FreeBSD.org>
AuthorDate: 2026-02-07 22:12:55 +0000
Commit:     Rick Macklem <rmacklem@FreeBSD.org>
CommitDate: 2026-02-21 17:03:38 +0000

    linux_file.c: Fix handling of NFS getdents() emulation

    Bugzilla PR#292282 reports a problem, where a Linux
    binary running in the Linuxulator gets bogus entries
    in a readdir()/getdents() reply when the directory is
    an NFS mount.

    This appears to be caused by the NFS client including
    entries with d_fileno == 0, which are always ignored by
    BSD, but are not ignored by Linux.

    This patch filters out the "d_fileno == 0" entries and
    the reporter of the bugzilla PR notes that it fixes the
    problem for him.

    It could be argued that the NFS client should filter out
    the "d_fileno == 0" entries, but the NFS client readdir
    code is "fragile" and any change to it runs a significant
    risk of causing regression type problems.

    As such, since the LInuxulator is already broken for this
    case, it seems safer to filter them out there.

    PR:     292282

    (cherry picked from commit 110f2567cb51f1eeddbd5d9937000ad64f6dc746)

 sys/compat/linux/linux_file.c | 178 ++++++++++++++++++++++++++----------------
 1 file changed, 110 insertions(+), 68 deletions(-)

-- 
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

[toc] | [standalone]


Back to top | Article view | muc.lists.freebsd.emulation


csiph-web