linux-stable/security
akpm@osdl.org 4b4f0b12c4 [PATCH] Fix reproducible SMP crash in security/keys/key.c
Jani Jaakkola <jjaakkol@cs.Helsinki.FI> wrote:
>
> SMP race handling is broken in key_user_lookup() in security/keys/key.c

This was fixed post-2.6.11.  Can you confirm that 2.6.12-rc2 works OK?

This is the patch we used.  It should go into -stable if it's not already
there.

From: Alexander Nyberg <alexn@dsv.su.se>

I looked at some of the oops reports against keyrings, I think the problem
is that the search isn't restarted after dropping the key_user_lock, *p
will still be NULL when we get back to try_again and look through the tree.

It looks like the intention was that the search start over from scratch.

Signed-off-by: Alexander Nyberg <alexn@dsv.su.se>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-05-12 10:00:21 -07:00
..
keys [PATCH] Fix reproducible SMP crash in security/keys/key.c 2005-05-12 10:00:21 -07:00
selinux 2.6.11 import 2005-05-12 09:59:06 -07:00
Kconfig 2.6.11 import 2005-05-12 09:59:06 -07:00
Makefile 2.6.11 import 2005-05-12 09:59:06 -07:00
capability.c 2.6.11 import 2005-05-12 09:59:06 -07:00
commoncap.c 2.6.11 import 2005-05-12 09:59:06 -07:00
dummy.c 2.6.11 import 2005-05-12 09:59:06 -07:00
root_plug.c 2.6.11 import 2005-05-12 09:59:06 -07:00
seclvl.c 2.6.11 import 2005-05-12 09:59:06 -07:00
security.c 2.6.11 import 2005-05-12 09:59:06 -07:00