Treewide: enforce static storage for object initializers
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest17 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | locking/mutex: assert static storage for DEFINE_MUTEX()drivers/ include/ tools/ +1 more | +17 | 2 replies | |
| 2/17 | locking/rtmutex: assert static storage for DEFINE_RT_MUTEX()include/ | +2 | 0 replies | |
| 3/17 | locking/rwsem: assert static storage for semaphore definitionsinclude/ include/ | +8 | 0 replies | |
| 4/17 | locking/semaphore: assert static storage for DEFINE_SEMAPHORE()include/ | +3 | 0 replies | |
| 5/17 | locking/seqlock: assert static storage for DEFINE_SEQLOCK()include/ | +2 | 0 replies | |
| 6/17 | sched: assert static storage for wait queue and completion declarationsdrivers/ include/ include/ +1 more | +18 | 0 replies | |
| 7/17 | xarray: assert static storage for DEFINE_XARRAY_FLAGS()include/ tools/ | +5 | 0 replies | |
| 8/17 | idr: enforce the static-storage contract of DEFINE_IDR()include/ tools/ | +23 | 0 replies | |
| 9/17 | radix-tree: require static storage for RADIX_TREE()include/ tools/ tools/ +2 more | +42 | 0 replies | |
| 10/17 | klist: assert static storage for DEFINE_KLIST()include/ | +3 | 0 replies | |
| 11/17 | workqueue: assert static storage for work declarationsinclude/ | +7 | 0 replies | |
| 12/17 | timers: assert static storage for DEFINE_TIMER()include/ | +3 | 1 reply | |
| 13/17 | kthread: assert static storage for delayed work declarationsinclude/ | +3 | 0 replies | |
| 14/17 | ratelimit: assert static storage for DEFINE_RATELIMIT_STATE()include/ tools/ tools/ | +17 | 0 replies | |
| 15/17 | notifier: assert static storage for locking notifier headsinclude/ | +9 | 0 replies | |
| 16/17 | rcu: assert static storage for RCU sync and SRCU definitionsinclude/ include/ include/ | +11 | 3 replies | |
| 17/17 | sysctl: assert static storage for DEFINE_CTL_TABLE_POLL()include/ | +3 | 1 reply |
Reviews trailers per patch
3 of 17 patches have a Reviewed-by or Acked-by.
| Patch | Joel Granados | Thomas Gleixner | Joel Fernandes |
|---|---|---|---|
| 1/17 | |||
| 2/17 | |||
| 3/17 | |||
| 4/17 | |||
| 5/17 | |||
| 6/17 | |||
| 7/17 | |||
| 8/17 | |||
| 9/17 | |||
| 10/17 | |||
| 11/17 | |||
| 12/17 | R-b | ||
| 13/17 | |||
| 14/17 | |||
| 15/17 | |||
| 16/17 | R-b | ||
| 17/17 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 00/17] Treewide: enforce static storage for object initializers
On top of [1].
Declaration macros that statically initialize embedded locks require static storage when lockdep is enabled. Automatic objects must use runtime initialization so lockdep receives a persistent class key.
For automatic local objects, lockdep cannot use the lock address as a persistent class key and reports "INFO: trying to register non-static key" before disabling itself.
Series [1] introduces an ASSERT_STATIC_STORAGE() macro to enforce static duration of an object, and applies it for DEFINE_IDA() and DEFINE_MTREE().
This series applies the same mechanism for the other structures of that sort found by Codex.
--
[1] also describes the preferred route(s) for the material. According to Andrew's (and mine) preferences, sending everything together in the hope that the relevant maintainers would ack the corresponding patches or simply take them in their trees.
Yury Norov (17):
locking/mutex: assert static storage for DEFINE_MUTEX() locking/rtmutex: assert static storage for DEFINE_RT_MUTEX() locking/rwsem: assert static storage for semaphore definitions locking/semaphore: assert static storage for DEFINE_SEMAPHORE() locking/seqlock: assert static storage for DEFINE_SEQLOCK()
sched: assert static storage for wait queue and completion
declarations
xarray: assert static storage for DEFINE_XARRAY_FLAGS()
idr: enforce the static-storage contract of DEFINE_IDR()
radix-tree: require static storage for RADIX_TREE()
klist: assert static storage for DEFINE_KLIST()
workqueue: assert static storage for work declarations
timers: assert static storage for DEFINE_TIMER()
kthread: assert static storage for delayed work declarations
ratelimit: assert static storage for DEFINE_RATELIMIT_STATE()
notifier: assert static storage for locking notifier heads
rcu: assert static storage for RCU sync and SRCU definitions
sysctl: assert static storage for DEFINE_CTL_TABLE_POLL()
drivers/macintosh/ams/ams-pmu.c | 4 +-- drivers/net/wireguard/selftest/allowedips.c | 4 +-- include/linux/completion.h | 10 +++++-- include/linux/idr.h | 4 ++- include/linux/klist.h | 4 ++- include/linux/kthread.h | 4 ++- include/linux/mutex.h | 7 +++-- include/linux/notifier.h | 13 ++++++--- include/linux/percpu-rwsem.h | 4 ++- include/linux/radix-tree.h | 4 ++- include/linux/ratelimit_types.h | 4 ++- include/linux/rcu_sync.h | 4 ++- include/linux/rtmutex.h | 3 +- include/linux/rwsem.h | 7 +++-- include/linux/semaphore.h | 4 ++- include/linux/seqlock.h | 3 +- include/linux/srcutiny.h | 4 ++- include/linux/srcutree.h | 7 +++-- include/linux/swait.h | 6 ++-- include/linux/sysctl.h | 4 ++- include/linux/timer.h | 4 ++- include/linux/wait.h | 7 +++-- include/linux/workqueue.h | 10 +++++-- include/linux/xarray.h | 3 +- tools/testing/memblock/linux/mutex.h | 8 ++++-- tools/testing/radix-tree/benchmark.c | 4 ++- tools/testing/radix-tree/idr-test.c | 29 ++++++++++++++------ tools/testing/radix-tree/iteration_check_2.c | 4 ++- tools/testing/radix-tree/main.c | 16 ++++++++--- tools/testing/radix-tree/regression3.c | 4 ++- tools/testing/radix-tree/tag_check.c | 28 ++++++++++++++----- tools/testing/vma/include/dup.h | 5 +++- tools/virtio/linux/compiler.h | 9 ++++++ tools/virtio/linux/ratelimit.h | 6 +++- 34 files changed, 176 insertions(+), 65 deletions(-)
Signature · 1 line
2.53.0