lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZvvonHPqrAqSHhgV@casper.infradead.org>
Date: Tue, 1 Oct 2024 13:18:36 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Linux regressions mailing list <regressions@...ts.linux.dev>
Cc: yangerkun <yangerkun@...wei.com>,
	Christian Brauner <brauner@...nel.org>,
	linux-fsdevel@...r.kernel.org,
	Alexander Viro <viro@...iv.linux.org.uk>,
	LKML <linux-kernel@...r.kernel.org>,
	Krzysztof MaƂysa <varqox@...il.com>
Subject: Re: [regression] getdents() does not list entries created after
 opening the directory

On Tue, Oct 01, 2024 at 01:29:09PM +0200, Linux regression tracking (Thorsten Leemhuis) wrote:
> > 	DIR* dir = opendir("/tmp/dirent-problems-test-dir");
> > 
> > 	fd = creat("/tmp/dirent-problems-test-dir/after", 0644);

"If a file is removed from or added to the directory after the most
recent call to opendir() or rewinddir(), whether a subsequent call to
readdir() returns an entry for that file is unspecified."

https://pubs.opengroup.org/onlinepubs/007904975/functions/readdir.html

That said, if there's an easy fix here, it'd be a nice improvement to
QoI to do it, but the test-case as written is incorrect.


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ