v5 add lockdep-based diagnostics to rcu_dereference()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | rcu: introduce lockdep-based checking to RCU read-side primitivesinclude/ include/ kernel/ +4 more | +267 | 0 replies | |
| 2/18 | rcu: add lockdep-enabled variants of rcu_dereference()include/ include/ | +42 | 0 replies | |
| 3/18 | rcu: integrate rcu_dereference_check() message into lockdepinclude/ include/ kernel/ | +24 | 0 replies | |
| 4/18 | rcu: disable lockdep checking in RCU list-traversal primitivesinclude/ include/ | +9 | 0 replies | |
| 5/18 | net: add checking to rcu_dereference() primitivesinclude/ include/ net/ +6 more | +35 | 0 replies | |
| 6/18 | sched: use lockdep-based checking on rcu_dereference()include/ include/ init/ +6 more | +43 | 0 replies | |
| 7/18 | sched: better name for for_each_domain_rdkernel/ | +2 | 0 replies | |
| 8/18 | vfs: apply lockdep-based checking to rcu_dereference() usesfs/ fs/ fs/ +1 more | +14 | 0 replies | |
| 9/18 | vfs: abstract rcu_dereference_check for files-fdtable useinclude/ | +7 | 0 replies | |
| 10/18 | radix-tree: disable RCU lockdep checking in radix treelib/ | +12 | 0 replies | |
| 11/18 | idr: apply lockdep-based diagnostics to rcu_dereference() useslib/ | +4 | 0 replies | |
| 12/18 | security: apply lockdep-based checking to rcu_dereference() usessecurity/ security/ | +5 | 0 replies | |
| 13/18 | rcu: documentation update for CONFIG_PROVE_RCUDocumentation/ Documentation/ Documentation/ +1 more | +97 | 0 replies | |
| 14/18 | rcu: fix citation of Mathieu's dissertationDocumentation/ | +4 | 0 replies | |
| 15/18 | rcu: accelerate grace period if last non-dynticked CPUinclude/ init/ kernel/ +1 more | +101 | 0 replies | |
| 16/18 | rcu: use canonical URL for Mathieu's dissertationDocumentation/ | +1 | 0 replies | |
| 17/18 | rcu: stop overflowing signed integerskernel/ kernel/ kernel/ | +30 | 1 reply | |
| 18/18 | The spinlocks in rcutree need to be real spinlocks in preempt-rt. Convert them to raw_spinlocks.kernel/ kernel/ kernel/ | +92 | 0 replies | |
| 18/18 | rcu: Convert to raw_spinlockskernel/ kernel/ kernel/ | +92 | 0 replies |
Reviews trailers per patch
1 of 19 patches has a Reviewed-by or Acked-by.
| Patch | Mathieu Desnoyers |
|---|---|
| 1/18 | |
| 2/18 | |
| 3/18 | |
| 4/18 | |
| 5/18 | |
| 6/18 | |
| 7/18 | |
| 8/18 | |
| 9/18 | |
| 10/18 | |
| 11/18 | |
| 12/18 | |
| 13/18 | |
| 14/18 | |
| 15/18 | |
| 16/18 | |
| 17/18 | A-b |
| 18/18 | |
| 18/18 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH tip/core/rcu 0/18] v5 add lockdep-based diagnostics to rcu_dereference()
Hello!
This patch series adds lockdep-based checking to the rcu_dereference() primitive in order to flag misuses of RCU. The first four patches put the RCU infrastructure in place, the next eight use this infrastructure in the net, sched, vfs, radix-tree, idr, and security subsystems, and the last patch documents how to use the new lockdep-checked rcu_dereference() primitives. The remaining five patches are other changes that also need to be applied.
The new (and default-disabled) CONFIG_PROVE_RCU makes this safe to include in tip/core/rcu -- unlike v2, your system won't complain about RCU misuse unless you ask it to. There are still several situations that trigger on systems I have access to (and I have email out on a couple of them), some of the remaining will be triggered only by hardware I don't have access to and kernel features I am unfamiliar with. So this is ready for some more-general testing.
Changes since v4 (http://lkml.org/lkml/2010/2/11/356)
o Apply review comments from Peter Ziljstra.
o Another documentation update.
o Fixes that avoid overflowing signed integers.
o Rebased Thomas Gleixner's raw-spinlock patch on this series.
(Thomas's original at http://lkml.org/lkml/2010/2/17/182.)
Changes since v3 (http://lkml.org/lkml/2010/1/14/505)
o Fix a few more issues identified by the checking.
o Add a documentation update.
o Accelerate RCU grace periods when the current CPU is the last
non-dyntick-idle CPU in the system, which is important for some multi-core battery-powered devices.
Changes since v2 (http://lkml.org/lkml/2010/1/4/496):
o Removed references to the check condition for the non-lockdep
version of rcu_dereference_check(), thus preventing numerous build errors.
o Create a CONFIG_PROVE_RCU (default disabled) so that developers
who want to use lockdep only to debug locks aren't bothered by RCU-specific lockdep complaints that will no doubt persist for a little bit while some of the more obscure uses of RCU are reverse-engineered.
o Fix a few more issues identified by the checking.
o Add documentation in Documentation/RCU/lockdep.txt.
Changes since v1 (http://lkml.org/lkml/2009/12/15/553):
o Made SRCU have per-srcu_struct lockdep maps to prevent lockdep
from conflating independent uses of SRCU, and updated the rcu_dereference() checking in rcutorture to match.
o Fix a few issues identified by the checking.
o Disable checking within RCU list macros, RCU radix trees, and
IDR.