Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1736479rwi; Wed, 19 Oct 2022 14:51:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM56fVD4ZyeeMt/eqE2p95aLMXgZHbpw/aIPBv17avQOm8fKI/lsjPTd03/hB8FVyEe2U7WK X-Received: by 2002:a50:ec8f:0:b0:459:b0e0:e030 with SMTP id e15-20020a50ec8f000000b00459b0e0e030mr9469971edr.303.1666216310601; Wed, 19 Oct 2022 14:51:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666216310; cv=pass; d=google.com; s=arc-20160816; b=0WYrGpo5qTo1YU6SVYsxZUlrIhwdXfzJOPtKFUWZqWCnvlbZZdgwu1kpAGhFedMiUC TQI3/T7rfsEQ3ldPMd2uXd8RYnuQPAS+i/ZuIkPzhFz/NCjj/nOjmu4yd0/Ux5nU5uq2 pcEtTKwJ3wfxkx28imu4wr1PbMdsrF7VvhZheGLGfA96cAs86+/j9X1C7BPSRFqeAOUo e3NO48J/BFBqIWBjtS7y9U2BlTEkRA5HlSLmE5S5k3Nxi7iqb/ojnhpfTaVAXzFEywoH fph/orLnpk8PqrWEmDhZLGHdhOJNBjgT06Bx9PgiBC0GAesfUdb863jP6jcP5c68xNdK +HEg== ARC-Message-Signature: i=2; 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:dkim-signature; bh=qYcivq/H5iFdUMepf2B2X36P3YpSNn4pozoPEXzAK+4=; b=jvhjhYpOr2uu2DtmLvjyOIU6j1GJSTF8In5MqUtuBJkt4Jbu2Yla8XNBDlyb7CgUjC DKgha5DE5nJsb7AgrcypxPQZAWhqRAko0lP4/iomn15XPegmurrYXXKKusumYi0fbY9Q k2nj/K81xSoZEFhpcpwApsENP+WQHDQ3+y0hj+WIZdDiSL/69Li1wvFzVZnHPdINvT8w a2yuGlmQiwHPKJmwdEYRBHfloe24C/KDs+4uQ6vavGoqsAJr55ycJzugHIcMe1lcqlTb n2fUPE9tokHv/auRsSGIEP9hptWSf0uBNp4JWV2HW4W8oMnWAKml48fLS2nJre/sAeWa IhZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YYKiGaaZ; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n21-20020aa7c795000000b004513abe8f74si12982787eds.249.2022.10.19.14.51.09; Wed, 19 Oct 2022 14:51:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YYKiGaaZ; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229773AbiJSUaw (ORCPT + 99 others); Wed, 19 Oct 2022 16:30:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbiJSUat (ORCPT ); Wed, 19 Oct 2022 16:30:49 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B8DD171CD9 for ; Wed, 19 Oct 2022 13:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666211448; x=1697747448; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=qYcivq/H5iFdUMepf2B2X36P3YpSNn4pozoPEXzAK+4=; b=YYKiGaaZx3zMZlQp+wVVuWh7Ls7I6uMZZkM7kBI/0+uxrsC2POGfV5VN YYRgaBk8BqQmb2VlW0c9Fl1BnCoyp9neqg6LT73yH7cIPCHBGEHqCOALF z2DZ6HZFHZfGr3DUgaNtCuXEo8ij7fZ7w4Fs8uJPGR5xQp8xls7iXmaT1 QD2btz78zzKVJqQyeefXXE4siOjKN1tVV/6kvzJqtxT7540ak9orbOVf9 iVyei40B9O/eSIbfhYntJnpzj11N9kbuLe/0+i3BkKSSoVoCfCEpRXd8P gwtfEYV/fw9T4Bx7tf28nSyqjvHonaPDDT0be+OSp45WhoXFTC5RJ9m5t g==; X-IronPort-AV: E=McAfee;i="6500,9779,10505"; a="293916170" X-IronPort-AV: E=Sophos;i="5.95,196,1661842800"; d="scan'208";a="293916170" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2022 13:30:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10505"; a="958518627" X-IronPort-AV: E=Sophos;i="5.95,196,1661842800"; d="scan'208";a="958518627" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga005.fm.intel.com with ESMTP; 19 Oct 2022 13:30:46 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 19 Oct 2022 13:30:46 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 19 Oct 2022 13:30:46 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Wed, 19 Oct 2022 13:30:46 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 19 Oct 2022 13:30:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ayFGyq+B8jYX4Epa6gEdxJUDHkM+wNgmvY2HIUBKMcEKfj0XSVcrWyCrc5Wlygpg3o2FhRMiH2aBvFi/X9/X5zFRjrHzVisDJv3m1b3TraehH2O6RLDIXEGbdwmrOQHMEr3dASCOkvIFK8SbVVYtvRDp+O+fFWx5JbF8MAXxTqXWjBdpjujNWks7SonDrsW+pZe9Gf+UeYrqbmxpU0bZnOWuJSM+Wu+L2yzC2yUZHn8zc2Sv9SyxXzwl6fBsLXJ3LhZPBCpUoknZDgoGUXJO6IVsORG78ToKxu+yK5ORLQNSdzEyOZhVRXvC2f6knW/03rfH1ySsNJHMAF3vSWMCUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qYcivq/H5iFdUMepf2B2X36P3YpSNn4pozoPEXzAK+4=; b=XJUKNgTCkhxq7kUnHv5JFNhftoTgHLr5qTlIdwEF3WrTh88Cmi/C7/NIKFQbyM11im9nRJClR+8Z1CLJp7vTgNDEuoF2hvC8dHCy+9oq5tzO10N5xuOYaR5IsbtVdW7KgTXbhVH4fVkizHRQeqehIvGAYpK2LjEtalQLqrsdu073mVIXz18pENSCxE2nmTQephielyvPqgFqpqHg+d22v93ZcFa6xopJut6OjDybTYWDRMJS6we74mrrjygPfIenYz8nO7mMrbyQqC91tk/X/mc+FkwbuV89rl5bWlbYLx77UJA+3gyxa7PUG9khOTBHuTecfYevQiSggTcvnU4lJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SJ1PR11MB6083.namprd11.prod.outlook.com (2603:10b6:a03:48a::9) by DS7PR11MB6221.namprd11.prod.outlook.com (2603:10b6:8:9a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.28; Wed, 19 Oct 2022 20:30:41 +0000 Received: from SJ1PR11MB6083.namprd11.prod.outlook.com ([fe80::10a6:b76c:4fb1:2d60]) by SJ1PR11MB6083.namprd11.prod.outlook.com ([fe80::10a6:b76c:4fb1:2d60%6]) with mapi id 15.20.5723.033; Wed, 19 Oct 2022 20:30:41 +0000 From: "Luck, Tony" To: "Williams, Dan J" , Naoya Horiguchi , Andrew Morton CC: Miaohe Lin , Matthew Wilcox , Shuai Xue , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" Subject: RE: [PATCH v2] mm, hwpoison: Try to recover from copy-on write faults Thread-Topic: [PATCH v2] mm, hwpoison: Try to recover from copy-on write faults Thread-Index: AQHY4918CFTupvxOP023uLR6ydGaFK4V/XcAgAAtXAA= Date: Wed, 19 Oct 2022 20:30:41 +0000 Message-ID: References: <20221019170835.155381-1-tony.luck@intel.com> <635037c26bafa_24ac294c7@dwillia2-mobl3.amr.corp.intel.com.notmuch> In-Reply-To: <635037c26bafa_24ac294c7@dwillia2-mobl3.amr.corp.intel.com.notmuch> 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.6.500.17 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ1PR11MB6083:EE_|DS7PR11MB6221:EE_ x-ms-office365-filtering-correlation-id: 00b43950-cd0e-4dba-74b7-08dab210ca7c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: GNoitdkwdnReQBCy9lQ0XmoklG4o5oFhjCyFyZIJMk9BtD7gYw/LTzS4kfms/7KrpF/nEfQpfOmUib6AX3k0/4BOrT2abEvJmOb1Qt1Y7bq6mWr65anU8BRnE2a5JIh/u9TvL/+S0qvJd1H2r2P3gLVoPuF4uJDWXF3ox7gavQWjWjo1tUWA8ZAkqZLxSEfab2wbvM7/snY9SdXD8MwxgDexucMQMmLZHIzMf4+oA73L70HqM0eD+1BzLykcBaYZKOYZATHDepBvmmMGKsgQN162za+5jj0WIDmTf9CNgoGQQnlsPO2aOPhMQDRclHjNJnBhV67ZpLabUw0ofX2nY3RVkVNJyU0ccvKo1Bbt1laN/6LsDtpP2DP5DqbsOPDyos4vnsuNfKwdkfcqvmnOgLIM56F+ACm5pyN4gHkSFuSf2DnYH1DktakHRv7w6MbMAXgROA1IgmNGaqFhO0xqzCjITxHFdY1k/hTHsZXZnqLTAYe3t1KHskcf/gVz2PHinrMUWjYAHqHzFK46oEwXF+QAuYLshwDOYVe/5ZWNqOMmOkOnq2bErD+k8r0hW0+bq1eLg2/gTHCmye+qNErwpg7pNr/gr+wmcvRJ8TIcYr1/Xcnej4cvo9Zg7CAe9/cg3r3YCmPOz7FG9J05txe+Jq3ts+RJsndepvlwDcw6grgaqkP2Y/PJpVy+l5qNGIjc+X1uYF8F9YTc/wFWUtsjntm6m9W+MfgOaQsGWTLE0+9BMcYHp5F6gEe1K/05sYIdBFfRiaQkrU9XrTREE1FaTg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ1PR11MB6083.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39860400002)(396003)(136003)(376002)(346002)(366004)(451199015)(55016003)(38100700002)(110136005)(6506007)(7696005)(8676002)(64756008)(122000001)(86362001)(82960400001)(478600001)(4326008)(71200400001)(7416002)(41300700001)(2906002)(38070700005)(316002)(54906003)(66946007)(33656002)(4744005)(26005)(66556008)(186003)(52536014)(8936002)(66446008)(66476007)(5660300002)(9686003)(76116006);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?u5CToDFx6P4Q5Lghuvr6eHuhijdNq4zww0XmB3iaAvtaeYTrwHQPIiRLLmS6?= =?us-ascii?Q?CKIlE5zttdRTBiU8Ap7zV/Y8UhV1BgqCOCDK49uLJDQSzZHPKGJMhmUFgEfF?= =?us-ascii?Q?53GzjvgFz9YMtNf9RM1XXPnstphh/ebxj6VRwLXWOVoVmeSVzg68x0TjzToO?= =?us-ascii?Q?1LA+c2oo70Mi2QrKIp+PmaNd7fcWq1MwR/U5pfkMsefh80Y2x63SF6PEIjuh?= =?us-ascii?Q?cc7rogaJ8KtLlfHfJOb2vp+gZQ4aqsxvRUQrYPIEi9djx9UBaOJVFzREJZEU?= =?us-ascii?Q?ClQOa/j5I7aZWjGwaTNSVKVdRM+fNlK6AEHEmmJQ6Sy42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MbNE/Pv+I0eu2pGW8v3QtDHAoAtcEsIP2LaOqXWVziGy/u26wWh4TxU5?= =?us-ascii?Q?R2JVq1SdnSLSj/8WDCp2Vp6a8Ft8RUimqmlToQmEDdQCme5aw2haKNN6inpZ?= =?us-ascii?Q?Ai+nm6owiX5NiTh6vxwV9gX+axKyYHVR01XDE7rsBoBvUXV1bNm/16qeBec8?= =?us-ascii?Q?URi0I8x4KZsH3WhilBdeNY8ed0KWLAhKCgIYQyhzjSWEAD0cbTzdYDGhGyGI?= =?us-ascii?Q?HwQS0MgrYGn8bSGzHTUhDxR2Zf8EsDtLCcw4S1/RaOFPlQIhe7+dfLjwMv2U?= =?us-ascii?Q?t28g18KrtA5KQnPcgdaqlNhvwba+OqvcqdYDVFa10Zd7XlAXgMiBEo4NM5+f?= =?us-ascii?Q?/bEeUKLNHGk8wm1z1+8FQVNp5T+FS2WWaTawIzvp?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ1PR11MB6083.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 00b43950-cd0e-4dba-74b7-08dab210ca7c X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Oct 2022 20:30:41.2408 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 74Iprjuk0NtlXtm+vFaMRKcRsiTE6526zuBU0v4AbKgE+teu/vdIdKJlHu3RR9zkEzo4yuL7UBOqohv+arXmbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB6221 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Given there is no use case for the residue value returned by > copy_mc_to_kernel() perhaps just return EHWPOISON directly from > copyuser_highpage_mc() in the short-copy case? I don't think it hurts to keep the return value as residue count. It isn't making that code any more complex and could be useful someday. Other feedback looks good and I have applied ready for next version. Thanks for the review. -Tony