Re: [BUG?] memory hotplug: include/linux/radix-tree.h:145 invoked rcu_dereference_check() without protection!

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: KAMEZAWA Hiroyuki
Date: Tuesday, December 7, 2010 - 6:19 pm

On Tue, 07 Dec 2010 20:01:49 +0100
Gerald Schaefer <gerald.schaefer@de.ibm.com> wrote:


Hmm, in radix_tree_deref_slot() comment,

 140  * For use with radix_tree_lookup_slot().  Caller must hold tree at least read
 141  * locked across slot lookup and dereference.  More likely, will be used with
 142  * radix_tree_replace_slot(), as well, so caller will hold tree write locked.

racy update must not happen. rcu_dereference_protected() sounds nice.

Thanks,
-Kame

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

Messages in current thread:
Re: [BUG?] [Ext4] INFO: suspicious rcu_dereference_check() ..., Paul E. McKenney, (Sun Nov 21, 11:16 pm)
Re: [BUG?] memory hotplug: include/linux/radix-tree.h:145 ..., KAMEZAWA Hiroyuki, (Tue Dec 7, 6:19 pm)
Re: [BUG?] memory hotplug: include/linux/radix-tree.h:145 ..., Paul E. McKenney, (Thu Dec 16, 10:47 pm)
Re: [BUG?] memory hotplug: include/linux/radix-tree.h:145 ..., Paul E. McKenney, (Fri Dec 17, 9:01 am)
Re: [BUG?] memory hotplug: include/linux/radix-tree.h:145 ..., Paul E. McKenney, (Fri Dec 17, 9:03 am)