linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/2] Introduce panic function when slub leaks
@ 2024-09-25 13:25 Fangzheng Zhang
  2024-09-25 13:25 ` [PATCH V2 1/2] mm/slub: Add " Fangzheng Zhang
  2024-09-25 13:25 ` [PATCH V2 2/2] Documentation: admin-guide: kernel-parameters: Add parameter description for slub_leak_panic function Fangzheng Zhang
  0 siblings, 2 replies; 4+ messages in thread
From: Fangzheng Zhang @ 2024-09-25 13:25 UTC (permalink / raw)
  To: Christoph Lameter, Pekka Enberg, David Rientjes, Joonsoo Kim,
	Andrew Morton, Vlastimil Babka, Roman Gushchin, Hyeonggon Yoo,
	Greg KH
  Cc: linux-mm, linux-kernel, tkjos, Fangzheng Zhang, Fangzheng Zhang,
	Yuming Han

Hi all,

A method to detect slub leaks by monitoring its usage in real time
on the page allocation path of the slub. When the slub occupancy
exceeds the user-set value, it is considered that the slub is leaking
at this time, and a panic operation will be triggered immediately.

Changes in v2:
- Fix error that unterminated conditional directive
- Avoid using #ifdef when referencing .h in .c files

Changes in v1:
- Add panic function when slub leaks
- Add parameter description for slub_leak_panic function

[1] https://lore.kernel.org/linux-mm/20240925032256.1782-1-fangzheng.zhang@unisoc.com

Fangzheng Zhang (2):
  mm/slub: Add panic function when slub leaks
  Documentation: admin-guide: kernel-parameters: Add parameter
    description for slub_leak_panic function

 .../admin-guide/kernel-parameters.txt         | 15 ++++
 mm/Kconfig                                    | 11 +++
 mm/slub.c                                     | 75 +++++++++++++++++++
 3 files changed, 101 insertions(+)

-- 
2.17.1



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

end of thread, other threads:[~2024-09-26  8:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-25 13:25 [PATCH V2 0/2] Introduce panic function when slub leaks Fangzheng Zhang
2024-09-25 13:25 ` [PATCH V2 1/2] mm/slub: Add " Fangzheng Zhang
2024-09-26  8:26   ` Greg KH
2024-09-25 13:25 ` [PATCH V2 2/2] Documentation: admin-guide: kernel-parameters: Add parameter description for slub_leak_panic function Fangzheng Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox