Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3640545rwb; Fri, 9 Dec 2022 18:09:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf5r8Y0ZGoT0JC5E2G916Xj9Jl7MKfEckdgGnZkt2RRoTIUFgszCw1K2sbYG8IQOF7VulNgv X-Received: by 2002:a17:90a:d984:b0:219:6619:848a with SMTP id d4-20020a17090ad98400b002196619848amr8209080pjv.36.1670638187622; Fri, 09 Dec 2022 18:09:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670638187; cv=none; d=google.com; s=arc-20160816; b=g/qIUb2QwJ6FUvJRKveCE3bUmIXMRCfg7OefCEJExdvBLAHoKqgXlcpZl9oV81nC1y 1iJcpK3pNR8OYDjT/gfs7QxdBp48llYwg0a4rb92PK9RYAPoxEn9kMuc+pH+ymcBOgjd p2ok5aaMXFb+6wWVaviQhwKPXN/Bn/B1HwZPpRQCZkrWgxQiiADg2GjFhaeGQie/EidJ ZyTHrjlEfeqE73qERO/9wUYVcSqhl0ZpUziqCeowRgJWEpA6S8AwwXx+NOVHJgdeEWZ0 dD0MeQLgQFLG3mqqVQUJ4rNNyMqw3uux7/vw2oLavgaXcl/2O19HzFDYh8FiPOXZGSsE x9Iw== 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:subject:cc:to:from:date :dkim-signature; bh=dRuhH8FMlmfvc6zoYqeaNnzaIm9B9yAJnmxzzemiK44=; b=cueCxTjI3nhymDHlOMS2uyhruDjCmaRi5QNwkP7EaWQhOlcp/3WqLZqM8sVbtjhu4a 7AAUtRzHQLTsxWcV+GBoTDUo0SaHSxtQxwBbLbFn43t6KhEu+6AkBnfVfamyYYAGcltl QBIz67UqSB0DSPHviW6t1UAH28Nwy8L9HsMd0f+u5FLjpm75RBBUt7pTe7SWGZRBx1DG dY4Dq8/oFPYL5aeHJ/RTb7IxizQizQKasDYRsmDkrt7yAgeFQH+fw/ImhrwsRNteIIy8 T/KUWQD3XePO6tY0KDLXKytcALvFFmebgiF4UNh9eUHfBiojVPg7/sAng0KnGoSczG4E QPXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="m5EoJ8B/"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v135-20020a63618d000000b0046f55fec417si2968470pgb.650.2022.12.09.18.09.35; Fri, 09 Dec 2022 18:09:47 -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; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="m5EoJ8B/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229863AbiLJAuV (ORCPT + 74 others); Fri, 9 Dec 2022 19:50:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbiLJAuS (ORCPT ); Fri, 9 Dec 2022 19:50:18 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F040E532C0 for ; Fri, 9 Dec 2022 16:50:17 -0800 (PST) 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 7DCC562343 for ; Sat, 10 Dec 2022 00:50:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 964DEC433D2; Sat, 10 Dec 2022 00:50:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1670633416; bh=2Ri2KSdIUWoQ+TlB3H1PoS6/faC9fDqVI+PSLZ4D4sM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=m5EoJ8B/gpS9tSEK/CfSq1s67bAo9+L0k2xT6mpzyKHAOpGmrbZJcTqXJQMxeBitv 8ktWh4i9vgDTOiJnw1iBM6DoPgVGSlMTMP8fnfTswk0tMWdiGljA5OcwRMpdXkPZ9A K7cvxOTDKRBetLYyBBAUF93xC/pGQC6ajJctQqyI= Date: Fri, 9 Dec 2022 16:50:15 -0800 From: Andrew Morton To: Kefeng Wang Cc: , , , , Subject: Re: [PATCH -next v2] mm: hwposion: support recovery from ksm_might_need_to_copy() Message-Id: <20221209165015.7de5f7173c534c10875e10fb@linux-foundation.org> In-Reply-To: <20221209072801.193221-1-wangkefeng.wang@huawei.com> References: <20221209021525.196276-1-wangkefeng.wang@huawei.com> <20221209072801.193221-1-wangkefeng.wang@huawei.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, 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 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?