Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2576482yba; Mon, 6 May 2019 08:14:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGQmdovyxPhk22pDPeO4Y6w83sw5VRtuxcobuYVYAQtsrzYx2LpHL69ObtHVRqVTUDHpad X-Received: by 2002:a63:2ac5:: with SMTP id q188mr23605282pgq.388.1557155643014; Mon, 06 May 2019 08:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557155643; cv=none; d=google.com; s=arc-20160816; b=RiypD3GmJ2Wi/0GnjS9O7BcfxRzQIGmW2K2BC+bVHUL7rMQzUHvo0P+MD+F7g8+JhK wLtMBTONz8LOBk3wuuv4wkx1ir6uo35JFYLHy/Rh4eIr1z49wXBJ7j2Xoyyvz5IjA4MQ epMo54iwWVjQ8JG3XICKkkwGZWM9iewlpUZ6NuBrFX//4xjm/RYNkFVpOfHThOVmP0oY Qaq49uFmShiC3017k6cIqjEMHBr7gah6U/MKymxK1rue6+AgnR3cu2jMJBPVOG1oRQej atYcHqj7Mrvc+Hh69fex5OhQstVdK6AYTy5Cp3jhnJybu1YTRjyOA2dNeFkH64xqDEku 2e2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gpxb2OXleltJB7bp2gCrMqSo+Fse7ykMcvI/HmjSL8E=; b=V8IhUe1RZkUZeuMGS2NSVoR1IPsVnE3tNhdG5w6tkHo5bOgbZOcpm1fuV1oE67q4Bu aK6c/l1j51N2HowQKO44ncf0NeOBGpuv38oHJ7ZQ5Edfee0W6FzhLsej6WlWq7qidbnK RZLUOojERbIcweB4htNEUU1ZvIw99Z/UzgNW4nNUmNWi65TqTK8RblrQAB59fZqF3hwQ ErKuxOdY8a4/mh2lv13XRvXmVKZo6jRri3pz+ZopGY9k0xImWNQ1/pXpi5vN8KIIBzFW vuGo2ZZ6+2SvZFmKyIGFx9lJfo7x2zX81spY8U63yyyGMg3weNzsyQSnGWG8YKfIDMZX w5fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="zp/FHHK6"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si13736801pgw.384.2019.05.06.08.13.46; Mon, 06 May 2019 08:14:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="zp/FHHK6"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727112AbfEFPM5 (ORCPT + 99 others); Mon, 6 May 2019 11:12:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:41614 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727082AbfEFPMz (ORCPT ); Mon, 6 May 2019 11:12:55 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B3E9521479; Mon, 6 May 2019 15:12:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557155574; bh=t8vKwFlI0bJLS5h2dD31IGjB9vHPflvMjtuqWataVgE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zp/FHHK69KnVw6FJoIY0+qmT20u56Ud5KTj1UbT0/sgJtv+vuS7wCrfY7+pCgNGiX wS4WWPW4HlweOLnXiKhTgbevvWyzvsWh63LhEZit/dYUO3WOym8435ft6j7T06kMcu tXz3VBexFyPWtE4sp3vLnUDqvjr/z+3Y+tgLeAUs= Date: Mon, 6 May 2019 17:10:26 +0200 From: Greg Kroah-Hartman To: Andrey Ryabinin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Dmitry Vyukov , Alexander Potapenko , Andrey Konovalov , Andrew Morton , Linus Torvalds Subject: Re: [PATCH 4.9 09/62] kasan: turn on -fsanitize-address-use-after-scope Message-ID: <20190506151026.GA12193@kroah.com> References: <20190506143051.102535767@linuxfoundation.org> <20190506143051.888762392@linuxfoundation.org> <6636d7cf-03fe-e253-f981-e07d75858b33@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6636d7cf-03fe-e253-f981-e07d75858b33@virtuozzo.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 06, 2019 at 05:55:54PM +0300, Andrey Ryabinin wrote: > > > On 5/6/19 5:32 PM, Greg Kroah-Hartman wrote: > > From: Andrey Ryabinin > > > > commit c5caf21ab0cf884ef15b25af234f620e4a233139 upstream. > > > > In the upcoming gcc7 release, the -fsanitize=kernel-address option at > > first implied new -fsanitize-address-use-after-scope option. This would > > cause link errors on older kernels because they don't have two new > > functions required for use-after-scope support. Therefore, gcc7 changed > > default to -fno-sanitize-address-use-after-scope. > > > > Now the kernel has everything required for that feature since commit > > 828347f8f9a5 ("kasan: support use-after-scope detection"). So, to make it > > work, we just have to enable use-after-scope in CFLAGS. > > > > Link: http://lkml.kernel.org/r/1481207977-28654-1-git-send-email-aryabinin@virtuozzo.com > > Signed-off-by: Andrey Ryabinin > > Acked-by: Dmitry Vyukov > > Cc: Alexander Potapenko > > Cc: Andrey Konovalov > > Signed-off-by: Andrew Morton > > Signed-off-by: Linus Torvalds > > Signed-off-by: Andrey Konovalov > > Signed-off-by: Greg Kroah-Hartman > > > > --- > > scripts/Makefile.kasan | 2 ++ > > 1 file changed, 2 insertions(+) > > > > --- a/scripts/Makefile.kasan > > +++ b/scripts/Makefile.kasan > > @@ -29,6 +29,8 @@ else > > endif > > endif > > > > +CFLAGS_KASAN += $(call cc-option, -fsanitize-address-use-after-scope) > > + > > CFLAGS_KASAN_NOSANITIZE := -fno-builtin > > > > endif > > > > > > This shouldn't be in the -stable. Why not? Does no one use gcc7 with this kernel and kasan? thanks, greg k-h