Skip to content

DEBUG_RCU_HEAD: Debug and fix racy call_rcu() users

Mathieu Desnoyers linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4kernel call_rcu usage: initialize rcu_head structureskernel/exit.c kernel/pid.c kernel/rcupdate.c+3 -01 reply
2/4tree rcu: Add debug RCU head optioninclude/linux/rcupdate.h kernel/rcutree.c lib/Kconfig.debug+21 -04 replies
3/4markers call_rcu usage: initialize rcu_head structureskernel/marker.c+1 -00 replies
4/4vunmap: Fix racy use of rcu_headmm/vmalloc.c+2 -163 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/4] DEBUG_RCU_HEAD: Debug and fix racy call_rcu() users

Here is a patchset, done on 2.6.30.9, which permits to detect and fix racy call_rcu() users.

Fix for vunmap, which happens to be one of them, is included.

Note that some false-positives might come up when call_rcu() is called on uninitialized struct rcu_head. The solution is, surprisingly enough, to initialize them.

Thanks,

Mathieu

Signature · 2 lines
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68