Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp387738rdb; Thu, 30 Nov 2023 07:25:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IGuby9QZJfvYyIUDmV18nE/YigFYh/dJhq+OTXJXXkEpGWCqSM0FplguOz7XNvVEk8GUpHG X-Received: by 2002:a17:902:7483:b0:1cc:6ec2:d24e with SMTP id h3-20020a170902748300b001cc6ec2d24emr23739686pll.53.1701357952014; Thu, 30 Nov 2023 07:25:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701357951; cv=none; d=google.com; s=arc-20160816; b=SKm2xLRBY9poRtwQGKFD4kb5YppK6dCrrxWMkXLLJu/DC8610seJfivaFkMxvvTIIx 9ikJenDIgBSqUu0HifhE3Zdvlh+HoQY5sptFZUwjQ+ij1TOm6HpnjVIOGYRGsZGpUyJ8 1127Z+WQmaG5rHNDE/Xvz4wjNhspMxT031waisaLq2U6XBTjYFRecy+zXuE/1FLqWZ7f 9xHCS6iv8GhhPCs5OqA/nESUtPqlrJlbqf8q2/Vo5Mq+5LRYojoIBTN1VodWwD3viQKJ FLUKtCchUfckFCcZ0UwvEZaZqf4l/o9zFrCEDuR+56rB4NQx29/7NUUR5+BNm4GnYzjx B2BQ== 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=ZShKLR6KTqCxQjQYunnv0hUCXzw06oeZAelERVmHTQA=; fh=TuQI7dIL7x8KXhPpGRHw7LlxXzwkxJfokQUn9Qkdvlc=; b=bYd1e5Z/jExjWPw5lyoa9jiENRcwIFcvDW/VXxk3hLE6HH5SDwIcsV6iqJ2NekNTuw aRIu4/DR5YYhFqJwBqJBFa/9C6r4NW8VhIvYqEoKsWNkqEhbteidzWU8xOQ4KZwJ+/7i YlNslcuNiM3UrtcQBYuGupXjMqB5ReaJs4vRinaat7NXVwoUAIjjh8GRYsBiH7CEMqVj kkrAfhmgvEkSGGRiWLp0gDpl5he0xbNkRjCFj0nOSsvM28aNp5lmujFRaSqV9CVLkayJ w7OylKyy9gVo2LZzhruhq8Va68gOjSgCYguSVVUaK7ua1Ipe4USavnWy7WRjN8ffDs53 mxWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b="LUacy/Ih"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id 11-20020a170902c14b00b001d00a9256adsi1320745plj.488.2023.11.30.07.25.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 07:25:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b="LUacy/Ih"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5AC68823B3EA; Thu, 30 Nov 2023 02:34:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344859AbjK3Kd7 (ORCPT + 99 others); Thu, 30 Nov 2023 05:33:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjK3Kd6 (ORCPT ); Thu, 30 Nov 2023 05:33:58 -0500 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47EB3D6C; Thu, 30 Nov 2023 02:34:01 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 211CF40E0239; Thu, 30 Nov 2023 10:33:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qDV6vmf5xhZb; Thu, 30 Nov 2023 10:33:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1701340437; bh=ZShKLR6KTqCxQjQYunnv0hUCXzw06oeZAelERVmHTQA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LUacy/IhrUmBX+T4V8uG+XUxD6xFGliuzIbVZ3B+kYG4exrusgge1fZUdK67RfTT2 VO7BA3K1PVpEv5J3ia+lAcqrqVNiYm+im2n8Bp4W6kWWPlxI0tpE7IclYzDF6+hak0 uv3muctBuSAt0+9H9Ra99lDoMGHGj63T0fi2s2cKUd/xWU1bmJLn+2wryxveFdbdhe fASsgito5Rh6UIW43EPSLGkRWbgc77DB33ivrPINaBfdYpfb0CjR2NBwWeGSxzHJe0 xipJhkHM5FQ3x6rwiRC60YTNc/cJ7nRnYnIklCUEr9SSZPzxeN+ebD0CFMvwn+MR6x YCFrduzg+1v3cSAEfMxs3OxwD5PlABBr+C4RATojzd6arNEGHsDRa/3TBhIGkneCvC hNJROiUmDrC5dvf/AnFKffyPs0hLAtMGfaqNjhtH2tZtpwX/qaZoXmlvxZSBZ2ymep HCyH7ByOMmY9StBJSFeaZhEI1tgNSFWI4PqE7k9+R3f1zLYI2l5aDLnnluvGiM0pzO 0dY2ok4Mvvy8zANHMjKS9IDh9G9nhoYDwU9q86XtjngyD1tU23jbrUYkwrihBaMvqn AvsQGJ5EP9vTJwNtXoKmt36UxgG0v1qpc2r5hWMkcDQod9Z1GccV+yjkkdyxLqoMSq ZCO9zh7NCiJof8jofkTMqRCU= Received: from zn.tnic (pd95304da.dip0.t-ipconnect.de [217.83.4.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id C733640E01AD; Thu, 30 Nov 2023 10:33:44 +0000 (UTC) Date: Thu, 30 Nov 2023 11:33:39 +0100 From: Borislav Petkov To: linux-kernel@vger.kernel.org Cc: linux-tip-commits@vger.kernel.org, Jun'ichi Nomura , Derek Barbosa , Ingo Molnar , Kees Cook , Linus Torvalds , "Paul E. McKenney" , Andy Lutomirski , "H. Peter Anvin" , Peter Zijlstra , x86@kernel.org Subject: Re: [tip: x86/boot] x86/boot: Ignore NMIs during very early boot Message-ID: <20231130103339.GCZWhlA196uRklTMNF@fat_crate.local> References: <170133478498.398.5261666675868615202.tip-bot2@tip-bot2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <170133478498.398.5261666675868615202.tip-bot2@tip-bot2> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 30 Nov 2023 02:34:23 -0800 (PST) On Thu, Nov 30, 2023 at 08:59:44AM -0000, tip-bot2 for Jun'ichi Nomura wrote: > +void do_boot_nmi_trap(struct pt_regs *regs, unsigned long error_code) > +{ > + /* Empty handler to ignore NMI during early boot */ It might be good to issue something here to say that a spurious NMI got ignored. Something ala error_putstr("Spurious early NMI ignored.\n"); so that we at least say that we ignored an NMI and not have it disappear unnoticed. Hmmm. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette