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@xxxxxxxxxx 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