]> git.baikalelectronics.ru Git - kernel.git/commit
kmemleak: Protect the seq start/next/stop sequence by rcu_read_lock()
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 29 Jul 2009 15:26:57 +0000 (16:26 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 29 Jul 2009 19:34:58 +0000 (12:34 -0700)
commitf419f7bacba72c21db405559ce9d4838dcbad0fd
tree75c5e09bdd8726fa3fa0c2cc3b764d523e5160f2
parenta6dce15f21fa2cff02bb9e350b65d81b2f5da0ff
kmemleak: Protect the seq start/next/stop sequence by rcu_read_lock()

Objects passed to kmemleak_seq_next() have an incremented reference
count (hence not freed) but they may point via object_list.next to
other freed objects. To avoid this, the whole start/next/stop sequence
must be protected by rcu_read_lock().

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/kmemleak.c