[PATCH] KEYS: Invert FINAL_PUT bit
Jarkko Sakkinen
jarkko at kernel.org
Wed Jun 11 16:47:38 UTC 2025
On Tue, Jun 10, 2025 at 08:22:59PM -0400, Paul Moore wrote:
> On Wed, May 28, 2025 at 8:19 AM David Howells <dhowells at redhat.com> wrote:
> >
> > Hi Linus,
> >
> > Could you apply this, please? There shouldn't be any functional change,
> > rather it's a switch to using combined bit-barrier ops and lesser barriers.
> > A better way to do this might be to provide set_bit_release(), but the end
> > result would be much the same.
> >
> > Thanks,
> > David
> > ---
> > From: Herbert Xu <herbert at gondor.apana.org.au>
> >
> > KEYS: Invert FINAL_PUT bit
> >
> > Invert the FINAL_PUT bit so that test_bit_acquire and clear_bit_unlock
> > can be used instead of smp_mb.
> >
> > Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
> > Signed-off-by: David Howells <dhowells at redhat.com>
> > Reviewed-by: Jarkko Sakkinen <jarkko at kernel.org>
> > cc: keyrings at vger.kernel.org
> > cc: linux-security-module at vger.kernel.org
> > cc: linux-crypto at vger.kernel.org
> > cc: linux-integrity at vger.kernel.org
> > ---
> > include/linux/key.h | 2 +-
> > security/keys/gc.c | 4 ++--
> > security/keys/key.c | 5 +++--
> > 3 files changed, 6 insertions(+), 5 deletions(-)
>
> It doesn't look like this has made its way to Linus. David or Jarkko,
> do one of you want to pick this up into a tree and send this to Linus
> properly?
I'm open for anything but need comment from David at first. It is up to
him as he carries the torch ATM for this one :-)
BR, Jarkko
More information about the Linux-security-module-archive
mailing list