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 X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C6B4C4361B for ; Fri, 18 Dec 2020 03:49:40 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EF64323A68 for ; Fri, 18 Dec 2020 03:49:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EF64323A68 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nvdimm-bounces@lists.01.org Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id BEF08100EB857; Thu, 17 Dec 2020 19:49:39 -0800 (PST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=141.146.126.78; helo=aserp2120.oracle.com; envelope-from=darrick.wong@oracle.com; receiver= Received: from aserp2120.oracle.com (aserp2120.oracle.com [141.146.126.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 96A63100EB327 for ; Thu, 17 Dec 2020 19:49:30 -0800 (PST) Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BI3i0TM015386; Fri, 18 Dec 2020 03:49:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to; s=corp-2020-01-29; bh=LIwujB5reJPpKPd0TNJ4s00yRFeVMTgcLTo3JiXpJic=; b=LB/IHwsQbjaq0Bm2V6SUYRH59yiRsBVst/8PKZ7PZlHL/lBgsGbQN/1uC2Bav0O7+S4s hHC/e2c9bWlsQsvyTn1T83Ykdpq4E1aBZjroluXAiN/mblg94hgM1GtcsyawhGCp1iYj IsZIaTfX6bJC7Eqr1a3e/Viesx9qnb8otkChHKwWENKTYnpdDo1BWfEJrYncWMTUSu1E bx6DO6CceKpWYaILCZ/FuDBb79WF3hI47xEKDC2OpmSAiZTeoxXWwFFYfrsbprALpBYG RVVjKXals9/03C2h4kty5eWhAui1zELwe4VqEkBdO+rQXTTdpd7MloRSrW7+6gthCoNw Bg== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 35cntmgf70-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Dec 2020 03:49:14 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BI3jJO8147213; Fri, 18 Dec 2020 03:49:14 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 35g3rfkd11-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 18 Dec 2020 03:49:13 +0000 Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0BI3n95J022125; Fri, 18 Dec 2020 03:49:09 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 17 Dec 2020 19:49:09 -0800 Date: Thu, 17 Dec 2020 19:49:07 -0800 From: "Darrick J. Wong" To: Ruan Shiyang Subject: Re: [RFC PATCH v3 0/9] fsdax: introduce fs query to support reflink Message-ID: <20201218034907.GG6918@magnolia> References: <20201215121414.253660-1-ruansy.fnst@cn.fujitsu.com> <7fc7ba7c-f138-4944-dcc7-ce4b3f097528@oracle.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9838 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 malwarescore=0 spamscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012180025 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9838 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 mlxscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 impostorscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012180025 Message-ID-Hash: BQGBQ5WUTFHJUVQJTORYVR2QN6RLITL2 X-Message-ID-Hash: BQGBQ5WUTFHJUVQJTORYVR2QN6RLITL2 X-MailFrom: darrick.wong@oracle.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation CC: linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-nvdimm@lists.01.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-raid@vger.kernel.org, david@fromorbit.com, hch@lst.de, song@kernel.org, rgoldwyn@suse.de, qi.fuli@fujitsu.com, y-goto@fujitsu.com X-Mailman-Version: 3.1.1 Precedence: list List-Id: "Linux-nvdimm developer list." Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 T24gRnJpLCBEZWMgMTgsIDIwMjAgYXQgMTA6NDQ6MjZBTSArMDgwMCwgUnVhbiBTaGl5YW5nIHdy b3RlOg0KPiANCj4gDQo+IE9uIDIwMjAvMTIvMTcg5LiK5Y2INDo1NSwgSmFuZSBDaHUgd3JvdGU6 DQo+ID4gSGksIFNoaXlhbmcsDQo+ID4gDQo+ID4gT24gMTIvMTUvMjAyMCA0OjE0IEFNLCBTaGl5 YW5nIFJ1YW4gd3JvdGU6DQo+ID4gPiBUaGUgY2FsbCB0cmFjZSBpcyBsaWtlIHRoaXM6DQo+ID4g PiBtZW1vcnlfZmFpbHVyZSgpDQo+ID4gPiDCoCBwZ21hcC0+b3BzLT5tZW1vcnlfZmFpbHVyZSgp wqDCoMKgwqDCoCA9PiBwbWVtX3BnbWFwX21lbW9yeV9mYWlsdXJlKCkNCj4gPiA+IMKgwqAgZ2Vu ZGlzay0+Zm9wcy0+Y29ycnVwdGVkX3JhbmdlKCkgPT4gLSBwbWVtX2NvcnJ1cHRlZF9yYW5nZSgp DQo+ID4gPiDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgIC0gbWRfYmxrX2NvcnJ1cHRlZF9yYW5nZSgpDQo+ ID4gPiDCoMKgwqAgc2ItPnNfb3BzLT5jdXJydXB0ZWRfcmFuZ2UoKcKgwqDCoCA9PiB4ZnNfZnNf Y29ycnVwdGVkX3JhbmdlKCkNCj4gPiA+IMKgwqDCoMKgIHhmc19ybWFwX3F1ZXJ5X3JhbmdlKCkN Cj4gPiA+IMKgwqDCoMKgwqAgeGZzX2N1cnJ1cHRfaGVscGVyKCkNCj4gPiA+IMKgwqDCoMKgwqDC oCAqIGNvcnJ1cHRl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SB0byBpbmpl Y3QgbWVtb3J5LWZhaWx1cmUuICBJdCBqdXN0IHNob3dzIHRoYXQNCj4gdGhlIHByb2dyYW0gaXMg a2lsbGVkIGJ5IFNJR0JVUy4gIEkgY2Fubm90IGdldCBhbnkgZGV0YWlsIGZyb20gaXQuICBTbywN Cj4gY291bGQgeW91IHBsZWFzZSBzaG93IG1lIHRoZSByaWdodCB3YXkodGVzdCB0b29scykgdG8g dGVzdCBpdD8NCg0KSSdtIGFzc3VtaW5nIHRoYXQgSmFuZSBpcyB1c2luZyBhIHByb2dyYW0gdGhh dCBjYWxscyBzaWdhY3Rpb24gdG8NCmluc3RhbGwgYSBTSUdCVVMgaGFuZGxlciwgYW5kIGR1bXBz IHRoZSBlbnRpcmUgc2lnaW5mb190IHN0cnVjdHVyZQ0Kd2hlbmV2ZXIgaXQgcmVjZWl2ZXMgb25l Li4uDQoNCi0tRA0KDQo+IA0KPiAtLQ0KPiBUaGFua3MsDQo+IFJ1YW4gU2hpeWFuZy4NCj4gDQo+ ID4gDQo+ID4gdGhhbmtzLA0KPiA+IC1qYW5lDQo+ID4gDQo+ID4gDQo+ID4gDQo+ID4gDQo+ID4g DQo+ID4gDQo+IA0KPiAKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX18KTGludXgtbnZkaW1tIG1haWxpbmcgbGlzdCAtLSBsaW51eC1udmRpbW1AbGlzdHMuMDEu b3JnClRvIHVuc3Vic2NyaWJlIHNlbmQgYW4gZW1haWwgdG8gbGludXgtbnZkaW1tLWxlYXZlQGxp c3RzLjAxLm9yZwo= 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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AC06C4361B for ; Fri, 18 Dec 2020 03:50:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6B0E823A74 for ; Fri, 18 Dec 2020 03:50:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727177AbgLRDuQ (ORCPT ); Thu, 17 Dec 2020 22:50:16 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:38480 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726798AbgLRDuQ (ORCPT ); Thu, 17 Dec 2020 22:50:16 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BI3i0TM015386; Fri, 18 Dec 2020 03:49:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to; s=corp-2020-01-29; bh=LIwujB5reJPpKPd0TNJ4s00yRFeVMTgcLTo3JiXpJic=; b=LB/IHwsQbjaq0Bm2V6SUYRH59yiRsBVst/8PKZ7PZlHL/lBgsGbQN/1uC2Bav0O7+S4s hHC/e2c9bWlsQsvyTn1T83Ykdpq4E1aBZjroluXAiN/mblg94hgM1GtcsyawhGCp1iYj IsZIaTfX6bJC7Eqr1a3e/Viesx9qnb8otkChHKwWENKTYnpdDo1BWfEJrYncWMTUSu1E bx6DO6CceKpWYaILCZ/FuDBb79WF3hI47xEKDC2OpmSAiZTeoxXWwFFYfrsbprALpBYG RVVjKXals9/03C2h4kty5eWhAui1zELwe4VqEkBdO+rQXTTdpd7MloRSrW7+6gthCoNw Bg== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 35cntmgf70-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Dec 2020 03:49:14 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BI3jJO8147213; Fri, 18 Dec 2020 03:49:14 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 35g3rfkd11-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 18 Dec 2020 03:49:13 +0000 Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0BI3n95J022125; Fri, 18 Dec 2020 03:49:09 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 17 Dec 2020 19:49:09 -0800 Date: Thu, 17 Dec 2020 19:49:07 -0800 From: "Darrick J. Wong" To: Ruan Shiyang Cc: Jane Chu , linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-nvdimm@lists.01.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-raid@vger.kernel.org, dan.j.williams@intel.com, david@fromorbit.com, hch@lst.de, song@kernel.org, rgoldwyn@suse.de, qi.fuli@fujitsu.com, y-goto@fujitsu.com Subject: Re: [RFC PATCH v3 0/9] fsdax: introduce fs query to support reflink Message-ID: <20201218034907.GG6918@magnolia> References: <20201215121414.253660-1-ruansy.fnst@cn.fujitsu.com> <7fc7ba7c-f138-4944-dcc7-ce4b3f097528@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9838 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 malwarescore=0 spamscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012180025 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9838 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 mlxscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 impostorscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012180025 Precedence: bulk List-ID: X-Mailing-List: linux-raid@vger.kernel.org On Fri, Dec 18, 2020 at 10:44:26AM +0800, Ruan Shiyang wrote: > > > On 2020/12/17 上午4:55, Jane Chu wrote: > > Hi, Shiyang, > > > > On 12/15/2020 4:14 AM, Shiyang Ruan wrote: > > > The call trace is like this: > > > memory_failure() > > >   pgmap->ops->memory_failure()      => pmem_pgmap_memory_failure() > > >    gendisk->fops->corrupted_range() => - pmem_corrupted_range() > > >                                        - md_blk_corrupted_range() > > >     sb->s_ops->currupted_range()    => xfs_fs_corrupted_range() > > >      xfs_rmap_query_range() > > >       xfs_currupt_helper() > > >        * corrupted on metadata > > >            try to recover data, call xfs_force_shutdown() > > >        * corrupted on file data > > >            try to recover data, call mf_dax_mapping_kill_procs() > > > > > > The fsdax & reflink support for XFS is not contained in this patchset. > > > > > > (Rebased on v5.10) > > > > So I tried the patchset with pmem error injection, the SIGBUS payload > > does not look right - > > > > ** SIGBUS(7): ** > > ** si_addr(0x(nil)), si_lsb(0xC), si_code(0x4, BUS_MCEERR_AR) ** > > > > I expect the payload looks like > > > > ** si_addr(0x7f3672e00000), si_lsb(0x15), si_code(0x4, BUS_MCEERR_AR) ** > > Thanks for testing. I test the SIGBUS by writing a program which calls > madvise(... ,MADV_HWPOISON) to inject memory-failure. It just shows that > the program is killed by SIGBUS. I cannot get any detail from it. So, > could you please show me the right way(test tools) to test it? I'm assuming that Jane is using a program that calls sigaction to install a SIGBUS handler, and dumps the entire siginfo_t structure whenever it receives one... --D > > -- > Thanks, > Ruan Shiyang. > > > > > thanks, > > -jane > > > > > > > > > > > > > >