linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] mm/slub: fix validation races and cleanup locking
@ 2022-08-23 17:03 Vlastimil Babka
  2022-08-23 17:03 ` [PATCH v2 1/5] mm/slub: move free_debug_processing() further Vlastimil Babka
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Vlastimil Babka @ 2022-08-23 17:03 UTC (permalink / raw)
  To: Rongwei Wang, Christoph Lameter, Joonsoo Kim, David Rientjes,
	Pekka Enberg
  Cc: Hyeonggon Yoo, Roman Gushchin, linux-mm,
	Sebastian Andrzej Siewior, Thomas Gleixner, Mike Galbraith,
	Vlastimil Babka

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/20220809140043.9903-1-vbabka@suse.cz/
[2] https://lore.kernel.org/all/20220812091426.18418-1-vbabka@suse.cz/

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(-)

-- 
2.37.2



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2022-08-25 13:16 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-23 17:03 [PATCH v2 0/5] mm/slub: fix validation races and cleanup locking Vlastimil Babka
2022-08-23 17:03 ` [PATCH v2 1/5] mm/slub: move free_debug_processing() further Vlastimil Babka
2022-08-23 17:03 ` [PATCH v2 2/5] mm/slub: restrict sysfs validation to debug caches and make it safe Vlastimil Babka
2022-08-24  4:41   ` Hyeonggon Yoo
2022-08-23 17:03 ` [PATCH v2 3/5] mm/slub: remove slab_lock() usage for debug operations Vlastimil Babka
2022-08-23 17:03 ` [PATCH v2 4/5] mm/slub: convert object_map_lock to non-raw spinlock Vlastimil Babka
2022-08-24 15:53   ` Sebastian Andrzej Siewior
2022-08-23 17:04 ` [PATCH v2 5/5] mm/slub: simplify __cmpxchg_double_slab() and slab_[un]lock() Vlastimil Babka
2022-08-24 10:24   ` Hyeonggon Yoo
2022-08-24 11:51     ` Vlastimil Babka
2022-08-24 12:45       ` Hyeonggon Yoo
2022-08-24 16:31     ` Sebastian Andrzej Siewior
2022-08-24 13:04   ` Hyeonggon Yoo
2022-08-25 12:41     ` Vlastimil Babka
2022-08-24 16:25   ` Sebastian Andrzej Siewior
2022-08-25 12:59     ` Vlastimil Babka
2022-08-25  7:51 ` [PATCH 6/5] slub: Make PREEMPT_RT support less convoluted Sebastian Andrzej Siewior
2022-08-25  8:41   ` Vlastimil Babka
2022-08-25  8:49   ` Hyeonggon Yoo
2022-08-25 13:16 ` [PATCH v2 0/5] mm/slub: fix validation races and cleanup locking Vlastimil Babka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).