Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1582765pxb; Mon, 22 Feb 2021 05:59:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYjGH0r+Iiqol1iFN5QU6WmHkJQfZryqLNm3jWY3mhU3ArV1gxzmOEOceJjUAkK6c1B7p4 X-Received: by 2002:a17:906:350a:: with SMTP id r10mr14082844eja.340.1614002378406; Mon, 22 Feb 2021 05:59:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614002378; cv=none; d=google.com; s=arc-20160816; b=tK0LzzxvNN/2bpkwblE0z5kAz8qdrEpSmo5Bft4jQxmV5SUOlGRjBspsEmOF8VW9sm 11K/R3oUdsTghpnLKCC//KpOUoE743TxJNt1QLndIXj9rajfMNQJ40x22LjIFtpz7Q+h eBqIC8MBWtHs23bgxYzb5NqBNbQij0KEQfwn6IA9zKCFwIhRV/EgnErrm43wmJoHmhYZ /A91ZlykokZPw31pMta/T3jrCZ0uOTrBCRRZSQRYqMH18Ks2RioyGNm7Fnsn6ZoXAlF3 iHR2Z6KbGezrOuubLPIs8+Mn6rn2kjwxFeEedv6Ks1OQRGqSYkkn9LjEBiWekiVVQwU1 iGag== 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=31aR5SmeNWKzmknO5BmzvlMZt/XF1kSn8FQK2ndz1gY=; b=Lob/c4/Ac76ESOKgGATXqiODaym0koxDzbrWt3BzkN583bnGC5yRNiKrblfY0giS8m uscBHiJW0z1qiLJme/ToTLNzh8ac9HJnLyOw/bFI4P5BFTIEPPuKZjh+fDb2nYC8GwR1 +rqXXRe7kCuCMZ13UTDD7vglGGufXI9fts+imYvthLr/KbMghL17HMg7f6dtA5NZsaFT PphdWAHp8klbhbDv5geo2xmfzIBGeveXM0e5pJ3I3uZqIfOzWALHkszsGvYQRngpqd0Q ImP/QUzj9lAQhtmgBELRAWkNh+NNDSuQ4shYLgdsxefvTaAYb/EVC5iuJGgA3D7fb08b HxBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="CR4sY/so"; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds7si14149341ejc.212.2021.02.22.05.59.15; Mon, 22 Feb 2021 05:59:38 -0800 (PST) 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=@alien8.de header.s=dkim header.b="CR4sY/so"; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231445AbhBVN6q (ORCPT + 99 others); Mon, 22 Feb 2021 08:58:46 -0500 Received: from mail.skyhub.de ([5.9.137.197]:41860 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231560AbhBVMqg (ORCPT ); Mon, 22 Feb 2021 07:46:36 -0500 Received: from zn.tnic (p200300ec2f0402008ca1f4f712cbc8cf.dip0.t-ipconnect.de [IPv6:2003:ec:2f04:200:8ca1:f4f7:12cb:c8cf]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 6A8671EC04DF; Mon, 22 Feb 2021 13:45:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1613997951; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=31aR5SmeNWKzmknO5BmzvlMZt/XF1kSn8FQK2ndz1gY=; b=CR4sY/solpVu3FGOCwN77RSvpi7NPfYKjsxIQvulkvyDeg/5olTohtaYKfm1d/cXYs89Hz eWkB5B9D6ZvARsAM0BsfFBhIicmk7yhAT/QFOCj+uolESi+3Vh4HF7T/lc+HXg0XYMFH+6 UFjw290QPcwnoAg8AaUT+SAFDvp2ECI= Date: Mon, 22 Feb 2021 13:45:50 +0100 From: Borislav Petkov To: Aili Yao Cc: tony.luck@intel.com, mingo@redhat.com, tglx@linutronix.de, hpa@zytor.com, x86@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, yangfeng1@kingsoft.com Subject: Re: [PATCH v2] x86/mce: fix wrong no-return-ip logic in do_machine_check() Message-ID: <20210222124550.GB10880@zn.tnic> References: <20210222115007.75b7de9b@alex-virtual-machine> <20210222092403.GA29063@zn.tnic> <20210222173109.7b7ac42a@alex-virtual-machine> <20210222100356.GB29063@zn.tnic> <20210222180819.3998fe33@alex-virtual-machine> <20210222102206.GC29063@zn.tnic> <20210222192146.76ffec84@alex-virtual-machine> <20210222201723.0fcec589@alex-virtual-machine> <20210222122241.GA10880@zn.tnic> <20210222203549.0e54c26f@alex-virtual-machine> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210222203549.0e54c26f@alex-virtual-machine> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 22, 2021 at 08:35:49PM +0800, Aili Yao wrote: > Guest VM, the qemu has no way to know the RIPV value, so always get it > cleared. What does that mean? The guest VM will get the MCE signature it gets from the host kernel so the host kernel most definitely knows the RIPV value. It looks like you're testing how guests will handle MCEs which the host has caught and wants to inject into the guest for further handling. What is your exact use case? Please explain in detail how I can reproduce it step-by-step locally. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette