Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1540939

Re: [PATCH v2] kasan: Support for r/w instrumentation control

From Dmitry Vyukov <dvyukov@google.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2] kasan: Support for r/w instrumentation control
Date 2016-12-13 10:40 +0100
Message-ID <sNRIZ-7VX-5@gated-at.bofh.it> (permalink)
References <sNOrL-63l-13@gated-at.bofh.it> <sNR6h-7sY-23@gated-at.bofh.it> <sNRIZ-7VX-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Dec 13, 2016 at 10:20 AM, Andrey Ryabinin
<aryabinin@virtuozzo.com> wrote:
>
>
> On 12/13/2016 11:58 AM, Dmitry Vyukov wrote:
>
>> --- a/Documentation/dev-tools/kasan.rst
>> +++ b/Documentation/dev-tools/kasan.rst
>> @@ -40,6 +40,14 @@ similar to the following to the respective kernel Makefile:
>>
>>      KASAN_SANITIZE := n
>>
>> +Sometimes it may be useful to disable instrumentation of reads, or writes
>> +or both for the entire kernel. For example, if binary size is a concern,
>> +it may be useful to disable instrumentation of reads to reduce binary size but
>> +still catch more harmful bugs on writes. Or, if one is interested only in
>> +sanitization of a particular module and performance is a concern, she can
>> +disable instrumentation of both reads and writes for kernel code.
>> +Instrumentation can be disabled with CONFIG_KASAN_READS and
>> CONFIG_KASAN_WRITES.
>> +
>
> I don't understand this. How this can be related to modules? Configs are global.
> You can't just disable/enable config per module.


Build everything without instrumentation. Then enable instrumentation
and do "make lib/test_kasan.ko".
Or build everything, copy out bzImage, change config, build everything again.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2] kasan: Support for r/w instrumentation control Maninder Singh <maninder1.s@samsung.com> - 2016-12-13 07:10 +0100
  Re: [PATCH v2] kasan: Support for r/w instrumentation control Dmitry Vyukov <dvyukov@google.com> - 2016-12-13 10:00 +0100
    Re: [PATCH v2] kasan: Support for r/w instrumentation control Dmitry Vyukov <dvyukov@google.com> - 2016-12-13 10:40 +0100
      Re: [PATCH v2] kasan: Support for r/w instrumentation control Dmitry Vyukov <dvyukov@google.com> - 2016-12-13 15:20 +0100
        Re: [PATCH v2] kasan: Support for r/w instrumentation control Dmitry Vyukov <dvyukov@google.com> - 2016-12-16 11:50 +0100

csiph-web