Re: [PATCH] keys: Discard key spinlock and use RCU for key payload [try #3]

From: David Howells
Date: Thu Mar 10 2005 - 08:15:45 EST

Andrew Morton <akpm@xxxxxxxx> wrote:

> > Do you want me to redo the patch?
> >
> That, or a delta. At your convenience.

A new patch is just as easy. There'll be one with you shortly.

> What's your feeling on the stability

Well... it boots:-) That involves creating and destroying keyrings and linking
keyrings into keyrings when knowledge about users other than uid 0 is added to
or removed from the kernel. No other key management code is touched except by
explicit invocation by syscall or from its in-kernel APIs, and no code in the
kernel does that yet.

I've also prodded it with my key utilities; adding keys, requesting keys,
linking keys, unlinking keys, finding keys, revoking keys, expiring keys,
reading keys, listing/describing keys, joining sessions. I've also checked that
user-defined keys work using that same set of tools. These tools can be found

I've worked them into a form more suitable for release. I still need to write
documentation/manual pages and a spec file, and to get it to run on more than
just i386, ppc and ppc64.

> &&priority of this work?

Well... this changes the API for key type implementations, if only in the way
locking is used. Various people are looking at using keys for various things,
and this change will affect all of them.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at