Re: [RFC/PATCH v2 01/10] Add kernel address sanitizer infrastructure.

From: Randy Dunlap
Date: Mon Sep 15 2014 - 12:25:26 EST


On 09/15/14 08:28, Andrey Ryabinin wrote:
> On 09/14/2014 05:35 AM, Randy Dunlap wrote:
>> Following sentence is confusing. I'm not sure how to fix it.
>>
>
>
> Perhaps rephrase is like this:
>
> Do not use slub poisoning with KASan if user tracking enabled (iow slub_debug=PU).

if user tracking is enabled

> User tracking info (allocation/free stacktraces) are stored inside slub object's metadata.
> Slub poisoning overwrites slub object and it's metadata with poison value on freeing.

its

> So if KASan will detect use after free, allocation/free stacktraces will be overwritten

So if KASan detects a use after free, allocation/free stacktraces are overwritten

> and KASan won't be able to print them.


Thanks.

--
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/