Re: [PATCH RFC] proc: Don't retain negative dentries
From: Al Viro
Date: Mon Oct 08 2018 - 12:55:53 EST
On Mon, Oct 08, 2018 at 06:50:10PM +0200, Ahmad Fatoum wrote:
> The referenced commit 1da4d377f94 ("proc: revalidate misc dentries")
> caused following userspace code to access a stale /proc/net/dev
> after the network namespace was changed:
> Despite switching the network namespace, the read access from the
> newly opened file gave back what the very first read in the default
> network namespace returned.
What the hell does that have to do with negative dentries anywhere???
NAK. Rationale makes no sense _and_ the patch has nothing to do
with claimed rationale.