This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
- From: "jrtc27 at jrtc27 dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 11 Dec 2018 11:30:22 +0000
- Subject: [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user
- Auto-submitted: auto-generated
- References: <bug-23960-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23960
--- Comment #13 from James Clarke <jrtc27 at jrtc27 dot com> ---
(In reply to Florian Weimer from comment #12)
> The 32-bit getdents64 system call on an x86-64 kernel returns a truncated
> d_off value to userspace on ext4, while the 64-bit version of the system
> call uses more bits for d_off, on the same directory.
>
> As a result, the i386 glibc getdents implementation (which is based on the
> 32-bit getdents64 system call) does not observe any d_off values which would
> have to be truncated, and readdir is able to enumerate the entire directory.
>
> This looks like an emulation (QEMU?) problem to me, and not like a glibc bug.
Well, in some sense yes, but this is a new regression in glibc-on-qemu-user,
and given there's no reason why glibc needs to do it this way (it actually is
simpler *not* to even for glibc it seems; working on a patch at the moment) it
seems unhelpful to knowingly break this use-case.
--
You are receiving this mail because:
You are on the CC list for the bug.