--- zzzz-none-000/linux-5.15.111/lib/Kconfig.debug 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/lib/Kconfig.debug 2024-02-07 10:23:29.000000000 +0000 @@ -680,6 +680,23 @@ allocation as well as poisoning memory on free to catch use of freed memory. This can make kmalloc/kfree-intensive workloads much slower. +config DEBUG_SLAB_DOUBLE_FREE + bool "SLAB double free check enabled" + depends on DEBUG_KERNEL && SLAB && !DEBUG_SLAB + default y + help + Say Y here if you hit BUG or BUG_ON in slab.c, to find the problem. + This makes kmalloc/kfree-intensive workloads only a little bit slower. + +config DEBUG_SLAB_AVM_LITE + + bool "SLAB store caller and time for memoryleak-analyzing on oom" + depends on DEBUG_KERNEL && SLAB && DEBUG_SLAB_DOUBLE_FREE && AVM_KERNEL + default y + help + Say Y if you want per-caller-and-time-history for kmallocs + the overhead (cpu-run/memory) is VERY small + config SLUB_DEBUG_ON bool "SLUB debugging on by default" depends on SLUB && SLUB_DEBUG