[Devel] [PATCH 2/4] mm, slub, kasan: enable user tracking by default.

Vladimir Davydov vdavydov at parallels.com
Mon Sep 7 06:56:12 PDT 2015


On Fri, Sep 04, 2015 at 05:06:14PM +0300, Andrey Ryabinin wrote:
...
> @@ -457,6 +457,8 @@ static void get_map(struct kmem_cache *s, struct page *page, unsigned long *map)
>   */
>  #ifdef CONFIG_SLUB_DEBUG_ON
>  static int slub_debug = DEBUG_DEFAULT_FLAGS;
> +#elif defined (CONFIG_KASAN)
> +static int slub_debug = SLAB_STORE_USER;

Why not just enable SLUB_DEBUG_ON for debug kernels?

>  #else
>  static int slub_debug;
>  #endif



More information about the Devel mailing list