Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp972500ybc; Tue, 19 Nov 2019 12:16:42 -0800 (PST) X-Google-Smtp-Source: APXvYqy24mR/YfJRCKmRnriTCK6l7MIFTD2+BYtFf4OSBHKui9K9YGHKBemBSHD1+h/cOsrsvHkp X-Received: by 2002:a5d:640b:: with SMTP id z11mr38379218wru.195.1574194602063; Tue, 19 Nov 2019 12:16:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574194602; cv=none; d=google.com; s=arc-20160816; b=PmGAJ/NPVGXVDA3qgAXnGPGUdHkp0UBjfNMULHj+srszs+FuI52vXNBwBY7MogfcdJ /yc7QIGeAOsNmm0kFbKP1fb76+Ycdibsgt1U6TeuNMhO+V15b3eAd5E4n02TshGjYdQZ cfe/wiiacDfniMX3AojOsSENtqcUZkuFe9E9Bvb0P97T/BFusoCJl9EkWnLz1DNDcSGC 48w2mjmCW3cFtsjQUH1gKm4plwMY2Bj5bN48TEt7O6SDGQcPmgsWgtXKO4ybz9Tms83k 5ZheEwhA9xaZQyMRT6CPMdSTRLg6liAbwJnlALcm0i+xHiL7WvJN8F66IZbBB4gXeLy9 MRrg== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=PTEYttdJmVnCI1hp3YE0ED2m1O+cmXYC4pHie36qen0=; b=d51IpMjRzS9B5bVMp8MkPH+hcD5AKTpTdDjD5zQxo2Xp8jpucBxIsJufveQtZ8nRrC iNGcTjc0wzMQfnBMBuQ4O8KuuM1A48blPEtllTjpVf1D4sCYlxZNSI4MaaZjvxXIlO+o zbihdVeEqReqQCOgsd/5cv2P1VcncxGYUkXh1KcTLBCJJyeUBIddYVExEpEwAVmdMKyV yOn1LLpJ0nUWt87D5C1zFWnjYoSdk9FU4Nnm0//AJAhfvxIja0kfkKddTR0sWpCCrMQk Nq9MYqtD835Hm3WzNEm0fBm9Y8d6T7FdwdzaaFxw0AfdqSE/Ac7wsdd+BXZ5drjKvQTz 9oiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SwLovSoQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t17si16860584edc.426.2019.11.19.12.16.16; Tue, 19 Nov 2019 12:16:42 -0800 (PST) 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=SwLovSoQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727324AbfKSUO4 (ORCPT + 99 others); Tue, 19 Nov 2019 15:14:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:48508 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726711AbfKSUO4 (ORCPT ); Tue, 19 Nov 2019 15:14:56 -0500 Received: from paulmck-ThinkPad-P72.home (unknown [199.201.64.140]) (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 B175C22317; Tue, 19 Nov 2019 20:14:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574194494; bh=LdeFR8HtAJeWIP3e9Vs/cKUSbteqaXMjyl1Ec8EruKk=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=SwLovSoQhuIBOL/A5tJGPo/B7AbyFiPYw158oAxj6ucrg+7mTHw4C56LnFqltrVpY b6j3bhqfx762viVwIQkBKWNZXQTQqkP2Y4L+dOwLDHK2JuDRNT/wobwWi1Hh/uAxrd f2bg32TSgRmNM5oynZjwqvQb6LPlgmDb4vBWg/V4= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 4BC933520FA7; Tue, 19 Nov 2019 12:14:54 -0800 (PST) Date: Tue, 19 Nov 2019 12:14:54 -0800 From: "Paul E. McKenney" To: Marco Elver Cc: Qian Cai , Randy Dunlap , Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , kasan-dev , Dmitry Vyukov Subject: Re: linux-next: Tree for Nov 19 (kcsan) Message-ID: <20191119201454.GE2889@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20191119194658.39af50d0@canb.auug.org.au> <20191119183407.GA68739@google.com> <1574190168.9585.4.camel@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 19, 2019 at 08:05:45PM +0100, Marco Elver wrote: > On Tue, 19 Nov 2019 at 20:02, Qian Cai wrote: > > > > On Tue, 2019-11-19 at 19:34 +0100, 'Marco Elver' via kasan-dev wrote: > > > On Tue, 19 Nov 2019, Randy Dunlap wrote: > > > > > > > On 11/19/19 8:12 AM, Marco Elver wrote: > > > > > On Tue, 19 Nov 2019 at 16:11, Randy Dunlap wrote: > > > > > > > > > > > > On 11/19/19 12:46 AM, Stephen Rothwell wrote: > > > > > > > Hi all, > > > > > > > > > > > > > > Changes since 20191118: > > > > > > > > > > > > > > > > > > > on x86_64: > > > > > > > > > > > > It seems that this function can already be known by the compiler as a > > > > > > builtin: > > > > > > > > > > > > ../kernel/kcsan/core.c:619:6: warning: conflicting types for built-in function ‘__tsan_func_exit’ [-Wbuiltin-declaration-mismatch] > > > > > > void __tsan_func_exit(void) > > > > > > ^~~~~~~~~~~~~~~~ > > > > > > > > > > > > > > > > > > $ gcc --version > > > > > > gcc (SUSE Linux) 7.4.1 20190905 [gcc-7-branch revision 275407] > > > > > > > > > > Interesting. Could you share the .config? So far I haven't been able > > > > > to reproduce. > > > > > > > > Sure, it's attached. > > > > > > Thanks, the config did the trick, even for gcc 9.0.0. > > > > > > The problem is CONFIG_UBSAN=y. We haven't explicitly disallowed it like > > > with KASAN. In principle there should be nothing wrong with KCSAN+UBSAN. > > > > > > There are 3 options: > > > 1. Just disable UBSAN for KCSAN, and also disable KCSAN for UBSAN. > > > 2. Restrict the config to not allow combining KCSAN and UBSAN. > > > 3. Leave things as-is. > > > > > > Option 1 probably makes most sense, and I'll send a patch for that > > > unless there are major objections. > > > > Both option #1 and #2 sounds quite unfortunate, as UBSAN is quite valuable for > > debugging. Hence, it is desire to make both work at the same time. > > Apologies, I think I was a bit unclear with #1. For #1, this just > means that UBSAN is being disabled for the KCSAN runtime and > vice-versa. All other parts of the kernel are still instrumented with > both. > > See here: https://lore.kernel.org/linux-next/20191119185742.GB68739@google.com/ Huh. This somehow got stuck into my non-urgent email. No idea why. Anyway, I applied and pushed it out on the kcsan branch of -rcu. Thanx, Paul