Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp383950ybi; Wed, 19 Jun 2019 00:57:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrwLSL/b5fziCurT25WW73veaW8N+frMLxqahsFhvTpheY/U6RL3Ly66PLoA+MGiBB85F6 X-Received: by 2002:a17:90a:26ef:: with SMTP id m102mr9586424pje.50.1560931059117; Wed, 19 Jun 2019 00:57:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560931059; cv=none; d=google.com; s=arc-20160816; b=IYiliui2o2j5+J7oV35YjNIkRo/Wr0XaKlRJ/qqtFGge2NEFfFB7CVWSGTK/8oErJO CmBP+G7KNu38P1OvfIT5EiHjFSWUO7SWJTEmsnXgUqNHDXizyN1tE7Jw4yooAV/GJayX 3bmCAZurKWrQANGneE30DsQ30+TYtxCzjs8K7KEK+j5WfYd/tF0G24TBo8cyY6j/QJ79 4b6TwI9lu7MlQAThN+Ponf1ZRtFxAbo7UnLPKYbMbYswfw2SY2WvalZZ0tga+Qvkwqco bzwNWqPrGbLOmtr96bBQgsBttPtzJ31qg8DqBeIMeI5O1rTaDFuHDP773449d1puwLnG /hSA== 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=O9PX4Evk9ozBEp0+hOqHmr/yxryDhmYRUg7Ro6SH9UI=; b=au4/62IuP0FcYMRH0x/NONB7RsdCKM6NSKMO15stT1X/p/Le5NYs371nu9mhiUXlJq /HYJrFanGgNQIGS12XmLOdQbqXqcG2VNYHUFhO6QZv4VEEPZSw2Yhtf3IOXlLacdFoKm +gtC5FykM1hviBhnJnLVdTKWqI3prpQfkj25SW2GrvXR53JiD7bEjIJVwuoNQUN8xZcE 6R4YdZqgmoakqH0rU3TYaKi2tF2Soh/Rm7MWUmAvg9tbs7ncrc4y2Wozdv+a48R43o+t WZn7JntXa7VqzA0a5oBpa9Uij0sa/q24Lb+8x9E/J7HEPodDapgtrcRPLCMDpFMP50aM GbHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=FF6UGkhS; 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 x10si17167651pfj.93.2019.06.19.00.57.23; Wed, 19 Jun 2019 00:57:39 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=FF6UGkhS; 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 S1731271AbfFSH5K (ORCPT + 99 others); Wed, 19 Jun 2019 03:57:10 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:41886 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731260AbfFSH5J (ORCPT ); Wed, 19 Jun 2019 03:57:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=O9PX4Evk9ozBEp0+hOqHmr/yxryDhmYRUg7Ro6SH9UI=; b=FF6UGkhSjGG997X0qq7M0m91t IvKA3fuh/rw4lUT3Om9KPynfH6Rut/mKt18gfYyZaImUJL21usi2rVlgL9tdDF/mRcGySqtDij9ST thDDaue3m6Sj581sfYa2ysp4Z3Yx+SgRv2tytQCED29VZMaTi/jTifts1f7/VPRnSal8w0eHSG8Ia QGpMt3RZIbsD5e0AUq8Dv5y5Y5oKS6LWlQyzzp/b56JmFJRaj/+ByXEq9dNzS2/y66oM3E0pWmPDH T2xtsuH28GZqHrZlP9PvkbKEv8m+mjdSgOTrkjIKrgqowqeIf8T9HoF4GUcKDrtc3X3ZAeFge8y7u 8PUe00bAw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hdVSs-0006qJ-Bi; Wed, 19 Jun 2019 07:57:06 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id BE75920A4E0CD; Wed, 19 Jun 2019 09:57:03 +0200 (CEST) Date: Wed, 19 Jun 2019 09:57:03 +0200 From: Peter Zijlstra To: Arnd Bergmann Cc: Andrey Ryabinin , Andrew Morton , Josh Poimboeuf , Linux Kernel Mailing List , "# 3.4.x" Subject: Re: [PATCH] ubsan: mark ubsan_type_mismatch_common inline Message-ID: <20190619075703.GK3419@hirez.programming.kicks-ass.net> References: <20190617123109.667090-1-arnd@arndb.de> <20190617140210.GB3436@hirez.programming.kicks-ass.net> <20190618135911.GR3436@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Tue, Jun 18, 2019 at 05:06:39PM +0200, Arnd Bergmann wrote: > On Tue, Jun 18, 2019 at 3:59 PM Peter Zijlstra wrote: > > On Tue, Jun 18, 2019 at 04:27:45PM +0300, Andrey Ryabinin wrote: > > > On 6/18/19 3:56 PM, Arnd Bergmann wrote: > > > > On Mon, Jun 17, 2019 at 4:02 PM Peter Zijlstra wrote: > > > > I guess this: > > > ccflags-y += $(DISABLE_STACKLEAK_PLUGIN) > > > > Or more specifically this, I guess: > > > > CFLAGS_ubsan.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) $(DISABLE_STACKLEAK_PLUGIN) > > > > we'd not want to exclude all of lib/ from stackleak I figure. > > > > Of these two options, I think I prefer the latter, because a smaller > > whitelist is a better whitelist and since we already disable > > stack protector, it is only consistent to also disable stack leak. > > Ok, sounds good to me. Can you send that upstream then, or should > I write it up as a proper patch? If you could verify it actually works that would be great, I haven't tried to construct a failing .config yet.