Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3733369rwb; Fri, 9 Dec 2022 20:00:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf7fncMgxxG6cgNtw2JsGw6lTZwVD5cEuxew9+Xss4sCm/vQM6FRc3s0em6cy8lITUhNDrue X-Received: by 2002:a17:906:2493:b0:7c0:a49a:1 with SMTP id e19-20020a170906249300b007c0a49a0001mr6517760ejb.71.1670644845472; Fri, 09 Dec 2022 20:00:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670644845; cv=none; d=google.com; s=arc-20160816; b=PbquPdmU0oRF6C+eX9kdsDDVtdUpYAKSdQ4zGSJgpjLpUzSsAx7MXHs8dbv1aOicp0 kLqpyx914pepEghzwp9oTHXorBnJiFxm+t0LzS/bGHZkc9aTIuLPRhKJKdws5fLIvwhQ Yq9Y/6HP4uhO2M1CKgL/HQPsjRjdHNBvcFSvzi29MJTDnGMWWpj3lTF/mxMkS6fChZ1V gma9g+yCD67+apveaEE88JJH8NJrrTuSQu92VQfBoLsB6Gj+RzofPTOkFbamnFji9+pa 6feaJy52fEdY6Kh8yas2YnAsPFJ8GEIWacI2zewW8ZcNWDbOHr83TZF8Yl1cZj+5w06p Hltw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=ObGMYHPg92igpUsxwUwJzAauiEDCC+saRnTqhEIGaro=; b=qnrTjFvI4d8UkjPnrGHivlMvMK8SB1xK/T2e2FbNVUy0IefHTtU4pkz9aTZGzVW8b0 Dfr1UmC0Chakg/E/KmVKqluCHGesEH9j6eOwwDG6K4/qdovk5PxRay4v6UidOGAzPk5M stKNW1JJqcYuoeMKEpKkNS7QUlOkX97MUeu5Y10am1TR6kVvieR7ixoNMc8iujzilA36 CqyS3OmH0KECOd48sSm+U6Nlbc2HP4b1cBbzguENn/Lq8lc7St7tF0uzxHVcZXooII08 K7/4iwoeCF8Qa6hLHwiYIiK/6W3dM1cqJGWVqLUr0g/HFq7XLyBnqV0f0EoSvHQ8FhCf DBIw== ARC-Authentication-Results: i=1; mx.google.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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l18-20020a170906795200b00780a240cfd7si1602414ejo.493.2022.12.09.20.00.26; Fri, 09 Dec 2022 20:00:45 -0800 (PST) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229563AbiLJDiC (ORCPT + 75 others); Fri, 9 Dec 2022 22:38:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbiLJDh7 (ORCPT ); Fri, 9 Dec 2022 22:37:59 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FE77201A1 for ; Fri, 9 Dec 2022 19:37:57 -0800 (PST) Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4NTYR15Qp3zJpF9; Sat, 10 Dec 2022 11:34:21 +0800 (CST) Received: from [10.174.177.243] (10.174.177.243) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 10 Dec 2022 11:37:55 +0800 Message-ID: Date: Sat, 10 Dec 2022 11:37:54 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH -next v2] mm: hwposion: support recovery from ksm_might_need_to_copy() Content-Language: en-US To: Andrew Morton CC: , , , , , Tong Tiangen References: <20221209021525.196276-1-wangkefeng.wang@huawei.com> <20221209072801.193221-1-wangkefeng.wang@huawei.com> <20221209165015.7de5f7173c534c10875e10fb@linux-foundation.org> From: Kefeng Wang In-Reply-To: <20221209165015.7de5f7173c534c10875e10fb@linux-foundation.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 On 2022/12/10 8:50, Andrew Morton wrote: > On Fri, 9 Dec 2022 15:28:01 +0800 Kefeng Wang wrote: > >> When the kernel copy a page from ksm_might_need_to_copy(), but runs >> into an uncorrectable error, it will crash since poisoned page is >> consumed by kernel, this is similar to Copy-on-write poison recovery, >> When an error is detected during the page copy, return VM_FAULT_HWPOISON, >> which help us to avoid system crash. Note, memory failure on a KSM >> page will be skipped, but still call memory_failure_queue() to be >> consistent with general memory failure process. > Thanks. Sorry, lots of paperwork and bureaucracy: > > > Is a copy of the oops(?) output available? > > Did someone else report this? If so, is a Reported-by available for > that? And a Link: for the Reported-by:, which is a coming thing. > > Can we identify a Fixes: target? > > Is a cc:stable appropriate? We are trying to support ARCH_HAS_COPY_MC on arm64[1] and trying to recover from CoW faults[2], also tony do the same thing(recover from CoW) on X86[3]. The kernel copy in ksm_might_need_to_copy() could recover, this is an enhance of COPY_MC, so I think no need to add Fixes and stable. Thanks. [1] https://lore.kernel.org/linux-arm-kernel/20220812070557.1028499-1-tongtiangen@huawei.com/ [2] https://lore.kernel.org/linux-arm-kernel/20220812070557.1028499-5-tongtiangen@huawei.com/ [3] https://lore.kernel.org/lkml/20221031201029.102123-2-tony.luck@intel.com/ >