Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp591971pxb; Wed, 18 Aug 2021 09:19:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1BTPy3lWKf/UyVKXoA5GNcSWBViVTG/mCxPhkZ97TMhFr4CiFlRoxl92POcVYflt7Bq0E X-Received: by 2002:a05:6402:424a:: with SMTP id g10mr10835965edb.326.1629303589853; Wed, 18 Aug 2021 09:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629303589; cv=none; d=google.com; s=arc-20160816; b=SlTlOIzi3yon//Aj45460rvzSVvkKMnKIx1ywGMyaC3aAuBjuV0s/fTYP4Plzrenqz gGA6uBvQNmL83oT0Fw7/ikeJOnxVJDtRxAjuPFsBDKj8tV8b31jQ3aKoJVrUpkVZ2Qk3 nsKH/UT2vDQgqG4vsSQqvRxFWtARH5kub65K/vestb5J3/YotL+MH0v95o5Qtd0k1u+H md8JcYCDVNjdQGxzkb/3aEMFrmze/p3pfSqvE/eJvHS0TXX5BIks8hjoYPPGYZxjeWxp CmM10xGF21g6J5IVg7fFuULLuA60K8OEgN/dDR3eJBvE5I96791rj+XdigfQJzrKSYO5 TD/w== 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=c2MszfaCB3Vjy7SM+Vt5VQAmzUCgNfi7UJjwq2SUZjM=; b=CW0YknvW+r0DX9tEAvzy7iAZ4r7hh0aBCeYlrWjUuKeHEfgYsLCGm5br+rI1nVoKri qaFm8NEF1kizIy7kjcoMDFk0ASNU5CwJ9GpkXw1LhZwIrJnoW4GnfH3PXHUtvu4BVWnR byAu5xKkS4wbuZwP0dV32ZGy5e6sgBj6T/B4294F72D95ucIyFsofT90H3HC8xZPn3wY JQKl6BakCkkppg8sMbsgw/aq+HU0i61bU9hwtlWgWcSYxc2i3Lsqb7cCf86zSKG09UKB V9poicleXGRfNDfjmWl1n92aC+T2NhmiP2GTnWY5ansFeQY/Y2BK1Y7FgbW5ZQF9tgaQ dUFA== 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 j11si330471ejj.109.2021.08.18.09.19.24; Wed, 18 Aug 2021 09:19:49 -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 S230342AbhHRQPQ convert rfc822-to-8bit (ORCPT + 99 others); Wed, 18 Aug 2021 12:15:16 -0400 Received: from mga07.intel.com ([134.134.136.100]:23695 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbhHRQPQ (ORCPT ); Wed, 18 Aug 2021 12:15:16 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10080"; a="280102579" X-IronPort-AV: E=Sophos;i="5.84,330,1620716400"; d="scan'208";a="280102579" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2021 09:14:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,330,1620716400"; d="scan'208";a="641385365" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga005.jf.intel.com with ESMTP; 18 Aug 2021 09:14:40 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Wed, 18 Aug 2021 09:14:39 -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; Wed, 18 Aug 2021 09:14:39 -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; Wed, 18 Aug 2021 09:14:39 -0700 From: "Luck, Tony" To: Borislav Petkov CC: Jue Wang , Ding Hui , "naoya.horiguchi@nec.com" , "osalvador@suse.de" , "Song, Youquan" , "huangcun@sangfor.com.cn" , "x86@kernel.org" , "linux-edac@vger.kernel.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2 0/3] More machine check recovery fixes Thread-Topic: [PATCH v2 0/3] More machine check recovery fixes Thread-Index: AQHXk8gpkFvZ1Gbe80CQzogjtbcrGqt5byJw Date: Wed, 18 Aug 2021 16:14:38 +0000 Message-ID: References: <20210706190620.1290391-1-tony.luck@intel.com> <20210818002942.1607544-1-tony.luck@intel.com> In-Reply-To: <20210818002942.1607544-1-tony.luck@intel.com> 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="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Changes since v1: > 1) Fix bug in kill_me_never() that forgot to clear p->mce_count so > repeated recovery in the same task would trigger the panic for > "Machine checks to different user pages" > [Note to Jue Wang ... this *might* be why your test that injects > two errors into the same buffer passed to a write(2) syscall > failed with this message] I recreated Jue's specific test today with uncorrected errors in two pages passed to a write(2) syscall. buf = alloc(2 pages); inject(buf + 0x440); inject*buf + 0x11c0); n = write(fd, buf, 8K); Result was that the write returned 0x440 (i.e. bytes written up to the first poison location). -Tony