From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7AC9BC433FE for ; Fri, 30 Sep 2022 21:51:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E1E3B6B0072; Fri, 30 Sep 2022 17:51:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DCE0A6B0073; Fri, 30 Sep 2022 17:51:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CBCE48D0001; Fri, 30 Sep 2022 17:51:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id BECF16B0072 for ; Fri, 30 Sep 2022 17:51:01 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 8594DAC13B for ; Fri, 30 Sep 2022 21:51:01 +0000 (UTC) X-FDA: 79970097522.22.52A21E5 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf23.hostedemail.com (Postfix) with ESMTP id 30FD4140004 for ; Fri, 30 Sep 2022 21:51:00 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 24955624F5; Fri, 30 Sep 2022 21:51:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3369CC433C1; Fri, 30 Sep 2022 21:50:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664574659; bh=vabvEljJEdiGT9O8zYxyDRMm9047G+g1cdOaUIE65I0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JzUTqb/L8CteBMUp1uXhPW1P3bk/NVt3DKasySxJLYhdXm+uvfI5sqMWwe+vmrJNe Ed4NtLqzUQnv1HFsqvfTdADBFwzJGQcfzYKVlmTYUX0KuiZbE+e0bH5HMfgmZCyam/ z3tm4GJ79vHrkJEKLPDXo2GNrwFI7xaNFTd1arDmHgtUdvLA00dijb9w9N6xQtPZXL 05bnlFqFG8Kg+x/e1O9/tKmtOESGdiKuED0JZJStcqm/FsFQAd2mW+HckXEP57aN+7 fMQiaWbv6I1xLylAUYI6J8QrFpZUTs5v3oPDf7ILo++9QTkcH3NTX9gLDDsLURuntg /Zb5mIP0SRyjA== Date: Sat, 1 Oct 2022 00:50:56 +0300 From: Jarkko Sakkinen To: Thomas Tai Cc: tony.luck@intel.com, dave.hansen@linux.intel.com, reinette.chatre@intel.co, naoya.horiguchi@nec.com, linmiaohe@huawei.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 1/1] x86/sgx: Add code to inject hwpoison into SGX memory Message-ID: References: <20220928153832.1032566-1-thomas.tai@oracle.com> <20220928153832.1032566-2-thomas.tai@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220928153832.1032566-2-thomas.tai@oracle.com> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1664574661; h=from:from:sender: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:dkim-signature; bh=R6bppBe2C6xx01JuW+qmJbfu/f9doNaiA5OV35/87B4=; b=AYMnO6Y82k5pXV3WjICnNKeV6jnLDG47PKuNSAAUU7plZCdXXAvCuTQPhCNXWZDAZA9G4o EdFFPrMNBrPmLZgJ341bBDj65oAo0qyN+hss/0TZhqrQQEfECqhrufxOXgBW4/mlGD97ZY puRn++VnXut9lqNktF1B/y1pwR2YnZU= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="JzUTqb/L"; spf=pass (imf23.hostedemail.com: domain of jarkko@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=jarkko@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1664574661; a=rsa-sha256; cv=none; b=kdF15FqfXI2yTSJk3XSEuM/MWXvCxnhXnjFWHzv/QkIcQorWodjcpbNw+C+a2xLcafb3O0 8gUpdTXnbCtwHSV6x0oI96Yyr9iJJtVOvPUIPpc2QEW0sHoIftXN6ChA8CERwC95X5XzmK 8lWsXyEHOOylwy5gIkLPTIoMXAq+0NA= Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="JzUTqb/L"; spf=pass (imf23.hostedemail.com: domain of jarkko@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=jarkko@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-Rspam-User: X-Stat-Signature: dw8ymp4fgatyn8mone5z1ca771ixutbp X-Rspamd-Queue-Id: 30FD4140004 X-Rspamd-Server: rspam08 X-HE-Tag: 1664574660-371724 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Sep 28, 2022 at 11:38:32AM -0400, Thomas Tai wrote: > Inspired by commit c6acb1e7bf46 (x86/sgx: Add hook to error injection > address validation), add a similar code in hwpoison_inject function to > check if the address is located in SGX Memory. The error will then be > handled by the arch_memory_failure function in the SGX driver. > > Signed-off-by: Thomas Tai > --- > Documentation/mm/hwpoison.rst | 44 +++++++++++++++++++++++++++++++++++ > mm/hwpoison-inject.c | 4 ++++ > 2 files changed, 48 insertions(+) Hmm.. no change log. What was the change in-between v1 and v2? BR, Jarkko