From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 13143398BC3D; Fri, 2 Oct 2020 11:03:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13143398BC3D From: "danny.milo at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/23960] [2.28 Regression]: New getdents{64} implementation breaks qemu-user Date: Fri, 02 Oct 2020 11:03:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.28 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danny.milo at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2020 11:03:05 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23960 --- Comment #62 from Danny Milosavljevic --- (In reply to Florian Weimer from comment #60) > (In reply to Danny Milosavljevic from comment #59) > > It's impossible to store a 64 bit result into a 32 bit slot. >=20 > You can do something like that if you can maintain a translation table. Mathematically speaking, no, you can't. There cannot be a 1:1 mapping betw= een all 64 bit values and all 32 bit values. I know what you mean--in practice it could be good enough, if the directory doesn't have too many entries (or, depending on implementation, telldir isn= 't called too often--though first that implementation with only telldir doing = the counting has to be possible. Is it?). But that's just kicking the can down the road--eventually, someone somewhere will have that many entries. And then, the mapping will fail. --=20 You are receiving this mail because: You are on the CC list for the bug.=