Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp906964ybk; Wed, 20 May 2020 15:21:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHeol/apXcczQ6DsE+/Mp8BDYtblhBys05yeVYxvtbaFerlDI/3PApOv0KpsBjqi25A412 X-Received: by 2002:a50:85ca:: with SMTP id q10mr2953190edh.51.1590013313220; Wed, 20 May 2020 15:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590013313; cv=none; d=google.com; s=arc-20160816; b=DvXbMkAkyQybYZn1rbysQiRZsDU6cjseBcAE3CjtJO/aS+lgLSUeuJnZqIwHuLdOL1 9GzP4yb2YJljZET+tfZLxrZ407h1uT0cCDq4U+HOTklpVThjyVjUBaPfHAsJ2mG1qQCD unMMyixpNA7uArF1z8wAG6p9Us4yAtwGCX27QfKwdPV1v5JarVswEHdh6ig+z9+4bLdu GsUbnwFb0QV/Uy7yLEmThEsJXdoPhUAOiaC9VlnS7Yl9RsSeyISgopOXMjZIjBm4hJus KDV4iK053cHH7n21gUSmtgkAhJEv5IPSe5YobMgEcuQvyhCSWqdRQfPf8HcUDTUIqJdr 0Tvg== 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=kYf72KKZVszNZ/yk8NzlKuZkkzdrnAXgCUIALVMakAw=; b=Vmg5Vmj6mPqGBo5DiRdFv85/EMhyNiEZG1PnnH3OW89XN9jwnbXOHS0IW1NSPoa9qc xmgHOvZpLWO1jrQZl5bUBsPrB5PzqAXG82Wz4RvUy2gNplLb4iR5o3csulOYKdnWymAo A7cLy29N65JxQyY6zCS+9Y4JA+EXnYf6Wpme7MdFUmBlYVNNpJqdKe/MZ9hosUEGb67U 9yPbuV1LnVEm8bU9z5Qljr8ggJMRWO0OTihX2FMZmToi00kjT46aqbKr384Vbc+gNy1u EqKuWpZoQr7FfuqhAzWYSOx7ztUjlkeePQwXOylV1hZD0GLVFVa6MiLh1uQiO69qSn6G DU5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Z2sSWKck; 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 ng5si2315328ejb.661.2020.05.20.15.21.29; Wed, 20 May 2020 15:21:53 -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=Z2sSWKck; 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 S1728490AbgETWRW (ORCPT + 99 others); Wed, 20 May 2020 18:17:22 -0400 Received: from mail.skyhub.de ([5.9.137.197]:33694 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbgETWRV (ORCPT ); Wed, 20 May 2020 18:17:21 -0400 Received: from zn.tnic (p200300ec2f0bab002db258470e3f635c.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:ab00:2db2:5847:e3f:635c]) (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 570181EC0298; Thu, 21 May 2020 00:17:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1590013040; 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:in-reply-to:in-reply-to: references:references; bh=kYf72KKZVszNZ/yk8NzlKuZkkzdrnAXgCUIALVMakAw=; b=Z2sSWKcknTQG1EqVCBXyc8EpOZnLcaZeT2+AGeSZufUIpIxj0rqrfeQC8oXLyiJZyaM3j/ xP0QZgUjbadHozIdc8+DzsoOQmC2n0o6fuk8i++7TcrGRVzaJmjVVloUl4anVTQ1NOkv99 33TvZxaf5AP3Pw28qXL53zdhS3T/zls= Date: Thu, 21 May 2020 00:17:12 +0200 From: Borislav Petkov To: Will Deacon , "Peter Zijlstra (Intel)" Cc: linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, Thomas Gleixner , Marco Elver , x86 Subject: Re: [tip: locking/kcsan] READ_ONCE: Use data_race() to avoid KCSAN instrumentation Message-ID: <20200520221712.GA21166@zn.tnic> References: <20200511204150.27858-18-will@kernel.org> <158929421358.390.2138794300247844367.tip-bot2@tip-bot2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <158929421358.390.2138794300247844367.tip-bot2@tip-bot2> 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 Hi, On Tue, May 12, 2020 at 02:36:53PM -0000, tip-bot2 for Will Deacon wrote: > The following commit has been merged into the locking/kcsan branch of tip: > > Commit-ID: cdd28ad2d8110099e43527e96d059c5639809680 > Gitweb: https://git.kernel.org/tip/cdd28ad2d8110099e43527e96d059c5639809680 > Author: Will Deacon > AuthorDate: Mon, 11 May 2020 21:41:49 +01:00 > Committer: Thomas Gleixner > CommitterDate: Tue, 12 May 2020 11:04:17 +02:00 > > READ_ONCE: Use data_race() to avoid KCSAN instrumentation > > Rather then open-code the disabling/enabling of KCSAN across the guts of > {READ,WRITE}_ONCE(), defer to the data_race() macro instead. > > Signed-off-by: Will Deacon > Signed-off-by: Thomas Gleixner > Acked-by: Peter Zijlstra (Intel) > Cc: Marco Elver > Link: https://lkml.kernel.org/r/20200511204150.27858-18-will@kernel.org so this commit causes a kernel build slowdown depending on the .config of between 50% and over 100%. I just bisected locking/kcsan and got NOT_OK: cdd28ad2d811 READ_ONCE: Use data_race() to avoid KCSAN instrumentation OK: 88f1be32068d kcsan: Rework data_race() so that it can be used by READ_ONCE() with a simple: $ git clean -dqfx && mk defconfig $ time make -j I'm not even booting the kernels - simply checking out the above commits and building the target kernels. I.e., something in that commit is making gcc go nuts in the compilation phases. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette