On 09/07/2015 04:56 PM, Vladimir Davydov wrote:
> 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 =
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)
>
On Mon, Sep 07, 2015 at 05:11:29PM +0300, Andrey Ryabinin wrote:
>
>
> On 09/07/2015 04:56 PM, Vladimir Davydov wrote:
> > 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
It's recomended to have slub's user tracking enabled with CONFIG_KASAN:
a) User tracking disables slab merging which improves
detecting out-of-bounds accesses.
b) User tracking metadata acts as redzone which also improves
detecting out-of-bounds accesses.
c) User tracking provides