Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp457287pxf; Thu, 8 Apr 2021 06:39:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydSI8nhyp1Y/TpNhz3PQJcA2e1An8TpWPlCXLM1cJK2NmheTiebRmAhBM3KlBXLabUr1lI X-Received: by 2002:a50:eb8f:: with SMTP id y15mr11615616edr.115.1617889183498; Thu, 08 Apr 2021 06:39:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617889183; cv=none; d=google.com; s=arc-20160816; b=biaPnOwEwfgFWnWmmTqeazaDBefB+5MCuByUmx+kjehoKaInYrykHJvH2K6mzqAdyd aT5sUqKXIGH9PugWRTLx0+RlTZ73/pknfHRvoVu0qTMxC+bTd0Jo82ttEMTHPzdyUoRF voBN965ru+sipxgYbtSHUfqZnUZ5DJpKHSJcLa6Rjn6n7VMPGqM9fC+32h1Q54OV8ItF vxnIUPhGCAXljZmgd5YsakI7pD0V6HoBdlMfNN4F3T+xf4n8C7zyeEkCDN6Tfs4I+atJ ZJ8QpF4REOK6EwFs65nj6iPkjvmqWWSe1xj47Sdk1uRpfZOhtjpA0hNRMawglRGDbUCd AJWg== 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=rcbTJeL0qCfNlPnpFLbjPA0s8qIHLH+BaXYJGvFUr2g=; b=mrOvXk3/fV3z8donjLWG+IC6eZGfBli/oTM/Z0nWqW1doxu7U3hi7YTHQhb6lenPoz cUk/feIKKoFxom7k+SVMsFOdNM2eswyruL8Njy04Nu7925WOz91mBZySKwnvCtF/xE/e rUUHVLaIbBCsAdWhtDxbewfGxW9xv+kmivqNzn1IitsgNs+/3GAAwuv8Nq/TGtxDHbUK M6i+ZUR+/mx6tPVLZI5K879PMvAfuJCY8o+1xYDkGZqC8/UzcfIfOUEeh9UbBuXeBcZR TuRZ73cwMBwyo9wJN8Vko6eytG9Jrwqi7HkhkZUnVPGrHWkBB1IFeXbqYH4zIVu2cPS8 +kzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=PDCV24O1; 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 d20si6089226edc.51.2021.04.08.06.39.20; Thu, 08 Apr 2021 06:39:43 -0700 (PDT) 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=PDCV24O1; 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 S231601AbhDHNgp (ORCPT + 99 others); Thu, 8 Apr 2021 09:36:45 -0400 Received: from mail.skyhub.de ([5.9.137.197]:53928 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231255AbhDHNgp (ORCPT ); Thu, 8 Apr 2021 09:36:45 -0400 Received: from zn.tnic (p200300ec2f095000f2588bda42a4deac.dip0.t-ipconnect.de [IPv6:2003:ec:2f09:5000:f258:8bda:42a4:deac]) (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 DB7111EC027D; Thu, 8 Apr 2021 15:36:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1617888993; 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=rcbTJeL0qCfNlPnpFLbjPA0s8qIHLH+BaXYJGvFUr2g=; b=PDCV24O1Z649Q88tnfXsownQZeUZXSFWR4FeNJSNsjta/DvUSRpxK6tGwEy/LLEsimBc3D vqG2xQAf0LQ8xFqh3OAbTmynPGnaGgadjobeZppnuKJvD65My0JpcpEe67bjZqYLSBmx7i Lz7rgxBlHvmE7q2v5J6kjVbFNDzX438= Date: Thu, 8 Apr 2021 15:36:31 +0200 From: Borislav Petkov To: Tony Luck Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andy Lutomirski , Aili Yao , HORIGUCHI =?utf-8?B?TkFPWUEoIOWggOWPo+OAgOebtOS5nyk=?= Subject: Re: [PATCH 4/4] x86/mce: Avoid infinite loop for copy from user recovery Message-ID: <20210408133631.GJ10192@zn.tnic> References: <20210326000235.370514-1-tony.luck@intel.com> <20210326000235.370514-5-tony.luck@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210326000235.370514-5-tony.luck@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 25, 2021 at 05:02:35PM -0700, Tony Luck wrote: ... > Expected worst case is two machine checks before moving on (e.g. one user > access with page faults disabled, then a repeat to the same addrsss with > page faults enabled). Just in case there is some code that loops forever > enforce a limit of 10. > > Signed-off-by: Tony Luck > --- > arch/x86/kernel/cpu/mce/core.c | 40 ++++++++++++++++++++++++++-------- > include/linux/sched.h | 1 + > 2 files changed, 32 insertions(+), 9 deletions(-) What I'm still unclear on, does this new version address that "mysterious" hang or panic which the validation team triggered or you haven't checked yet? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette