Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5562367pxv; Wed, 28 Jul 2021 13:48:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH+Y3/4OoLbHeKNCJEgyWbMz/b9yqm69UmLEDTiJSGlWXQ6RBps1+PsOaT8sGMnbIOq1cJ X-Received: by 2002:a5d:8996:: with SMTP id m22mr1092961iol.6.1627505297309; Wed, 28 Jul 2021 13:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627505296; cv=none; d=google.com; s=arc-20160816; b=UlbEOZVnCbWVj0AhnkkMEn8DQpF4SNd0H7PRRjX+vebQoWPEwfEVy47QOhYRxAIXdK tBeAXACsf7E4shZinELc78FRscgDUKYQs+HUxQC8QYALTDUVQGcwvZlz2MZT9fi0PwEY 2JIiqEtowtJ7FEyuhciKakapPUN/z6t/YE7GFzwgfTSDtNYGOuE6xuPmjP+Ver4rOJVt w4WyKGh8p480/w7h4S+WSxli1jZ6i7mSEjJdgxYvKY7s/rBjwNjIuaHNUTQIPXVrqUif Q7wbLHnPbA2EHZ4LoTSCDggvuUDs5vzEVWgc71hf1ZMh6ybT+VZBBqsPB2h7Y0VzVTcG zvhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=r/ClcNzlPhqP/Ub/Ds+5VP1wMR3GPbWP43FE8BIFP8A=; b=Z/eet2SQSnDeyUKna5bzkOp7wewAun+2myMtGtUzwGHGOpfw1RIZ1606ESmcy9Gwro P4kFNRjcDEHR0Cqgw1eXihcxvZcVzNeYStFKDjNYIciW+6Ss5xXe3NgVo5v/PQffEkPp 9ouxU4wpTVYIlUbQd0b7nGdDYqdgNt/mbBZjMiWtnClSw1XpZNih+dNn9PK29Hlx+sC1 4XIOn+24Sw+PWsXegZdWjI73VEaZWLf8WUpwNAfu1DIg8gpIWcNsV/JMWsLxFJyeNWGz imuS3ajsn6J5ei9QpSo13NRps43sRUJC4eOiFOiRC0uI3FrmHXph23C4mZGGUcPFmz1h mk1w== 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 y11si1012806jat.64.2021.07.28.13.48.05; Wed, 28 Jul 2021 13:48:16 -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 S231841AbhG1UrO (ORCPT + 99 others); Wed, 28 Jul 2021 16:47:14 -0400 Received: from mga01.intel.com ([192.55.52.88]:60188 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231585AbhG1UrE (ORCPT ); Wed, 28 Jul 2021 16:47:04 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10059"; a="234634458" X-IronPort-AV: E=Sophos;i="5.84,276,1620716400"; d="scan'208";a="234634458" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2021 13:47:01 -0700 X-IronPort-AV: E=Sophos;i="5.84,276,1620716400"; d="scan'208";a="506679869" Received: from agluck-desk2.sc.intel.com ([10.3.52.146]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2021 13:47:01 -0700 From: Tony Luck To: Sean Christopherson , Jarkko Sakkinen , Dave Hansen Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Tony Luck Subject: [PATCH v3 0/7] Basic recovery for machine checks inside SGX Date: Wed, 28 Jul 2021 13:46:46 -0700 Message-Id: <20210728204653.1509010-1-tony.luck@intel.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210719182009.1409895-1-tony.luck@intel.com> References: <20210719182009.1409895-1-tony.luck@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v2: Jarkko: 1) Don't provide a dummy non-NULL value for "owner" of new SGX EPC pages at the call site. Instead change sgx_alloc_epc_page() to provide a non-NULL value. 2) Add description of the new debugfs files to sgx.rst [Added a whole section on uncorrected memory errors] Tony Luck (7): x86/sgx: Provide indication of life-cycle of EPC pages x86/sgx: Add infrastructure to identify SGX EPC pages x86/sgx: Initial poison handling for dirty and free pages x86/sgx: Add SGX infrastructure to recover from poison x86/sgx: Hook sgx_memory_failure() into mainline code x86/sgx: Add hook to error injection address validation x86/sgx: Add documentation for SGX memory errors .../firmware-guide/acpi/apei/einj.rst | 19 +++ Documentation/x86/sgx.rst | 26 ++++ arch/x86/include/asm/set_memory.h | 4 + arch/x86/kernel/cpu/sgx/main.c | 134 +++++++++++++++++- arch/x86/kernel/cpu/sgx/sgx.h | 6 +- drivers/acpi/apei/einj.c | 3 +- include/linux/mm.h | 15 ++ mm/memory-failure.c | 19 ++- 8 files changed, 216 insertions(+), 10 deletions(-) base-commit: ff1176468d368232b684f75e82563369208bc371 -- 2.29.2