Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp451740ybg; Wed, 3 Jun 2020 05:13:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyS9SR0iXNQ9tVq0ZFP9BkhG66gA9DjW/fhvmzVtcmNIGNI7SvMj9k1dWNrm0Jn59OWsDVt X-Received: by 2002:a17:906:7746:: with SMTP id o6mr13257819ejn.75.1591186403218; Wed, 03 Jun 2020 05:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591186403; cv=none; d=google.com; s=arc-20160816; b=0weE1gb9VoPs3WEC7Xi/Fxedk/htRM4kDHhivct+1lt8lKqrH9kXYdyLjWkYY8kFtz SnYSpjc293r2+mKBAuYTC+vrrL7h4qQun/UjUwYkY+IXM9GT/ajFiP7dni3buNTiA6va MyOF1cMY0/SZ+iGz55Gnbhf/FguyQehg+vm0T8o0ZwtMlnvF8cZSsXF0rFuKnn8cb1J/ ijoYzptB3TWQLuXCg3Yw6+n4gewwJESFo+YtXEN5hkcBS0S+NR9A2SnfOcaIHY6Jq5sY x3n0vfU2Mi/j6Pq+4g2VZikX42zzU+XNke4z97pIEuX/t6nKqcahA7MQG2yDUCYpO20X ZfmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=CrQWsWD5f9oeeT83eEC6g4ZTyQnFkgomgZ4RHURPls8=; b=u1U+wrID84LGaLef6Ntss/MTU8LBrY8Vlh6D0jI0kKfEVIZEeFEpHoU5ARxusLRgzJ UFd1BNPxS1UU0dnvd6DAcZoB9rBhxqMNJ3jTdFGcPP5I4h6CigYObOfCcpUItRZIVJd3 dL/1rAkgRvRaYRL3NSsX3dfAztteuyX9OA1QFbUgqJ1ONDzWT+HfWqmHNJCgubqrJA48 wMT34x9v49eqZCFPBISTC/z/n0mGrWe2WKdGsLsmd1ghwGz4v8/R0wchngwl/4AYiTbP SRVodbvlGaF17qV5lWsdoM74trIl7CZp8UxdqU+JL4Ulm+kA34ANldt1EPIyA7qX/ncy /SRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=G1QU3vuR; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si911919ejo.329.2020.06.03.05.13.00; Wed, 03 Jun 2020 05:13:23 -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=pass header.i=@google.com header.s=20161025 header.b=G1QU3vuR; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726054AbgFCMJP (ORCPT + 99 others); Wed, 3 Jun 2020 08:09:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbgFCMJO (ORCPT ); Wed, 3 Jun 2020 08:09:14 -0400 Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8859BC08C5C0 for ; Wed, 3 Jun 2020 05:09:14 -0700 (PDT) Received: by mail-oi1-x243.google.com with SMTP id a21so1564459oic.8 for ; Wed, 03 Jun 2020 05:09:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CrQWsWD5f9oeeT83eEC6g4ZTyQnFkgomgZ4RHURPls8=; b=G1QU3vuRDgU7d9EFOz8Il6JhI0WYQ3SyhlHzhs2PnR2EVXIG4ZkaTyMQpiqkolTNKb 3UBZ+cJTgq5MCTu6tIcMZXN+6Fhh3AMfljKDtofc7oJREvHUmNYpMjfLFAXI1JiaEMin fYJEltyVaasmgS7nL4+Ljm6cxC2kJnqAF2/dI9UgGKfO6ouUN4peo4Fi71FSLaw5JUQ2 HRbVGJvr3l9NMIwD2UUAU3cSRhmNRTBTBZEo/rFUo6apLamKq1kI3RwLiDiqmQGt6CJY VUW0SUVqM28QTfpBh9W8k6LLcUFwYqfsZ0I/LXb8l8fADT6rtFm1ueuOXjityTH0LLgX UvPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CrQWsWD5f9oeeT83eEC6g4ZTyQnFkgomgZ4RHURPls8=; b=C4QQJLwseBHmDGBrvk/SzDUotkYtBBTKzTge8p4susDnNikTfBL4z/O4GB/K3k4Krj p/LSHLhlSctm2oDbREVzCC/cNn/Nzh6OW2AHWVLzLTfl5t8PB1nOes1YN6RHddK9tVCe luZemx15fpWgKc/xz1bnxuSHv8+rx4O0CFjFtSJjQpPS2hf0zh71ffVMNB3HACBAMgOg PNUyiSujZl2YhEahUtRJhCrG1gUODfulXHCPZsJlxTf9k8k31u9iG9NPn2wWXGlV4FFc 5c8Klv+BAWwLlZNGKtUVG9Gygteny93YyKdIUw0Us91bWlDOFGyU18AQFLzDTLNOxLkI y0Xg== X-Gm-Message-State: AOAM531ZtF/KdUa/OoIBrqC31lbWtpv9Qs0Awyh0cBmaHWIx8LhKWqDL pdbd9+TIDr9u4aw9F893iICOofH/IOlYMuXDtbV2Jg== X-Received: by 2002:a05:6808:3ac:: with SMTP id n12mr4385422oie.172.1591186148832; Wed, 03 Jun 2020 05:09:08 -0700 (PDT) MIME-Version: 1.0 References: <20200603114014.152292216@infradead.org> <20200603120037.GA2570@hirez.programming.kicks-ass.net> <20200603120818.GC2627@hirez.programming.kicks-ass.net> In-Reply-To: <20200603120818.GC2627@hirez.programming.kicks-ass.net> From: Marco Elver Date: Wed, 3 Jun 2020 14:08:57 +0200 Message-ID: Subject: Re: [PATCH 0/9] x86/entry fixes To: Peter Zijlstra Cc: Thomas Gleixner , "the arch/x86 maintainers" , "Paul E. McKenney" , kasan-dev , LKML , Will Deacon , Dmitry Vyukov , Alexander Potapenko , Andrey Konovalov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 3 Jun 2020 at 14:08, Peter Zijlstra wrote: > > 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. What is the .config you used? I somehow can't reproduce. I've applied the patches on top of -tip/master. Thanks, -- Marco