From owner-freebsd-current@freebsd.org Tue Aug 7 12:28:35 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 34BB6105CCF0 for ; Tue, 7 Aug 2018 12:28:35 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670082.outbound.protection.outlook.com [40.107.67.82]) (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 CC6EF8D293 for ; Tue, 7 Aug 2018 12:28:34 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from YTOPR0101MB1820.CANPRD01.PROD.OUTLOOK.COM (52.132.44.160) by YTOPR0101MB1337.CANPRD01.PROD.OUTLOOK.COM (52.132.45.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Tue, 7 Aug 2018 12:28:33 +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; Tue, 7 Aug 2018 12:28:33 +0000 From: Rick Macklem To: "freebsd-current@FreeBSD.org" Subject: ffs_truncate3 panics Thread-Topic: ffs_truncate3 panics Thread-Index: AQHULkj8zfSrFB+Dkkqu0NmeGvZbQA== Date: Tue, 7 Aug 2018 12:28:33 +0000 Message-ID: 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; YTOPR0101MB1337; 6:JBQQWWlM/Vo4ee8JfN1Er3Ep/JjhzeIWlP7ouKutsCVkMnyZyZJolBZf7/rc2vJTWw4d8jjxWl8l39cU9k+jZWattUhl2hE6SGfMlX7WipWR8RYOXJsn1f7xKhDn01RXsHTHpAyzuCdrb7G7TXDZhiraCPFB50T29fei2EMD673LS6GCli0YM14pRO5pJqpGdAv8WtYi8OQoPdxd8QQPEav0Lc10nW1EY7OQOAULTAEXsKaQbOUE02KovbTpdbMOzXUIj9n1WrgWaJXQqRdoegVuXap7ATxlAgSQaCN9iDUSBIEHuw42DvwHxwDhNa+WYb9EYkeQwHuNlS8Dj+0FbOTlHbaLlf2YrI7sjfKj93fLOkFQAYrGqpsreQfR+PHA5g3sNEdf9+AoU95E5BFicE86Vax6X8MCVYVnPz5FqPYhk6houlSvUH24mQ/wd94WhXcfPZtUt+fBK1UPUAYfOg==; 5:L+JV+v1EDgjo8aob0ZjilwZjw9ZledB2WF6EvvKxYiaJn0YNEI8mGjbYn6qXdHH7eNR++z8wKot3Kss3RtnATG1tgCKT+2lGMKPMzv6iviAsnsnuCSBZPmJeOJgBqdLPYpltwIZ/E2bz653//g/bvLMLEG790VUte/mY00vDLgo=; 7:pi1QwCQaLn5tn5Cnz36qslS3PaRNR4Ja4cIbWb2ngS1axp52UueTvpROpFt+XV2Y54Nt8XTgIA+EPxJpYkWdQPOjc6FXJH2j+rb8mAhl1SaMoB+r/wbNHVp3Mrn5UwCpHOiHgcqSMBE4iFVHWpd1iy7SgHHG5eyaRhA/D9jWaBMVAlSLp5A5MNGLhGQ+yJMzivjGbQiXJS7auebucpUTiRHsyZPLe364WgKENCz9s4+/Xulney+YsTzoefQBFBOq x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 98890a1b-92e4-4dd9-051a-08d5fc614a7c x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:YTOPR0101MB1337; x-ms-traffictypediagnostic: YTOPR0101MB1337: 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)(10201501046)(3002001)(3231311)(944501410)(52105095)(93006095)(93001095)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:YTOPR0101MB1337; BCL:0; PCL:0; RULEID:; SRVR:YTOPR0101MB1337; x-forefront-prvs: 0757EEBDCA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39850400004)(376002)(346002)(366004)(136003)(199004)(189003)(486006)(14454004)(68736007)(476003)(25786009)(102836004)(26005)(256004)(14444005)(6506007)(478600001)(2906002)(99286004)(86362001)(74316002)(186003)(8936002)(305945005)(2900100001)(2501003)(5250100002)(105586002)(2351001)(7696005)(97736004)(74482002)(81156014)(8676002)(81166006)(33656002)(106356001)(9686003)(7116003)(5640700003)(5660300001)(55016002)(6916009)(6436002)(316002)(786003)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:YTOPR0101MB1337; H:YTOPR0101MB1820.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) x-microsoft-antispam-message-info: Moe1fZenUkUpv4+fkHVhTRxtAzh2sgo75seWtFfdG+8Wb6Oy3BsGqEXH/wzKyKSBeNWVzhXkG1FMPTebEXClsH5YcW7CV4i0iL5lHc5UNP2eQIdlWOWzqiee5UOvrgpoYFWX2ipn8ODKRfrUqeCaabdkm/1rHTjfGCelo7uMgnHm+Qtt9NTWMK4xMomXsCPoODAro8vo9wX3E/s+pLcC7SNlu10R34oZa3kzQGy0to4VWZ9BroKwvWO91jhX0YOGPKOCvrEnOR2wfCVELWESyZPZmxLw5ckcc3AW4mV1ivSL4XblQERtpj2TAjHYdUUqJzmizsQ8/P1yVehN9dk+oeNj26PogwmHNA0kZd1/gSc= 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: 98890a1b-92e4-4dd9-051a-08d5fc614a7c X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Aug 2018 12:28:33.3281 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTOPR0101MB1337 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: Tue, 07 Aug 2018 12:28:35 -0000 Hi, During testing of the pNFS server I get an ffs_truncate3 panic every once i= n a while. A few things that might be relevant: - Seems to happen more often when soft update journaling is enabled, but wi= ll happen when it is disabled. - Normally happens when a fairly large subtree of the file system is being = removed. These file systems are a bit odd, since all the regular files in them are e= mpty but have extended attributes that are accessed during the subtree removal. (The extended attributes tell the server where the data files are.) I replaced the panic() with a printf() and every time the printf() happens.= .. bo->bo_dirty.bv_cnt =3D=3D 0 and bo->bo_clean.bv_cnt =3D=3D 1. After one of these printf()s, the system continues to run ok. When the file system is fsck'd after this has occurred, it passes fine and I haven't seen= and indication of file system corruption after running with this file system fo= r quite a while after the printf()s first occurred. Since the panic() only occurs when "options INVARIANTS" is enabled and I do= n't see evidence of file system corruption, I'm wondering if this panic() is va= lid and needed? rick