Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp451279ybg; Wed, 3 Jun 2020 05:12:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx95GBf4Hny7V2tt4TYL6RkzTUnwC5l0UCGd1pSmfkxRCtsYQFLrKCxaaIlX5533giEBQtY X-Received: by 2002:a17:906:55c9:: with SMTP id z9mr13637780ejp.276.1591186363388; Wed, 03 Jun 2020 05:12:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591186363; cv=none; d=google.com; s=arc-20160816; b=EHd5D28hoVTXMatGwjWsGCCFJBN38pyy95zjRco5S+dGmA2/Qh8EyEphfSeZUWPGkY ePoC0hEfwXocjB00Jf5HdiesgEDPPJg78pHo5TZqCIiCUk1MdM3gxy9Hx0AwtasgPYFf MbZoGoFqs6c8XZg7td1KGq4qd4rjtb3Cwp3jAp0ZkJIEa3eLoCvA1+iZB2FUP4upFDZJ m6eMpdnp+XmhoyJS3FGohkGp7l3GdXbYCR0eSGFWX9CXUQxIo4tQDAvxy7hT21OJkXnF BTWYgQAxFouBjn5f5gic2xu1CPbQZ8+gvrp1GPKj9PhHnfPrr1G47qPzESDZHXlwrlHW einA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/Nf3Sa5CJ3lKHf/KlMc8A7/yA30Oo820YTwvr4Pe3Zw=; b=PaR8/whJBFXzOkiho10mbJrfcM2S2zMWMZhtd1fSPetR8xyeFQJb6Obl2x3EENB3Rx zphkaBWYkIT2wNLXgoNF8DJFR+fm9L5L/EkHtU+EHfTjiv5fshy/TobtCWrwyBML/1M5 RXvb8QxOxcHOBYOe52YEZePouYfZ+bC1DRuPCodojpdIbbTpMbh7/CK9QOAAtwCT/wnQ iIFDAt8yFZ/OsPD4KcdeW4JwqNqprhL98qcpm9OGIFHC40eaQwumCVkDk9Hg7CgZjkZB +K0GZMOCJZNlYhXNtc38a5J9IPQ1D95WHixlAMg2OSxCOQFVSoa4/pzTETlkrg+Gv7wj 1vxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qdI7n8GI; 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 dg11si1015471edb.59.2020.06.03.05.12.20; Wed, 03 Jun 2020 05:12:43 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qdI7n8GI; 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 S1725973AbgFCMIY (ORCPT + 99 others); Wed, 3 Jun 2020 08:08:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbgFCMIY (ORCPT ); Wed, 3 Jun 2020 08:08:24 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEB65C08C5C0 for ; Wed, 3 Jun 2020 05:08:23 -0700 (PDT) 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; bh=/Nf3Sa5CJ3lKHf/KlMc8A7/yA30Oo820YTwvr4Pe3Zw=; b=qdI7n8GID3xruVhDHY0pBWzyDQ n/PsRC7S9Pywk78KEha6tMo9P3Ox6UVvklr2bH4ZZ+u62qBqxYN8FU3+ehXNm553bUq9a6PedMWFM ukokSDq+nE7fTF8YCiWf0alAqZmA2d6d1KRAR9Vruy2dFAI/b+1nsbjpgbNBMe1K15BsLDjoFuxzv fjdWRmNPhg87181zHVtBczA56sFSweyf7tSyweaJWI1QF2prJeNcDbxDLA0HkYstlBQ1c8dokiHYu uHJQh8VI1VLDSZnRz86nJM0N+NFa3p3Jty1i6kQ76/AaBQPFNU2/yK7cnziMLSp8RPcr6Fn8bnM55 fZnXHNrg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jgSBw-00069r-Bj; Wed, 03 Jun 2020 12:08:20 +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 CBB16300261; Wed, 3 Jun 2020 14:08:18 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B8BAF20707D3B; Wed, 3 Jun 2020 14:08:18 +0200 (CEST) Date: Wed, 3 Jun 2020 14:08:18 +0200 From: Peter Zijlstra To: tglx@linutronix.de Cc: x86@kernel.org, elver@google.com, paulmck@kernel.org, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, will@kernel.org, dvyukov@google.com, glider@google.com, andreyknvl@google.com Subject: Re: [PATCH 0/9] x86/entry fixes Message-ID: <20200603120818.GC2627@hirez.programming.kicks-ass.net> References: <20200603114014.152292216@infradead.org> <20200603120037.GA2570@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200603120037.GA2570@hirez.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 03, 2020 at 02:00:37PM +0200, Peter Zijlstra wrote: > On Wed, Jun 03, 2020 at 01:40:14PM +0200, Peter Zijlstra wrote: > > The first patch is a fix for x86/entry, I'm quicky runing out of brown paper bags again :/ > > > > The rest goes on top of these: > > > > https://lkml.kernel.org/r/20200602173103.931412766@infradead.org > > https://lkml.kernel.org/r/20200602184409.22142-1-elver@google.com > > > > patches from myself and Marco that enable *SAN builds. So far GCC-KASAN seen to > > behave quite well, I've yet to try UBSAN. > > GCC10 + UBSAN: > > vmlinux.o: warning: objtool: match_held_lock()+0x1b2: call to __ubsan_handle_type_mismatch_v1() leaves .noinstr.text section > vmlinux.o: warning: objtool: rcu_nmi_enter()+0x234: call to __ubsan_handle_out_of_bounds() leaves .noinstr.text section > vmlinux.o: warning: objtool: __rcu_is_watching()+0x59: call to __ubsan_handle_out_of_bounds() leaves .noinstr.text section > > All of them are marked noinstr. So I suppose UBSAN is just buggered in > GCC :-/ CLANG11 + UBSAN: vmlinux.o: warning: objtool: exc_nmi()+0x1c3: call to __ubsan_handle_load_invalid_value() leaves .noinstr.text section vmlinux.o: warning: objtool: poke_int3_handler()+0x72: call to __ubsan_handle_load_invalid_value() leaves .noinstr.text section vmlinux.o: warning: objtool: mce_check_crashing_cpu()+0x71: call to __ubsan_handle_load_invalid_value() leaves .noinstr.text section vmlinux.o: warning: objtool: lock_is_held_type()+0x95: call to __ubsan_handle_out_of_bounds() leaves .noinstr.text section vmlinux.o: warning: objtool: rcu_nmi_enter()+0xba: call to __ubsan_handle_out_of_bounds() leaves .noinstr.text section vmlinux.o: warning: objtool: __rcu_is_watching()+0x2c: call to __ubsan_handle_out_of_bounds() leaves .noinstr.text section IOW, UBSAN appears to be completely hosed.