Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp896439ybc; Tue, 19 Nov 2019 11:04:39 -0800 (PST) X-Google-Smtp-Source: APXvYqzXAetAVzg8CaAYpND4v1msBb2kr1cof5YEhIq0Xa5Uo9KGVRX2QLA/7BIGHaA6WE6FJBeQ X-Received: by 2002:adf:d844:: with SMTP id k4mr37755919wrl.333.1574190279497; Tue, 19 Nov 2019 11:04:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574190279; cv=none; d=google.com; s=arc-20160816; b=wUjSqyQIpFXRNv+VZw/nuyscVNtDfJw3N4yeLFVtHpUxXJCyWt+73NfI+vEp786Tlt 9C6ojY6EL9tvEFNrPcVsWU04LoerQmW9Ls1XwDXHkyixCmVrXwEiHrf3iYdCxa/IR9Ud 5jJ2hvorQNPIoJl1U6cSDaWJE4y2F7DiUobr+XYkMsrP/eOtF68+0wFncAKVWLN1ZibV z7v1zWdGFwFK/+U/JOYHQb53iat0QUjFksw2CEhMAQYbYjpJu/bfbu8RX8qMCDnrt5Yq HM2mrZTHrbtJ3WD+UAD4PpcKaZ1ge5ATzEFRv7Po7TwvPkvg/t+oA1+4WaVm4huMyqPI G/Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=nOtlx8W5kFFOHYOOqCInicVcS9VMgxzZJDB6vPZYj8Y=; b=cKbnZfB1GM1/bvZBVQKJkS9BpFB43ZC74aSP3K7V//vxKyObY4oD0//2lHFNWyZoQI USdgFTxQZIXr+lBNCREiptFoomhD93SDrKYTqhp7rqN8Wdvrfc3oje6f3RQK5D+veB4D xL/NHHA80CQ+GCDBEUTcLm73aWXoK1C0LCnQNQXG12u23mh0w12FisQq4BlqV/FftGZ1 Xy6rx0VbuJ435XiRLY987kUIi+h3puriBxbUHchs+d9GottUlil7/GNv9WOaXIJWRNPf pr/rrbo14zaLtXwMuQB9/RAr3PMORCDTT+KiqvI3lm+q6oX5PtSvzOGL8IRD8ojVf2tG GhyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=sQhEDOK4; 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 b3si18049128edn.202.2019.11.19.11.04.13; Tue, 19 Nov 2019 11:04:39 -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=@lca.pw header.s=google header.b=sQhEDOK4; 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 S1727385AbfKSTCw (ORCPT + 99 others); Tue, 19 Nov 2019 14:02:52 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:34618 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727234AbfKSTCw (ORCPT ); Tue, 19 Nov 2019 14:02:52 -0500 Received: by mail-qk1-f196.google.com with SMTP id 205so18873214qkk.1 for ; Tue, 19 Nov 2019 11:02:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=nOtlx8W5kFFOHYOOqCInicVcS9VMgxzZJDB6vPZYj8Y=; b=sQhEDOK4h+CjNaAZJ9SFqIFRU0lboojWtdHt3nnRoeYgfxiMCtz9gtLqjnu3lw3Rfx qgeYu1QBVnZIytPjZBXhr9qU3GO+4sKhsDZg7xFANVamLGatVP/HrFrh1MKqnZooAnFA hm1/LCDx1vxUMZEbMG3d+Hwj+JIU4g2ie4V6LqnKMULSN1r2g0v2f5e2DL/X3gOxZvgl mXkIk/zjztybwsp0TuSuWidAjNSc7nI7lD5OUOpCASUZ/8uACLWmbFS4otqJCIK21c+i etNf14xwCT/4kJ787XpYK/YYl17I6F4BNO1Z+hK0y33+kQmz8JWW5AfhCBdLVfTA6blx qseA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=nOtlx8W5kFFOHYOOqCInicVcS9VMgxzZJDB6vPZYj8Y=; b=oOXLMyN6mdGYaPrxg/yIBC/7PUzq7xLiB1aZCUaDMU5lEVhlwgEBvlbEaYAvoz720T NQMq1xOj64xse+hllYaQ/vx9nJFV2Xq7bvFVK+/I/nSWZRat8ReinPlOO2biO8CBjCHA aAeYkuQlc855y1UjYC3ch6e1sS1XggqFJT/n2Dw63jD55wxCDYZco5qtIw2OcEle3Pto TvGzZ/gpuFlq81Pv7yjfuvyqtlhZ256FUTuoNscqy1maJtoVxzub3J2FZ7yTs0GsxpOd E4WAWGTd+apt3nOiug/yAeoi3QKPB0oovFakwMYF5TonQ7cERLOyl6RdiDlrApdVntPA bfwg== X-Gm-Message-State: APjAAAW64TmM3dHeom5NlhopiCSsCMo32w6scKBV8gvGRWOkpZoHNHNd xKhyKqdBPMFPBMcDe8yajy5MJw== X-Received: by 2002:a37:6643:: with SMTP id a64mr31950602qkc.144.1574190171109; Tue, 19 Nov 2019 11:02:51 -0800 (PST) Received: from dhcp-41-57.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id w5sm10384776qkf.43.2019.11.19.11.02.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Nov 2019 11:02:50 -0800 (PST) Message-ID: <1574190168.9585.4.camel@lca.pw> Subject: Re: linux-next: Tree for Nov 19 (kcsan) From: Qian Cai To: Marco Elver , Randy Dunlap Cc: Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , kasan-dev , Dmitry Vyukov , "Paul E. McKenney" Date: Tue, 19 Nov 2019 14:02:48 -0500 In-Reply-To: <20191119183407.GA68739@google.com> References: <20191119194658.39af50d0@canb.auug.org.au> <20191119183407.GA68739@google.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 (3.22.6-10.el7) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.