Re: [RFC PATCH 4/5] mm, slub: make remaining slub_debug related attributes read-only

2020-06-05 Thread Roman Gushchin
On Tue, Jun 02, 2020 at 04:15:18PM +0200, Vlastimil Babka wrote: > SLUB_DEBUG creates several files under /sys/kernel/slab// that can be > read to check if the respective debugging options are enabled for given cache. > Some options, namely sanity_checks, trace, and failslab can be also enabled >

Re: [RFC PATCH 4/5] mm, slub: make remaining slub_debug related attributes read-only

2020-06-05 Thread Kees Cook
On Tue, Jun 02, 2020 at 04:15:18PM +0200, Vlastimil Babka wrote: > SLUB_DEBUG creates several files under /sys/kernel/slab// that can be > read to check if the respective debugging options are enabled for given cache. > Some options, namely sanity_checks, trace, and failslab can be also enabled >

[RFC PATCH 4/5] mm, slub: make remaining slub_debug related attributes read-only

2020-06-02 Thread Vlastimil Babka
SLUB_DEBUG creates several files under /sys/kernel/slab// that can be read to check if the respective debugging options are enabled for given cache. Some options, namely sanity_checks, trace, and failslab can be also enabled and disabled at runtime by writing into the files. The runtime toggling