Re: [PATCH 6/9] mm, slub: introduce static key for slub_debug()

2020-06-17 Thread Kees Cook
On Wed, Jun 10, 2020 at 06:31:32PM +0200, Vlastimil Babka wrote: > One advantage of CONFIG_SLUB_DEBUG is that a generic distro kernel can be > built > with the option enabled, but it's inactive until simply enabled on boot, > without rebuilding the kernel. With a static key, we can further

Re: [PATCH 6/9] mm, slub: introduce static key for slub_debug()

2020-06-10 Thread Roman Gushchin
On Wed, Jun 10, 2020 at 06:31:32PM +0200, Vlastimil Babka wrote: > One advantage of CONFIG_SLUB_DEBUG is that a generic distro kernel can be > built > with the option enabled, but it's inactive until simply enabled on boot, > without rebuilding the kernel. With a static key, we can further

[PATCH 6/9] mm, slub: introduce static key for slub_debug()

2020-06-10 Thread Vlastimil Babka
One advantage of CONFIG_SLUB_DEBUG is that a generic distro kernel can be built with the option enabled, but it's inactive until simply enabled on boot, without rebuilding the kernel. With a static key, we can further eliminate the overhead of checking whether a cache has a particular debug flag