Re: [RFC PATCH v3 13/13] kasan: introduce inline instrumentation

From: Andrey Ryabinin
Date: Mon Sep 29 2014 - 10:34:52 EST


On 09/29/2014 06:28 PM, Dmitry Vyukov wrote:
> On Fri, Sep 26, 2014 at 9:33 PM, Andrey Ryabinin <ryabinin.a.a@xxxxxxxxx> wrote:
>> 2014-09-26 21:18 GMT+04:00 Dmitry Vyukov <dvyukov@xxxxxxxxxx>:
>>>
>>> Yikes!
>>> So this works during bootstrap, for user memory accesses, valloc
>>> memory, etc, right?
>>>
>>
>> Yes, this works. Userspace memory access in instrumented code will
>> produce general protection fault,
>> so it won't be unnoticed.
>
>
> Great!
> What happens during early bootstrap when shadow is not mapped yet?
>

Shadow mapped very early. Any instrumented code executes only after shadow mapped.
--
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/