Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp155207ybr; Fri, 22 May 2020 03:28:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFDYm/uMK4zhnHGn9ooN7JfNiK+BJqKUchLltBchDBE6AuUKlICMNQ3knqhoFuvLMHRXXN X-Received: by 2002:aa7:d612:: with SMTP id c18mr2529373edr.282.1590143324267; Fri, 22 May 2020 03:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590143324; cv=none; d=google.com; s=arc-20160816; b=Zf95GOeSaqUU/ti8ETPVwX6Hy5yPH/QtsneCmNYjiDHKaBSr3sUV5kqo9O89DeCMmP 0hO5KCQqChw6TzXadz0qqhU97zRwzsP55FPZGV0jxUbMPBRNVSTxPKE+zoIHeEn+dzAE swPnuao236Vfof7agHE0aOMzTRAw08EY9a57Nz2KKZcnD8gSk80k3GxPvtFLrxMHG48J I1aZbRO2WytfUb7Ie0ZrP2aDMk3mlUOyQA5IEdjiwWVV8DSq5TIWFUJ8+0yY2/pU+Ok/ OoxKPBdy7eoggnCkt0MIRhAHxhzc6jvFwuuhWIBFbTPSfiPfwIvqZcI77ZXG+GK95FlK W5cA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=P/XDVTKccx+x8Mgp+Gyd+1EjhHIf2Ys7dOXVJ8hPhJY=; b=X4VmvX/MtotsymvjPq0ygdMjoLpME3XV0k15oipHxnycfdTAdDTSTXFLbg3px5dcdf 0bF9c+sGngSlC4XRnUyF23wG/Pxu7SFp2VsU0j/nCrXvpXRRP44y6wtLtl1Enr+RoLG1 xvx7GS1GhGuUVTA6JGNfo6Rpdtmen+dwo0oUUE8cdziiPX8ZsdBi/+m/vnVYiw9CYSAH p+47Pmxt7rcS6IRDrQkN7uFryM5H5uI85ZyuMIGMhCo0+nrRkEwv6tp1SvLoKhN3WlQ3 9yLUmn0Q07IWr4/aKiJ9kRbHU+ekLLlbIbouhRzSuDkB7+ickjboqY+BwJGhcBUs7kPn I2JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=qdA9OPqs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m11si4855489ejq.18.2020.05.22.03.28.21; Fri, 22 May 2020 03:28:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=qdA9OPqs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728822AbgEVK0i (ORCPT + 99 others); Fri, 22 May 2020 06:26:38 -0400 Received: from mail.skyhub.de ([5.9.137.197]:54840 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728362AbgEVK0i (ORCPT ); Fri, 22 May 2020 06:26:38 -0400 Received: from zn.tnic (p200300ec2f0d490039ac3da161697ee8.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:4900:39ac:3da1:6169:7ee8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 12E0A1EC02B2; Fri, 22 May 2020 12:26:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1590143197; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P/XDVTKccx+x8Mgp+Gyd+1EjhHIf2Ys7dOXVJ8hPhJY=; b=qdA9OPqs3YetfQHsMojsLfh9BL0lLbfpHgSoVKShuV4ZH0no/JNOV7SPTR2aKbltkV92mt RHxHUObr70T0RJJfT1UHZOF8sGadQBNsSooyELgHC0iho0taZWcHaKaUDp7UFRFP/1AUfy 8ae0py51cA7JkVzn2yMTShQ+y+PTF04= Date: Fri, 22 May 2020 12:26:31 +0200 From: Borislav Petkov To: Marco Elver Cc: paulmck@kernel.org, dvyukov@google.com, glider@google.com, andreyknvl@google.com, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@kernel.org, peterz@infradead.org, will@kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH -tip v3 03/11] kcsan: Support distinguishing volatile accesses Message-ID: <20200522102630.GC28750@zn.tnic> References: <20200521142047.169334-1-elver@google.com> <20200521142047.169334-4-elver@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200521142047.169334-4-elver@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 21, 2020 at 04:20:39PM +0200, Marco Elver wrote: > diff --git a/scripts/Makefile.kcsan b/scripts/Makefile.kcsan > index 20337a7ecf54..75d2942b9437 100644 > --- a/scripts/Makefile.kcsan > +++ b/scripts/Makefile.kcsan > @@ -9,7 +9,10 @@ else > cc-param = --param -$(1) > endif > > +# Keep most options here optional, to allow enabling more compilers if absence > +# of some options does not break KCSAN nor causes false positive reports. > CFLAGS_KCSAN := -fsanitize=thread \ > - $(call cc-option,$(call cc-param,tsan-instrument-func-entry-exit=0) -fno-optimize-sibling-calls) > + $(call cc-option,$(call cc-param,tsan-instrument-func-entry-exit=0) -fno-optimize-sibling-calls) \ > + $(call cc-param,tsan-distinguish-volatile=1) gcc 9 doesn't like this: cc1: error: invalid --param name ‘-tsan-distinguish-volatile’ make[1]: *** [scripts/Makefile.build:100: scripts/mod/devicetable-offsets.s] Error 1 make[1]: *** Waiting for unfinished jobs.... cc1: error: invalid --param name ‘-tsan-distinguish-volatile’ make[1]: *** [scripts/Makefile.build:267: scripts/mod/empty.o] Error 1 make: *** [Makefile:1141: prepare0] Error 2 make: *** Waiting for unfinished jobs.... git grep "tsan-distinguish-volatile" in gcc's git doesn't give anything. Hmm. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette