Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp300344pxb; Tue, 9 Feb 2021 00:08:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0Mba8hijeH7C7x8vK3jc830V+hKV9OLBAHb9fIkxV/zuHOK29iaC1UhE5e7a3zGXg9F6n X-Received: by 2002:a17:906:9bcd:: with SMTP id de13mr20562554ejc.245.1612858116881; Tue, 09 Feb 2021 00:08:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612858116; cv=none; d=google.com; s=arc-20160816; b=W30B3FUaphcWRUbsmERAfhV18MP+RwWQ4BTUrk0gSjCDgOXigoAmBai4ik9av89YZS sYzbn43OxKwNcqSZmcnFU7+MRI9jA3Zxj0rOIMfuVM7VZUGUq88/Uc8CN6RFG6E6BBb9 5yhT9jYGlcKPFc/h4iT5mHy7IwMTHU32nxGRy4nXNn0/Ek/UjDz/h/Up0YWa7xa7CEtC eiCnkMAVNuB0KD4WYiAN5o4B4AL4YPDbvEF/6wZVTVW9kLdIRfagY8k8ULRVU6FHemuZ EA4ZW6m1lzYmnuCy3bCqeB8k/eLTQT7vqwzR2LXx5N0Kn1IqzmzRdodvU7OWkdMkCS9O kNDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=561m1JSOnJd3yK5dZVU8KkZf66IDG0xnVDexH6e2StQ=; b=rACmVs1A2x7L7eQNsvO6m+PFb2iBi5dCvHqI7M/y9DCzqa9Ypng8u4xLblqBeGB211 erra2E+pR+zatBWZJMSsbl1Dl7qj8HNmnA9Kvxrfxob68XNe3b8O6X07qNTV92Ndo53T XpoHGXFFLepfjfTNoX197IcorK0FupT3MyAH4MOfMymjE203QN6DU5V9NTebAN+GP0Jn KPPSciYFiMYHkWw+CyKaIn5GlWp4o2EgX6Fir6FdgUzIJbHVD4QJtGW/sTSTFRNAugf8 D0TqgDQ3BlXZcdtkThU6ArCh5s6uWd2icDyrgzhCO2NeDLBj130CAuNGNpwFbh5b58r5 rc1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=kClxywIp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si110961ejr.273.2021.02.09.00.08.13; Tue, 09 Feb 2021 00:08:36 -0800 (PST) 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=@infradead.org header.s=merlin.20170209 header.b=kClxywIp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229639AbhBIIGw (ORCPT + 99 others); Tue, 9 Feb 2021 03:06:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbhBIIGv (ORCPT ); Tue, 9 Feb 2021 03:06:51 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E50FC061786; Tue, 9 Feb 2021 00:06:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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; bh=561m1JSOnJd3yK5dZVU8KkZf66IDG0xnVDexH6e2StQ=; b=kClxywIpRgg3p4VbxonBmrqhQv MaQar0XCWOzJX+aKT3UZHVzquKaderMu/kfvqsPqWonmFWEFohIBNlxEY0lfp7O+TiLkZRrX2zaKQ tmMxy4BOzyvLmm5MaPVpzonMJTbKvN7TkuSjtLuWGRqtD84X6gT+w6jhvHEGLpOEWhSnSo8WfWuMA d/nBzAfDUwcNZDzUyRy1dyMoU6xiQU8GzrjZI0x+lZf0d2lUtzLcOS1AYafOwi/ZApXW2HF0HKLsP LQuMT+0mc80BNMBolWbMlyuKp3EXoXF4k/gf6EGYky5pV8E1nA1wEVROdNaDRwMdXXtKT155W0Qua RmLqeimg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1l9O26-0007qe-DU; Tue, 09 Feb 2021 08:06:02 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id E4E4530066E; Tue, 9 Feb 2021 09:06:00 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7A4F92BA20223; Tue, 9 Feb 2021 09:06:00 +0100 (CET) Date: Tue, 9 Feb 2021 09:06:00 +0100 From: Peter Zijlstra To: Josh Poimboeuf Cc: Randy Dunlap , Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , aryabinin@virtuozzo.com, dvyukov@google.com, keescook@chromium.org Subject: Re: linux-next: Tree for Feb 8 (objtool: warnings: 5) Message-ID: References: <20210208235246.01cb4daf@canb.auug.org.au> <2000eae0-89f4-a88f-a113-7fa47f16def7@infradead.org> <20210208212153.vs2v7k2c55a3syvo@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210208212153.vs2v7k2c55a3syvo@treble> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 08, 2021 at 03:21:53PM -0600, Josh Poimboeuf wrote: > > fs/select.o: warning: objtool: do_sys_poll()+0x8e9: call to __ubsan_handle_sub_overflow() with UACCESS enabled > > lib/iov_iter.o: warning: objtool: iovec_from_user.part.12()+0x2db: call to __ubsan_handle_add_overflow() with UACCESS enabled > > Peter, we need the patch to prevent UBSAN with gcc7? I send it a while ago, Andrey wasn't liking it or something :/ But yes, UBSAN on > vmlinux.o: warning: objtool: do_machine_check()+0x7ee: call to queue_task_work() leaves .noinstr.text section > > vmlinux.o: warning: objtool: lock_is_held_type()+0x107: call to warn_bogus_irq_restore() leaves .noinstr.text section > > Peter? The mce one is a rats nest, Boris has that on his todo list. I'll go look at the lockdep one. --- lib/Kconfig.ubsan | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Kconfig.ubsan b/lib/Kconfig.ubsan index 3a0b1c930733..6e4634b3b40e 100644 --- a/lib/Kconfig.ubsan +++ b/lib/Kconfig.ubsan @@ -116,6 +116,7 @@ config UBSAN_SIGNED_OVERFLOW bool "Perform checking for signed arithmetic overflow" default UBSAN depends on $(cc-option,-fsanitize=signed-integer-overflow) + depends on !CC_IS_GCC || GCC_VERSION >= 80000 help This option enables -fsanitize=signed-integer-overflow which checks for overflow of any arithmetic operations with signed integers.