Skip to content
Commit f5886c7f authored by Catalin Marinas's avatar Catalin Marinas Committed by Linus Torvalds
Browse files

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: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 84210aeb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment