From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14325 invoked by alias); 18 Jul 2014 13:31:07 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 14307 invoked by uid 89); 18 Jul 2014 13:31:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mailout4.w1.samsung.com Received: from mailout4.w1.samsung.com (HELO mailout4.w1.samsung.com) (210.118.77.14) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (DES-CBC3-SHA encrypted) ESMTPS; Fri, 18 Jul 2014 13:31:05 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N8W00HFFTJGLM50@mailout4.w1.samsung.com>; Fri, 18 Jul 2014 14:30:52 +0100 (BST) Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id CF.8F.19257.49129C35; Fri, 18 Jul 2014 14:31:00 +0100 (BST) Received: from [106.109.9.145] by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N8W00FO2TJOYI10@eusync1.samsung.com>; Fri, 18 Jul 2014 14:31:00 +0100 (BST) Message-id: <53C92197.50709@samsung.com> Date: Fri, 18 Jul 2014 13:35:00 -0000 From: Yury Gribov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-version: 1.0 To: Dmitry Vyukov , Jakub Jelinek Cc: GCC Patches , Konstantin Serebryany , Andrey Ryabinin Subject: Re: [PATCH] Add support for KernelAddressSanitizer References: <53C9079F.3060907@samsung.com> <20140718122625.GC3003@laptop.redhat.com> In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg01296.txt.bz2 >> Also, oring in SANITIZER_ADDRESS means you add -lasan to link flags, I'd >> guess that for -fsanitize=kernel-address you don't want to add any libraries >> at link time? > > I suspect that we don't pass -fsanitize=kernel-address during linking > in kernel today. But I agree that it's better to disable any > processing during linking for now. Later we may want to do something > special during linking if -fsanitize=kernel-address is supplied. AFAIK kernel is linked directly with ld so this may not be a big issue. >> Do you error out on -fsanitize=thread -fsanitize=kernel-address ? >> Perhaps -fsanitize=kernel-address -fsanitize=address should be >> invalid too? > > Yes, all these combinations are invalid. Ok, I'll add these. -Y