[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <498294.1701878642@warthog.procyon.org.uk>
Date: Wed, 06 Dec 2023 16:04:02 +0000
From: David Howells <dhowells@...hat.com>
To: Luis Henriques <lhenriques@...e.de>
Cc: dhowells@...hat.com, Jarkko Sakkinen <jarkko@...nel.org>,
Eric Biggers <ebiggers@...nel.org>, keyrings@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH] keys: flush work when accessing /proc/key-users
Luis Henriques <lhenriques@...e.de> wrote:
> This patch is mostly for getting some feedback on how to fix an fstest
> failing for ext4/fscrypt (generic/581). Basically, the test relies on the
> data read from /proc/key-users to be up-to-date regarding the number of
> keys a given user currently has. However, this file can't be trusted
> because it races against the keys GC.
Unfortunately, I don't think your patch helps. If the GC hasn't started yet,
it won't achieve anything and the GC can still be triggered at any time after
the flush and thus race.
What is it you're actually trying to determine?
And is it only for doing the test?
David
Powered by blists - more mailing lists