Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1045998rdb; Fri, 2 Feb 2024 11:43:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQhnDab9UBm/f+nk2boPyOCO61cvOr+qfvBoFSTe6LvyPoCh5l5kFHdPS2cQfbz0B+qpGn X-Received: by 2002:aa7:c706:0:b0:55e:deca:c46f with SMTP id i6-20020aa7c706000000b0055edecac46fmr439212edq.16.1706903019185; Fri, 02 Feb 2024 11:43:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706903019; cv=pass; d=google.com; s=arc-20160816; b=ZSSX6K2oBrUlb2ARjVl/Cu+irWGzsooNjX1Xyo4ZzFal/BQ/ccQCuobz9QfEjW/65K TK/XqBo8JHxPce9KKSZmm8BMFb3g5Z+SMEpruNDxda4fQO9ui+TxAhYe04jpbTVXAPBz hELLkPlJxAoqDTkNGoC5Z16SF23AhegjeVAd+Bg8/NF6VWucjXlmgMVJsKaDc9jwwlCY sExN0EBDQH5L0b3t9gd0qP6Cx8TpEdrErTSj47A0cPCoctsX00Uq+oBRa2ilmhEVImKE CaFHDED58ftY5hvASjsbMVm8LjysiHbmlHVl5aX+iU2j8nnTHYdZzmNDKa6E4k+YtQLp +MfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dsgfmzI3ZvkQhmwZVBfUC/2ZuLpZMGoxYodNZ83gS9E=; fh=WNviMP8/AaYPmtnaG+r2Fc4mHmsLD7ir2X3uUjcH1m8=; b=tIxVQ4bF0WRicjqULeWiNu6s5qE6PwpmH3fScKD6ysC6j9AKuHsDJ36DusywWEElRf 4bE5H6u0uGykpCUqQqLCHrQMvwKXv/mkTuFntUKg3HiXra++QFjLlu8YiaeHjBAsXtjn mPqC3NuigQLXYIZyY2PcG9TD7JLCNdwjqLcR85fkXgKBtFghD+SE3c0CrycfiaSvxhoP 0dNMSBascXV4gOy8tW4KkgHHj5XvoAeHalGsVz8PFdsyvAkDC8sQqcLk7yJ0qOXvqZkf Vt03fJ2x87iO4pqY9SL5bMml/YYf4p9vGzcvSMDGXveXKB/R9RAaBg9VWL6nUzah93Yy hR+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=gIo0KBDJ; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-50492-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de X-Forwarded-Encrypted: i=1; AJvYcCU+XUXfUlAgSoBE1hmRTZzG6e0tbtlCE+ku99F718mj/OCmTqrk9pKbLesKnY1vl0OMbDcqY99D7IKdmaw/qnu+bTEvuxL3OIrEBBzkuA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z15-20020a50cd0f000000b0055fda03dcf3si1035143edi.691.2024.02.02.11.43.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 11:43:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50492-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=gIo0KBDJ; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-50492-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EBC331F261E5 for ; Fri, 2 Feb 2024 19:43:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51B518060B; Fri, 2 Feb 2024 19:43:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="gIo0KBDJ" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B5445FEE6; Fri, 2 Feb 2024 19:43:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706903011; cv=none; b=sqwPBKuckFxdlhxcfyWyat78DWuxZOmSLQZT3WiD8NDnSAVcdXWGxqlGtbOICXC78rwwvMX0lhxGUP2NmCXA4OjaabCy4L185kPBd8LECncNGD58ES5a6JCbbwtvg0VeIk8/KMD6B9KbD14OsMD3n2ufxtaEuv9QhOt+/X26+ME= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706903011; c=relaxed/simple; bh=lbyO9bs5vcEz3F5e40/huafqreecjrqSvcrhBKsUBc8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pMTobhwtkb9ZXTtDvba3wrJRhQUKbxHmBSx20v7xfdtZNbjmqdrXCcCVndJuqRpq/mY+M+vM4S7TFuUjy/kVS4x1/dpZxvRu/5TYoNqiSpW9yI5EmlDmV5wbO/yUS+gP31UHtUCzbKpyzSTOK7kkGEaQigQjx8YS0WIJddmbGhw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=gIo0KBDJ; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id B859D40E016C; Fri, 2 Feb 2024 19:43:25 +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 aFksFHODyALI; Fri, 2 Feb 2024 19:43:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1706903000; bh=dsgfmzI3ZvkQhmwZVBfUC/2ZuLpZMGoxYodNZ83gS9E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gIo0KBDJwE4dI4nlDGwcpJmhSEEyddDPQhJv804Vjj6YYJTbx1OuxC1L8TVBlKv64 YYBPfrrw8MBRJ+nBqr0sUyLEUMyC8e01RvpOckFZu3yRd1wyQQfei+joq7NCQtFW6a H3ucAiR6+gZfXuJmTiTncudlxeTQDKCD766n0anWtcpoh9+XUPBSPpEW6WwTWYmIf6 ZEeu6Rv6wcZvWW6NQFilGv1epWwPdR8gbHY11BQsCOzXxrd4AfLhRhZ9SvRMupDlyH UeLCQvxBQyTLk9wbVJmseNR+lO9qLYdyRq2iSmxMz+mgx0uQ0DMD8GOeTelESIgYbn 9vk17+kkvaNzHH6HAEMWTfhSGOPkrnnPI5llvXjVdDA2kmV147M+zvmLCjgbbCewL0 HQjGiLOiNl0jEsgvm30TzPbv9n4EgrMQAel+zr+vEAmB7nN8JECvmOL8szP6xoGCN3 9izjn+ZE4hVcPMHtCiMVg78g8JBMjvgyG0zFms24YK/B0zEbuZzUa1w6UTjafkhaFE Fmh4URJ05B3hjbiWrJDeZSSKxjIl/b8ovbya1RAIIpgUoepdD0L6kpn6yGCY8JdOL9 86A7j3SOB6BESmk1d9uUyZ8VJF/TDCA5/zKvtNrcAOFuYWzIo0N4edspzXlYHfTpc8 GXEDZhTWIIUZwXAfhrdboM6Q= Received: from zn.tnic (pd953021b.dip0.t-ipconnect.de [217.83.2.27]) (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 218D740E00C5; Fri, 2 Feb 2024 19:43:04 +0000 (UTC) Date: Fri, 2 Feb 2024 20:42:57 +0100 From: Borislav Petkov To: "Luck, Tony" Cc: Tong Tiangen , Thomas Gleixner , Ingo Molnar , "wangkefeng.wang@huawei.com" , Dave Hansen , "x86@kernel.org" , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Andrew Morton , Naoya Horiguchi , "linux-kernel@vger.kernel.org" , "linux-edac@vger.kernel.org" , "linux-mm@kvack.org" , Guohanjun Subject: Re: [PATCH -next v4 2/3] x86/mce: rename MCE_IN_KERNEL_COPYIN to MCE_IN_KERNEL_COPY_MC Message-ID: <20240202194257.GFZb1FwcPPO8WXF86H@fat_crate.local> References: <20240111135548.3207437-1-tongtiangen@huawei.com> <20240111135548.3207437-3-tongtiangen@huawei.com> <20240131070258.GGZbnwov0g918F-FGz@fat_crate.local> <3009aadd-69d6-c797-20b4-95cf926b6dd9@huawei.com> <20240201142016.GFZbuooG9CRoK90U2C@fat_crate.local> <39c1e4d2-b1d0-91ae-595e-1add4698dd7f@huawei.com> <20240202133911.GBZbzwf-M37M-J3EJX@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Fri, Feb 02, 2024 at 06:44:32PM +0000, Luck, Tony wrote: > At least on Intel you can only get a machine check for operation on poison data LOAD. > Not for a STORE. I believe that is generally true - other arches to confirm. So what happens if you store to a poisoned cacheline on Intel? It'll raise a poison consumption error when that cacheline is loaded in the cache? Because you need to load that line into the cache for writing, I'd presume... What happens if you have bits flipped in the cacheline you want to write to? That's fine because you're overwriting them anyway? I'd presume ECC check gets performed on cacheline load and then you'll have to raise an #MC... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette