Messages in this thread | | | Subject | Re: [PATCH 2/2] kasan: disallow compiler to optimize away memset in tests | From | Andrey Ryabinin <> | Date | Fri, 2 Mar 2018 15:11:56 +0300 |
| |
On 03/01/2018 08:15 PM, Andrey Konovalov wrote: > A compiler can optimize away memset calls by replacing them with mov > instructions. There are KASAN tests, that specifically test that KASAN > correctly handles memset calls, we don't want this optimization to > happen. > > The solution is to add -fno-builtin flag to test_kasan.ko > > Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
| |