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

2020-06-05 Thread Roman Gushchin
On Tue, Jun 02, 2020 at 04:15:16PM +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. > The options can be also toggled at runtime by writing into the files. Some of

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

2020-06-05 Thread Kees Cook
On Tue, Jun 02, 2020 at 04:15:16PM +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. > The options can be also toggled at runtime by writing into the files. Some of

[RFC PATCH 2/5] mm, slub: make some 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. The options can be also toggled at runtime by writing into the files. Some of those, namely red_zone, poison, and store_user can be toggled only when