Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1009863pxu; Mon, 23 Nov 2020 09:22:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzyREH5Wrd19Scx12HuiT2mWARY+bouSSGySik5EkXaGSiRptc/nyF1X9oeoW06VfYsllu5 X-Received: by 2002:a17:906:1386:: with SMTP id f6mr520368ejc.453.1606152145917; Mon, 23 Nov 2020 09:22:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606152145; cv=none; d=google.com; s=arc-20160816; b=lD2h3JJiZws+wAHZe9YzLj68hpTDZprZcuV10YyN4x80Co6ldPfhhWkcb/Aibw6EFI W3pr0pXY6jo+9791hrcp/+nu4YU3EfFp+g5qyRgb4d0OxhC1mew+yW88P/wWH847NNnQ dPK5dNbjjl0DuXOGCeoEWsQ7PlssbgZqEERyJ1I1YpZHrDm8ijXDZjlIJceQ4zxB7y61 b//sX0eZqJsOHvOmnggFGgvTzyNlpz8/xOkd3wMX2YHwaJYnA8UeTs86g37XQfcUrl2I b5riE+Vvoh58PjFqgbuTUKJt7goKw8By/1BexQdqbltNaZRHaPAg3GFIDdOMQHDdnBhO b8Jw== 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=Yr/jqD5fGpdWOH43HvL0x8EwPmEVGpFEdRBXSVITnNc=; b=hEzueDE6G17Le6W9yQ8hXfiU5sjBw0F/MQS5y8DDxvAl7EMjYkLwrP8/Ne3APp/FpB XFG88Jm0UGAw8EOpJBZGMaibyqRS7XNpbkwQ1yQEuG+xRb4+qpEU+iSiQxbXxzSHoQLW KsjQVnZyOKgLkek3KuK1HQffTh/PJ6RoNhfMsZ2Z4NJdonBWwwWPTk8l4SmAya/G/2Y0 5ety6+rJbzx9Yl2eKVFLmfMYbSCxCXP9EYsl8xsLeCDyXksb6GaKtRHCApxrSnrnMPr1 88iRW65zQ8ZEkuzwrjQp7ZIhSkFaoS3OvVwyOv18XRlXOBRuVYf+HTjvPvFKGuvDbnSs slVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Y5kF7fvO; 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 op9si6748989ejb.447.2020.11.23.09.22.02; Mon, 23 Nov 2020 09:22:25 -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=Y5kF7fvO; 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 S1731452AbgKWRTR (ORCPT + 99 others); Mon, 23 Nov 2020 12:19:17 -0500 Received: from mail.skyhub.de ([5.9.137.197]:45662 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726417AbgKWRTQ (ORCPT ); Mon, 23 Nov 2020 12:19:16 -0500 Received: from zn.tnic (p200300ec2f0bbc0000a4f4bc59f4c3b0.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:bc00:a4:f4bc:59f4:c3b0]) (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 586081EC0494; Mon, 23 Nov 2020 18:19:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1606151955; 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=Yr/jqD5fGpdWOH43HvL0x8EwPmEVGpFEdRBXSVITnNc=; b=Y5kF7fvOhnFOMbeTRslgjgL9QqkHIOR2Vu5J575ZCprq2gYgfezlW7hW1SFAkWAOI4vufK AZaTWJT9ub9i25+ikbty5oAJ2vQTMhg2QNj9HyJds4O9UoH3V33g1D3NvxnRSTLDN3ageY dl/cD5956kfrcGKyoJpUj/9c5eF71w8= Date: Mon, 23 Nov 2020 18:19:10 +0100 From: Borislav Petkov To: "Paoloni, Gabriele" Cc: "Luck, Tony" , "tglx@linutronix.de" , "mingo@redhat.com" , "x86@kernel.org" , "hpa@zytor.com" , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-safety@lists.elisa.tech" Subject: Re: [PATCH 2/4] x86/mce: move the mce_panic() call and kill_it assignments at the right places Message-ID: <20201123171910.GF15044@zn.tnic> References: <20201118151552.1412-1-gabriele.paoloni@intel.com> <20201118151552.1412-3-gabriele.paoloni@intel.com> <20201123142746.GC15044@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 05:06:31PM +0000, Paoloni, Gabriele wrote: > From my understanding no_way_out and kill_it are different in principles: > no_way_out is telling that an error occurred 'somewhere' in some CPU bank > that requires the system to panic (e.g. PCC=1); kill_it is saying that the execution > cannot be restarted where it left for the local CPU and hence we need to find > an alternative solution as part of the recovery action. In practice it seems to > me that kill_it is used to replace kill_me_maybe with kill_me_now in case > the exception happened in user mode. Bah, I got confused, sorry about that - you're right. Btw, that kill_it should probably be called "kill_current_task" or so to make it more clear. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette