From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752032AbaIKD4m (ORCPT ); Wed, 10 Sep 2014 23:56:42 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:20755 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751573AbaIKD4l (ORCPT ); Wed, 10 Sep 2014 23:56:41 -0400 Message-ID: <54111D3B.6060609@oracle.com> Date: Wed, 10 Sep 2014 23:55:39 -0400 From: Sasha Levin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Andrey Ryabinin , linux-kernel@vger.kernel.org CC: Dmitry Vyukov , Konstantin Serebryany , Dmitry Chernenkov , Andrey Konovalov , Yuri Gribov , Konstantin Khlebnikov , Christoph Lameter , Joonsoo Kim , Andrew Morton , Dave Hansen , Andi Kleen , Vegard Nossum , "H. Peter Anvin" , x86@kernel.org, linux-mm@kvack.org, Randy Dunlap , Michal Marek , Ingo Molnar , Peter Zijlstra Subject: Re: [RFC/PATCH v2 01/10] Add kernel address sanitizer infrastructure. References: <1404905415-9046-1-git-send-email-a.ryabinin@samsung.com> <1410359487-31938-1-git-send-email-a.ryabinin@samsung.com> <1410359487-31938-2-git-send-email-a.ryabinin@samsung.com> In-Reply-To: <1410359487-31938-2-git-send-email-a.ryabinin@samsung.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Source-IP: acsinet22.oracle.com [141.146.126.238] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/10/2014 10:31 AM, Andrey Ryabinin wrote: > +ifdef CONFIG_KASAN > + ifeq ($(call cc-option, $(CFLAGS_KASAN)),) > + $(warning Cannot use CONFIG_KASAN: \ > + -fsanitize=kernel-address not supported by compiler) > + endif > +endif This seems to always indicate that my gcc doesn't support -fsanitize=kernel-address: Makefile:769: Cannot use CONFIG_KASAN: -fsanitize=kernel-address not supported by compiler Even though: $ gcc --version gcc (GCC) 5.0.0 20140904 (experimental) Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ cat test.c #include #include void __asan_init_v3(void) { } int main(int argc, char *argv[]) { return 0; } $ gcc -fsanitize=kernel-address test.c $ ./a.out $ Thanks, Sasha