mm/slub: fix validation races and cleanup locking
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 14 repliesIn review
- v11 of 5 patches 10 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | mm/slub: move free_debug_processing() furthermm/ | +57 | 0 replies | |
| 2/5 | mm/slub: restrict sysfs validation to debug caches and make it safemm/ | +179 | 1 reply | |
| 3/5 | mm/slub: remove slab_lock() usage for debug operationsmm/ | +8 | 0 replies | |
| 4/5 | mm/slub: convert object_map_lock to non-raw spinlockmm/ | +6 | 1 reply | |
| 5/5 | mm/slub: simplify __cmpxchg_double_slab() and slab_[un]lock()mm/ | +12 | 8 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Hyeonggon Yoo | David Rientjes | Sebastian Andrzej Siewior | Peter Zijlstra (Intel) |
|---|---|---|---|---|
| Series | R-b | A-b | ||
| 1/5 | R-b | A-b | ||
| 2/5 | R-b | |||
| 3/5 | R-b | A-b | ||
| 4/5 | R-b | A-b | R-b | |
| 5/5 | R-b | A-b | 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 4 reviewers.
Cover letter [PATCH v2 0/5] mm/slub: fix validation races and cleanup locking
This series builds on the validation races fix posted previously [1] that became patch 2 here and contains all the details in its description.
Thanks to Hyeonggon Yoo's observation, patch 3 removes more slab_lock() usage that became unnecessary after patch 2.
This made it possible to further simplify locking code in patches 4 and
5. Since those are related to PREEMPT_RT, I'm CCing relevant people on this series.
Changes since v1 [2]:
- add acks/reviews from Hyeonggon and David
- minor fixes to patch 2 as reported by Hyeonggon
- patch 5 reworked to rely on disabled preemption by bit_spin_lock() which should be sufficient without disabled interrupts on RT
git version:
https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/linux.git/log/?h=slub-validate-fix-v2r2
I plan to add this series to slab.git for-next in few days.
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
Vlastimil Babka (5):
mm/slub: move free_debug_processing() further
mm/slub: restrict sysfs validation to debug caches and make it safe mm/slub: remove slab_lock() usage for debug operations mm/slub: convert object_map_lock to non-raw spinlock mm/slub: simplify __cmpxchg_double_slab() and slab_[un]lock()
mm/slub.c | 417 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 251 insertions(+), 166 deletions(-)
Signature · 1 line
2.37.2