From owner-freebsd-current@freebsd.org Thu Aug 9 01:39:23 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1257310737B4 for ; Thu, 9 Aug 2018 01:39:23 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670056.outbound.protection.outlook.com [40.107.67.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A31D577B55 for ; Thu, 9 Aug 2018 01:39:22 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from YTOPR0101MB1820.CANPRD01.PROD.OUTLOOK.COM (52.132.44.160) by YTOPR0101MB0921.CANPRD01.PROD.OUTLOOK.COM (52.132.43.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.22; Thu, 9 Aug 2018 01:39:20 +0000 Received: from YTOPR0101MB1820.CANPRD01.PROD.OUTLOOK.COM ([fe80::88ec:8aee:77d7:6716]) by YTOPR0101MB1820.CANPRD01.PROD.OUTLOOK.COM ([fe80::88ec:8aee:77d7:6716%2]) with mapi id 15.20.1017.019; Thu, 9 Aug 2018 01:39:20 +0000 From: Rick Macklem To: Konstantin Belousov CC: "freebsd-current@FreeBSD.org" , "peter@holm.cc" Subject: Re: ffs_truncate3 panics Thread-Topic: ffs_truncate3 panics Thread-Index: AQHULkj8zfSrFB+Dkkqu0NmeGvZbQKS0RKaAgAGEoXWAAKUlgIAANVYC Date: Thu, 9 Aug 2018 01:39:20 +0000 Message-ID: References: <20180807131445.GC1884@kib.kiev.ua> , <20180808221647.GH1884@kib.kiev.ua> In-Reply-To: <20180808221647.GH1884@kib.kiev.ua> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rmacklem@uoguelph.ca; x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; YTOPR0101MB0921; 6:dGybPkR8N/tZw6z01MUeLxBnuTJhXVu7Tis3IHeAC4YkNaPzDF9qB1gX3ESfDAFYKBmEXgHr+/6+h75YXHEtyC/+rEgM9DMOjU2c3qG9YIy6hmxf8tRb/E4bCNICFBTRBTe9DnX3jFbpfnBtCM8RV3TCQcvBbdk4xjPQNjNXmopWXndb9BmVMP3klTquuu3obaJ5z0PTUD5O397Uesb/bzdvQxBAQiN8Oy5p9yG/PfaGnS6jviMOSritE3DuazGGRwoGiohxr8oqUtB6u77jc1LRvOmrTGLisRCCourR1JiUBkWBx6IJZOjnUwmlh7kY1O3Rkra6b8SyTVwIIOFieDrHjThMh5qal6FM/wGtMQKedzr/EgDfj0QKVnFiph74UYx7NsGvF3WN6+jDRhvMl3Ql6KH4OKfrsOshY9sMvARSGWn9t+xjwovGkaXkoPHl3mbItxaSbKIQEG/X1Ted3w==; 5:VFUIx1yxomVD5YLgo0v19/9iJE9kpeQapYzk1BGowl3WPL5LnpJxMGFWufeV3rKLqcNDl8C36UFcXUGRLXxEBBvALE77tu3D70TnEWXe0sgD88DNF9l0mHJaoaIAkkPl0gjxngc7RWN6nlar13Ht6eu01QZccZnP+UuUqdxA0yc=; 7:18dimh88LG3UpVhLAJu8clL8b9wCY7/IEqxMlrmjZ2VyT+zvDo7uiSmN6u5YITXN0KqT2e6BN4vWeZ6yCxzLMicqxe50lXkFXORLyfsOALbyDYbE+4Pr3godfSHakwpJ9NAznWALvZpvH5O9fuhDGiXEPbP1O/bTyXax7kAYNWq9vCC57vTrGBZdhqymKrbSOrurmIM1rnCR39KXglsc1O+gB13hbgZrP9LJCQQvk4oxbNO1dborxkskqNIVS6Ow x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: ea9a6de6-11b3-44ea-0832-08d5fd98edc2 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:YTOPR0101MB0921; x-ms-traffictypediagnostic: YTOPR0101MB0921: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(158342451672863); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:YTOPR0101MB0921; BCL:0; PCL:0; RULEID:; SRVR:YTOPR0101MB0921; x-forefront-prvs: 0759F7A50A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(39860400002)(346002)(396003)(376002)(189003)(199004)(106356001)(39060400002)(6436002)(14454004)(53936002)(2906002)(54906003)(9686003)(55016002)(25786009)(74482002)(5660300001)(7116003)(478600001)(6916009)(4326008)(8936002)(81156014)(81166006)(93886005)(8676002)(2900100001)(86362001)(446003)(6506007)(186003)(1411001)(305945005)(6246003)(97736004)(74316002)(5250100002)(256004)(229853002)(76176011)(99286004)(33656002)(105586002)(786003)(26005)(316002)(11346002)(7696005)(68736007)(102836004)(486006)(476003); DIR:OUT; SFP:1101; SCL:1; SRVR:YTOPR0101MB0921; H:YTOPR0101MB1820.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) x-microsoft-antispam-message-info: SI3901+8RG48zohx+h6G4rDvSKPqfC9BcYn8Fusuu4W/XutDgBn6lXJG7rVu3gXz1QhyIDpjipgae6tvUd+nX8eRqTnhUDuGGtpczb6Khz6OeIbXoB2pZYA2LvAfHRYTpat7S71NVIlKjm82wSxPH8EQSGSybnvJQoJbVdRsx6CiwpQReHrTBss9qLwwWURzEPmYsKSOQNBlqOr1o5jskQTbLEeGB9Ds0tfPOtEf50ApWN/60b/55Xdx0ZDjOXt0Y3TUxpb4AGK1uxwSSSj7uXc7zYFCYuiB4w5J6zR1EhgvheXYVIVXFJsIjZVDjqTEroVF6NnVdgNTRdm4frPdb+MMI50iWtoHHMy+1uGz7jU= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-Network-Message-Id: ea9a6de6-11b3-44ea-0832-08d5fd98edc2 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Aug 2018 01:39:20.8035 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTOPR0101MB0921 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2018 01:39:23 -0000 Konstantin Belousov wrote: [stuff snipped] >> >Can you print the only buffer on the clean queue when the panic occur ? >> ffst3 vtyp=3D1 bodirty=3D0 boclean=3D1 >> buf at 0x428a110 >> b_flags =3D 0x20001020, b_xflags=3D0x2, b_vflag= s=3D0x0 >> b_error =3D 0, b_bufsize =3D 4096, b_bcount =3D 4096, b_resid =3D 0 >> b_bufobj =3D (0xfd8ba94), b_data =3D 0x5170000, b_blkno =3D -1, b_lblkno= =3D -1, b_dep =3D 0 >> b_kvabase =3D 0x5170000, b_kvasize =3D 32768 >So the buffer was indeed for extended attrs, and never written to the disk= . >I am quite interested what was the inode content prior to the truncation, >esp. the di_extsize. Just in case it wasn't clear, this buffer is on the clean list and not the = dirty one. (Does this mean it somehow got onto the "clean list" without being written = to disk?) >Could you try to formulate a way to reproduce the panic so that Peter >can recreate it, please ? I doubt it. It would require him doing a pNFS setup with multiple systems. (At least that is the only way I reproduce it and I sometimes go a week of = testing before I see them.) It would be great to have more testers for the pNFS server stuff, but I dou= bt it would fit into Peter's setup? I can add printf()s anywhere you suggest, but I'm not sure how you would ca= tch this case sooner? (For example, I could print out di_extsize at the beginni= ng of ffs_truncate(), if that would help?) rick [more stuff snipped]