Re: [PATCH 3/7] KEYS: Use RCU dereference wrappers in keyring key type code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Serge E. Hallyn
Date: Monday, May 3, 2010 - 3:30 pm

Quoting David Howells (dhowells@redhat.com):

Acked-by: Serge Hallyn <serue@us.ibm.com>


<shrug> does this mean that the
        klist = rcu_dereference_check(keyring->payload.subscriptions,
				      lockdep_is_held(&key_serial_lock));
in security/keys/gc.c:key_gc_keyring() should become a
rcu_dereference_protected() to avoid the rcu_dereference_raw() and for
consistency?


Weird, this was a straight rcu_dereference in my tree (which would
still deserve a switch for the same reason as patch 1 of course)


huh, yeah, seems to have been there and unneeded since at least 2007.

-serge
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 7/7] KEYS: Do preallocation for __key_link(), David Howells, (Fri Apr 30, 6:32 am)
Re: [PATCH 3/7] KEYS: Use RCU dereference wrappers in keyr ..., Serge E. Hallyn, (Mon May 3, 3:30 pm)