Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1056474pxv; Thu, 22 Jul 2021 21:07:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4wI4MDFFarsfJZOSFcQZXigqm1TJO4pU7ZCjBWFaF4LV1Qf+FrPyMf8azN6uqWb6ibJ54 X-Received: by 2002:a17:907:76da:: with SMTP id kf26mr2858143ejc.511.1627013257723; Thu, 22 Jul 2021 21:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627013257; cv=none; d=google.com; s=arc-20160816; b=KGSTLFi98hd8UrAPOafl4yrZvld4dcF8rPRR6xGfljUujZxGm2m7mA0iSkfnxfKEB5 5URr7NpIAeS/uyR0UDplbEH3VdXyk830FotoOMlLTTpIyPRdMoTt8Ir6b1UitYjtABlK pdZP3RibGkFztwW7QeT9Bm5OAKF0t/RIGYJTJlUc1O5Cponf6iBhkI03WnCMQ3osDa2o O7utr+xTqeePIkCo/n5Irorofvw5jNIXy1SRpIt3plj08ggpzb98Nd+37O0O2tz9+NH2 uQsCr6zA484Lq+CClARjk3BpN/YPcQ35eoYyWFv7UewsVDeGDl36bcll2dX+eVJDAaFN fzNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=A6zBoWswOKUpLQ5vTdR3C5hAgK8NRLOBc8l8B7Trb3w=; b=M50553tP8hFet/ZFMRzrEEHtaMfGtoXsjXUWfix/dmXyvLKxNu3CQ6G2uT20yPTMou soT9yGfzgOQnQ0l4V4pjQIH55PcVEJOpNXKooIYn2IrE2l642ZLawHfkuNwp9YmRWULL MaImmdWDqsdx/pnOluoJnlkGGpUTm47r8SEs7eHkqbWo2UvNKOcB320J6AJKrU0SKXyb +YqvpqaR8XwODBJvEvC9N4jzm0LIdjDVhia5gcSeoqlw/k3zLATci49Ved64RtTIjqkp CpNaQ7bSB91tzQyisJ4dY3zcf9NkR0NuCTV6GeUOJB0/7GNb3PyVYXQr6xtcWQBAG5km M8dA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si32380393edr.43.2021.07.22.21.07.14; Thu, 22 Jul 2021 21:07:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234036AbhGWDXM (ORCPT + 99 others); Thu, 22 Jul 2021 23:23:12 -0400 Received: from mga06.intel.com ([134.134.136.31]:45230 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233585AbhGWDXF (ORCPT ); Thu, 22 Jul 2021 23:23:05 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10053"; a="272914237" X-IronPort-AV: E=Sophos;i="5.84,263,1620716400"; d="scan'208";a="272914237" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2021 21:01:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,263,1620716400"; d="scan'208";a="415707800" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga006.jf.intel.com with ESMTP; 22 Jul 2021 21:01:52 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Thu, 22 Jul 2021 21:01:51 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Thu, 22 Jul 2021 21:01:51 -0700 Received: from fmsmsx610.amr.corp.intel.com ([10.18.126.90]) by fmsmsx610.amr.corp.intel.com ([10.18.126.90]) with mapi id 15.01.2242.010; Thu, 22 Jul 2021 21:01:51 -0700 From: "Luck, Tony" To: Jue Wang CC: Borislav Petkov , "dinghui@sangfor.com.cn" , "huangcun@sangfor.com.cn" , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , =?utf-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPoyDnm7TkuZ8p?= , Oscar Salvador , x86 , "Song, Youquan" Subject: RE: [PATCH 2/3] x86/mce: Avoid infinite loop for copy from user recovery Thread-Topic: [PATCH 2/3] x86/mce: Avoid infinite loop for copy from user recovery Thread-Index: AQHXfwEmVkDftAlLQUekz+CS3pEeK6tPG/EAgAD+lAD//5bsgIAAsOQA//+MXOA= Date: Fri, 23 Jul 2021 04:01:44 +0000 Message-ID: <0e39ef0e1b6d4532a09ad2d6e0b28310@intel.com> References: <20210722151930.GA1453521@agluck-desk2.amr.corp.intel.com> <20210723001436.GA1460637@agluck-desk2.amr.corp.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 x-originating-ip: [10.1.200.100] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 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