Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3083342rdg; Tue, 17 Oct 2023 04:18:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9Tkd3PNlrQRNHin077rXQzxnI5etZr53jdWz9qFTPSQJbkgCWtvJrO+WQh/R6dyPbAFdk X-Received: by 2002:a17:902:f092:b0:1bd:d141:f02d with SMTP id p18-20020a170902f09200b001bdd141f02dmr1334544pla.68.1697541529205; Tue, 17 Oct 2023 04:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697541529; cv=none; d=google.com; s=arc-20160816; b=k1kVo54agSYBiCmLwyOCQXlBfv0C1JGHXgk58tDBtaWEqmhbVGhpCvYiC5TufZV2Qd KPQxDBRrV8R6d2oOuBNNgmFlfFpEo5JlbAU1mULQu0wtRjgGvpYBd10sj7h86vWltSiU 9A3lv5+I0LuBIjYn+XASuklz6SJ+TpWxVzVmSwqAJ92PygZAup8USU3XuPLsacjjR5sO G8TWYE312tSzOAUqkvblGdDjjEJZVqiXqBrvSZkCN6/qpz0VMk+JbrQ16uIyx9dgecxr Y9aU6F/28/xdxq6nksVmtqRjSstpRT2ejp6HHO8yrPzcnlWLCrdN5wYN1Cs5RHaHrTLW A1zA== 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=rAgqEtaipV0w6VNIClWPporD9UN1OctlQ9N+Z9rL6Iw=; fh=Ss8d3/rFpVmV3xFR5jvkYiLiv4lO23M5H5jeeJaTmYM=; b=Nn5QFH3ubx/ZSG4MYxl/MUEpaPhEXLreiKQ3jda3Ht90vb4kYkVS1wOfUUX+hLjQw8 RTMuqmlWo6mT96C62uFkqO7K/DLquNZN04Dd9cy/w9DL+hWDgFvzB3Afkk230MaxUxB3 UBNv/VfioyKRPuIkgUluAjI4fHG+MGtqjD3jILxaM5DTOBfL+Q7atq3i/bwJKGwcyj5Q T7G56/4wRyPJUqnxmxj3WvqS9xRYLMOTEHtZ0LSlRBa3FTLbEQweOciSuG/KVTVdhD6n 7Jbk3ERljNFLqQYUaAbCTeC27f4mnMYVnDALTTA8C3ZWaTZBntJ3jHX58nfdlHZp6oYo cQkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b="k4I5H/bL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id w12-20020a170902e88c00b001c5bb1f0cccsi1704646plg.275.2023.10.17.04.18.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 04:18:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b="k4I5H/bL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id AE0F08039861; Tue, 17 Oct 2023 04:18:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234850AbjJQLSj (ORCPT + 99 others); Tue, 17 Oct 2023 07:18:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232644AbjJQLSi (ORCPT ); Tue, 17 Oct 2023 07:18:38 -0400 Received: from mail.alien8.de (mail.alien8.de [IPv6:2a01:4f9:3051:3f93::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FC7BA2 for ; Tue, 17 Oct 2023 04:18:36 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id C05FD40E0196; Tue, 17 Oct 2023 11:18:34 +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 6IN4eX55QrNn; Tue, 17 Oct 2023 11:18:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1697541513; bh=rAgqEtaipV0w6VNIClWPporD9UN1OctlQ9N+Z9rL6Iw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k4I5H/bL8bf1jlgUgTct9CxUisqNn7vkQrXxxVauK0EEPxOwVEiKEVAu1Cc6A9BK8 kzS2189Y4HLwvn+RG88m/CY1AOd5UV5OFLf2R+jaq4zOvy1TUFf1FRv2AS5MoM65PE TKvHMY9rPY/pjsFQY4NuSofRRYqVKNkOknCbMr+FV7RUztmLVqepFYI69uq0NGRKAT byz+zcfMYa37guKPZzsQQdYkMMP3G+TYSBOSmrP9VcDlPCWBl6xSZr3yq3B8WMyvAj z0ALp+2o8drXNtmZ1Titd87ca8uRqVe+9/J+gs3eG8RR8DIaqsYbtCudvOwBnCqDg4 TJ+0qVKOj9v8K/vZnnrrtGtpRPPaReaoZa9K+T+omvugwveedqw7nUSPuoiSM5HRVM rP9RKtmSn9Jq915DmzzCW3OCQeneCFBfiixSEKMxtqPLSUvBcEg/5odtAT646gkYFk a6MU7XfzpmlyPmPIY88NxnccfFD2xCuRj97N0hdXAc/Z1Q76HPKgz2LyOx0UmzrzoP Tt6KsY8DKpAiA+fqkXRBwMe1SUFM1dhn0eplZJ5EP08Nc6bXvza96VrSaq/1buJGdb dLsjFxN6vQqBiYt+1kfK1YlqUWxpUM57ySjwEa0DNlhmo/8rZSsPZQDwWpzxgsjT14 rs2npfRFcNXVCPl4BEbMWin4= 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 DB13540E01AA; Tue, 17 Oct 2023 11:18:24 +0000 (UTC) Date: Tue, 17 Oct 2023 13:18:17 +0200 From: Borislav Petkov To: "Luck, Tony" Cc: "Li, Zhiquan1" , "x86@kernel.org" , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "patches@lists.linux.dev" , "mingo@kernel.org" , "naoya.horiguchi@nec.com" Subject: Re: [PATCH v3] x86/mce: Set PG_hwpoison page flag to avoid the capture kernel panic Message-ID: <20231017111817.GAZS5teT4rFkXVD2KA@fat_crate.local> References: <20231014051754.3759099-1-zhiquan1.li@intel.com> <233e17ac-0ae5-4392-a5e4-ab811a155805@intel.com> <20231016091143.GCZSz+T1xFf5tCFi2w@fat_crate.local> <759ccb97-cf5a-4787-b699-27551d5d2865@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 04:18:47 -0700 (PDT) On Tue, Oct 17, 2023 at 01:24:53AM +0000, Luck, Tony wrote: > How about: > > When there is a fatal machine check Linux calls mce_panic() > without checking to see if bad data at some memory address > was reported in the machine check banks. ... for the simple reason that the kernel cannot allow itself to do any unnecessary work but panic immediately so that it can stop the propagation of bad data. Now, it's a whole different story whether that's the right thing to do and whether the data has already propagated so that the panic is moot. The whole point I'm trying to make is that the machine panics because the error severity dictates it to do so. And there's no opportunity to queue recovery work because it simply cannot in that case. So the commit message should simply state that we're marking the page as poison for the kexec'ed kernel's sake and not because of anything else. > If kexec is enabled, check for memory errors and mark the > page as poisoned so that the kexec'd kernel can avoid accessing > the page. Yap, yours makes sense. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette