From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/15066 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Theodore Y. Ts'o" Newsgroups: gmane.linux.lib.musl.general,gmane.linux.file-systems,gmane.linux.kernel,gmane.linux.nfs,gmane.linux.kernel.cifs Subject: Re: getdents64 lost direntries with SMB/NFS and buffer size < unknown threshold Date: Wed, 25 Dec 2019 22:56:06 -0500 Message-ID: <20191226035606.GB10794@mit.edu> References: <20191120001522.GA25139@brightrain.aerifal.cx> <8736eiqq1f.fsf@mid.deneb.enyo.de> <20191120205913.GD16318@brightrain.aerifal.cx> <20191121175418.GI4262@mit.edu> <87a77g2o2o.fsf@mid.deneb.enyo.de> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="191048"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Rich Felker , linux-fsdevel@vger.kernel.org, musl@lists.openwall.com, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org To: Florian Weimer Original-X-From: musl-return-15081-gllmg-musl=m.gmane.org@lists.openwall.com Thu Dec 26 04:56:29 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1ikKGD-000nV3-GB for gllmg-musl@m.gmane.org; Thu, 26 Dec 2019 04:56:29 +0100 Original-Received: (qmail 7502 invoked by uid 550); 26 Dec 2019 03:56:27 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 7484 invoked from network); 26 Dec 2019 03:56:26 -0000 Content-Disposition: inline In-Reply-To: <87a77g2o2o.fsf@mid.deneb.enyo.de> Xref: news.gmane.org gmane.linux.lib.musl.general:15066 gmane.linux.file-systems:161473 gmane.linux.kernel:3327538 gmane.linux.nfs:89748 gmane.linux.kernel.cifs:15791 Archived-At: On Wed, Dec 25, 2019 at 08:38:07PM +0100, Florian Weimer wrote: > 32 bits are simply not enough storage space for the cookie. Hashing > just masks the presence of these bugs, but does not eliminate them > completely. Arguably 64 bits is not enough space for the cookie. I'd be a lot happier if it was 128 or 256 bits. This is just one of those places where POSIX is Really Broken(tm). Unfortunately, NFS only gives us 64 bits for the readdir/readdirplus cookie, so we're kind of stuck with it. - Ted