This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]