From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22574 invoked by alias); 18 Jul 2014 11:58:19 -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 22535 invoked by uid 89); 18 Jul 2014 11:58:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f178.google.com Received: from mail-ie0-f178.google.com (HELO mail-ie0-f178.google.com) (209.85.223.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 18 Jul 2014 11:58:16 +0000 Received: by mail-ie0-f178.google.com with SMTP id tp5so4311473ieb.23 for ; Fri, 18 Jul 2014 04:58:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=Hq5vSS89IV+N1IKhaqTlXz0v2Z4Lo4ydbMJGSfzOvYM=; b=LJgHexd0Owovl3qpPQ577EIxSwuSr7wxUpG/g8RVEzhSb57lo+JLjiKGZH2lsDWpy1 Xl1/94GQCCMAt0iXMsUexQWNTfDJS4IuSKfZQsICkZ+vE/2djpAArKoX5jaf3xB2SAMd yvkeRmQN/A2s/M9n8VvemH5sgCp2RPhgMJ3F9G+N6A7M4rVj0qoWkz+8rcrBFvqkFygc Zll3f6uXo4Eu/nM19Sr4FmkXyA2KVNXYA3txykuvHy2fnJesG2JzZscrmeZ5p4uLiI3/ M3zYXw5DvPwdSgPwnaxaSCYA5W+B66L9BkaftstoTC9beTCd61Abve4LGWyIZuXQYvE1 ibrQ== X-Gm-Message-State: ALoCoQnCA4zapGDkK5DbLzI4WpnZDjN4UUzPMMUw/AtQxZ2tXLHoTzO37FViCFslwMyd3B9pgscW X-Received: by 10.50.79.196 with SMTP id l4mr8343230igx.12.1405684693444; Fri, 18 Jul 2014 04:58:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.102.3 with HTTP; Fri, 18 Jul 2014 04:57:53 -0700 (PDT) In-Reply-To: <53C9079F.3060907@samsung.com> References: <53C9079F.3060907@samsung.com> From: Dmitry Vyukov Date: Fri, 18 Jul 2014 12:44:00 -0000 Message-ID: Subject: Re: [PATCH] Add support for KernelAddressSanitizer To: Yury Gribov Cc: GCC Patches , Konstantin Serebryany , Andrey Ryabinin , Jakub Jelinek Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg01292.txt.bz2 On Fri, Jul 18, 2014 at 3:40 PM, Yury Gribov wrote: > Hi all, > > This tiny patch adds support for KernelASan. KASan brings Asan error > detection capabilities to Linux kernel > (https://code.google.com/p/address-sanitizer/wiki/AddressSanitizerForKernel). > > KASan works similar to normal userspace ASan but disables some options which > are not yet supported by kernel (notably inline instrumentation, > stack/global protection and UAR). We would prefer to hide all necessary > tweaks under a user-friendly flag (-fsanitize=kernel-address) instead of > forcing them directly in kernel's CFLAGS. > > Kernel patches are currently under review in LKML > (https://lkml.org/lkml/2014/7/9/990). > > Bootstrapped and regtested on x64. > > Ok to commit? Thanks for doing this, Yury. The patch looks good to me FWIW, but please wait for Jakub or somebody else with stronger gcc-fu.