Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6349967rwr; Mon, 24 Apr 2023 18:56:23 -0700 (PDT) X-Google-Smtp-Source: AKy350ZqnGlITC6xI+RMfNe5vob7jB35ZN5JLDayExXeKDb66V455R90nS/YYK82RkMpmWr0KdL2 X-Received: by 2002:a17:902:d590:b0:1a5:2540:729 with SMTP id k16-20020a170902d59000b001a525400729mr16154331plh.56.1682387783697; Mon, 24 Apr 2023 18:56:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682387783; cv=none; d=google.com; s=arc-20160816; b=fVlsDhg3xizZ5/BawMGJd4FUPALJl9RrA6KycGnqSPw6rBKG6CB7u06gdGwQeoW6o/ UPp6/c9rgWnAOg4/3tP8rEJG36wYldAT+c0numycDhG0oUEjbYLLttPQf3l3WqHoIm6x XlSet+I28BGetu3PAnickoe2KjKkXwkHKRbN97StutMjmnqMv8EPrQQU1hXFSxAB7LwM 9TX7dm6APbDUGaOoSPeuzdV7ruGalSA6R4BZdJPn25R3ftloSYhuWzrEvk7dsnJOcKMT HdLXU+BPmw07j9T2vKW8a/Kv8ILNrN7Q7cmRHPrNQVOMjxiNlKoSkL4JTuiBgv/Zjhb/ Bh1Q== 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=NZn3vDCu4JG2AunWlTYsvZ8Cp8WMUR+woVUiP8Hd8+g=; b=qVNKn78Cp4EEreSlhpjteScr3oEug15yuU/r/CAmwzlL4ITbeM5MhFKi0DOUmyvG7p A0F96kA+w/U30V8o+aq+lepCOLat5ZSMPmrSbY12v85LIoKfiXhtCCbMqiJsl03TkyVZ hygJbE8SVQPsns7OlOi88QTw3yj2YEqVsIZPxj+Tb5z0waHuviVqvPIYPFpfbxb3jCxU QDekPcr40eAHMPAEJIpIx4lzspxYZVuPG7/XhrO3F9EbKBrXhGuqzNtWNuUyjnloZj0d oykIH4K9xtIydA4cbK1sd6LqCIBWOH3hkZ9ock80LEcFkq/jbFWTkOIGa8H1XirgxTHF WThA== 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 e12-20020a170902784c00b001a6547bfdadsi11557508pln.156.2023.04.24.18.56.11; Mon, 24 Apr 2023 18:56:23 -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; 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 S233147AbjDYBr6 (ORCPT + 99 others); Mon, 24 Apr 2023 21:47:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232801AbjDYBr2 (ORCPT ); Mon, 24 Apr 2023 21:47:28 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FB4449F9; Mon, 24 Apr 2023 18:47:27 -0700 (PDT) Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Q54XQ2lXlz17KKF; Tue, 25 Apr 2023 09:43:34 +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.2507.23; Tue, 25 Apr 2023 09:47:23 +0800 Message-ID: <316b5a9e-5d5f-3bcf-57c1-86fafe6681c3@huawei.com> Date: Tue, 25 Apr 2023 09:47:22 +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 v2] mm: hwpoison: coredump: support recovery from dump_user_range() Content-Language: en-US To: "Luck, Tony" , =?UTF-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPoyDnm7TkuZ8p?= CC: "chu, jane" , Thomas Gleixner , Alexander Viro , Christian Brauner , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" , Andrew Morton , Miaohe Lin , "linux-kernel@vger.kernel.org" , Tong Tiangen , Jens Axboe References: <20230417045323.11054-1-wangkefeng.wang@huawei.com> <20230418031243.GA2845864@hori.linux.bs1.fc.nec.co.jp> <54d761bb-1bcc-21a2-6b53-9d797a3c076b@huawei.com> <20230419072557.GA2926483@hori.linux.bs1.fc.nec.co.jp> <9fa67780-c48f-4675-731b-4e9a25cd29a0@huawei.com> <7d0c38a9-ed2a-a221-0c67-4a2f3945d48b@oracle.com> <6dc1b117-020e-be9e-7e5e-a349ffb7d00a@huawei.com> <9a9876a2-a2fd-40d9-b215-3e6c8207e711@huawei.com> <20230421031356.GA3048466@hori.linux.bs1.fc.nec.co.jp> <1bd6a635-5a3d-c294-38ce-5c6fcff6494f@huawei.com> <20230424064427.GA3267052@hori.linux.bs1.fc.nec.co.jp> From: Kefeng Wang In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 2023/4/25 0:17, Luck, Tony wrote: >>> This change seems to not related to what you try to fix. >>> Could this break some other workloads like copying from user address? >>> >> >> Yes, this move MCE_IN_KERNEL_COPYIN set into next case, both COPY and >> MCE_SAFE type will set MCE_IN_KERNEL_COPYIN, for EX_TYPE_COPY, we don't >> break it. > > Should Linux even try to take a core dump for a SIGBUS generated because > the application accessed a poisoned page? > > It doesn't seem like it would be useful. Core dumps are for debugging s/w > program errors in applications and libraries. That isn't the case when there > is a poison consumption. The application did nothing wrong. > > This patch is still useful though. There may be an undiscovered poison > page in the application. Avoiding a kernel crash when dumping core > is still a good thing. Thanks for your confirm, and what your option about add MCE_IN_KERNEL_COPYIN to EX_TYPE_DEFAULT_MCE_SAFE/FAULT_MCE_SAFE type to let do_machine_check call queue_task_work(&m, msg, kill_me_never), which kill every call memory_failure_queue() after mc safe copy return? > > -Tony