From nobody Tue Feb 13 01:08:27 2024 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TYjrK0gWKz59Nvm for ; Tue, 13 Feb 2024 01:08:33 +0000 (UTC) (envelope-from jfc@mit.edu) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on20700.outbound.protection.outlook.com [IPv6:2a01:111:f403:200a::700]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYjrJ1330z4lfp for ; Tue, 13 Feb 2024 01:08:32 +0000 (UTC) (envelope-from jfc@mit.edu) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mit.edu header.s=selector2 header.b=S4mooHcq; dmarc=pass (policy=none) header.from=mit.edu; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (mx1.freebsd.org: domain of jfc@mit.edu designates 2a01:111:f403:200a::700 as permitted sender) smtp.mailfrom=jfc@mit.edu ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kt8bIY9WhkVNDdcDUeGWhqmz9rV2T48e7UAaqbgHJRLf5E/V9EelVkian9KwPiMYu0wkKYj8/Clz61lzn3qMk2KtdxNmQm3EY+VdHj5HiDEC2k8pK7EpOBiCDoVTI3HJHw6OJjI2dCcWln1IhNJ7XSa7xJ6qwLP5w1E9sr2wWzZV3eQ4W1bD9y0eqBcZGqhkaDsELDqWA4xXdFQfBmpddZgH58dRmWeuXh/p9eBsgVFLHWh0e7N5g+USsFxDHeyk3pdGKq8gPh/ETirdSqPXkBatQVxCl4D1XLdmiQqigwCvVsP++Hn7H2+q5f2BSMkw2b+XS8S7QwxWG2t5w2MMCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=G0y6SB9LZESBR3izAFKX3D03ctbU8RUsYYtdhNm6aTg=; b=O5Kaq84wUCWzPZQPnt5MseSkpeldUuGfzid/K33bo3Zt+HLLilGV2C+1TB9/xLJjlX6tMoyQjZunSjAuieMsz8EjQfp0TaEiOvueNE9f43E9CyQbwp4jX0lwUUX/m4FfvNfjMcv5e5691mgRJXCpuLoFT8gzo4jnpaU3qPUyY8fQKVVd42+Iiuszqa5Ij2nbHQYlRX7tY7SJCBZOOseRllHsj03w5QN+bHDvjEE4+FPKQmarILHZb57BfIX0A5RlRl+HKrcReaJOtRtP6DS7QN6U8afN/bDQEh0z+/nn70goZ2K26OcOV2op4fKPwjliho6rZMfaIxgfOw57ihZI+g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mit.edu; dmarc=pass action=none header.from=mit.edu; dkim=pass header.d=mit.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G0y6SB9LZESBR3izAFKX3D03ctbU8RUsYYtdhNm6aTg=; b=S4mooHcqGp2gAZgrWfsFq/YpuE/XN88tcwNVa2Hr6ku18eSGBChgciU2TBeoQxBe3bNnQMoF6AEC3GepTUXzi32goYT8WjpBOzFedvhadi5WwGc+hAz/bMZ5BtJtp+gh1dVrUh/nNJ5+1FxeaP9Ilo+1S8VR2oIr+VRAu0EUjpw= Received: from SA3PR01MB8450.prod.exchangelabs.com (2603:10b6:806:382::17) by MW4PR01MB6146.prod.exchangelabs.com (2603:10b6:303:7c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.38; Tue, 13 Feb 2024 01:08:27 +0000 Received: from SA3PR01MB8450.prod.exchangelabs.com ([fe80::dda2:5717:28f6:b5e6]) by SA3PR01MB8450.prod.exchangelabs.com ([fe80::dda2:5717:28f6:b5e6%4]) with mapi id 15.20.7270.036; Tue, 13 Feb 2024 01:08:27 +0000 From: John F Carr To: Freebsd fs Subject: corrupted UFS directory despite soft updates + journaling Thread-Topic: corrupted UFS directory despite soft updates + journaling Thread-Index: AQHaXhkmf+qe7AhdhEGm9JkSOkL5yQ== Date: Tue, 13 Feb 2024 01:08:27 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA3PR01MB8450:EE_|MW4PR01MB6146:EE_ x-ms-office365-filtering-correlation-id: db4fad36-2f5c-4bbb-c513-08dc2c3048f0 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: q4xGDr6O6P1vrw4F+IPx+BOuKslKcXkTPCy4r6xz0FtGkSFgvBfThKybiAX8R+1Lypn3rCLnUUpQLIRP4BMmLlwU5JIJM2qsPRWemcqTEowJpt8HcwjI8jnQQdWSyKmdRMXm3f9CsfHeydF2lGEpyIqqAgdFRpaRsRN4W+MKDBqOsatbpRO3SrDqOgDLGMTmQPqRkKXQpgRZfep7Ih6aTU9COiX2wFR0MiTJSliHEdXSeqmtK5tv5gC/vNbNIdBCzJ2QWyxeFGZlxPMjSuMGJg2j4v3AR6syGdvrb5i7V/nxM/9cBLmiSLmPeQNf6p0QDNQTdNCn9AC/phoQwWZvUX0TWQSmzQxc/m0O6nM25x+rIFXxnxYnFKZtu3xgCP6wbCdH6xSFNZRRllmZ10tDqSPY3LmPPKcXULg8wr2IvvVBC+1DPMFTwn5wghjkqs6j295M8IDSlppsHXkTvgd0lo40S0wL+bcSBG6ypUFj1JnB5UcoBM+IKrHPU1lEqvPAxZx/WhUQSIbaWc1GbgLIQUZ/FCm86HLruox5IGlFLbMdv6QX6sbDJzjmRbRwqJKOvqyfATFk5pOhfduzdrQOPWlRCdpHdk32gtH2MX6/r23AnfaSBvXIHrhrXgdc5jpx x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA3PR01MB8450.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(39860400002)(346002)(136003)(396003)(366004)(230922051799003)(451199024)(186009)(64100799003)(1800799012)(41300700001)(83380400001)(86362001)(316002)(786003)(6916009)(6486002)(2616005)(33656002)(6512007)(71200400001)(15650500001)(478600001)(36756003)(38070700009)(5660300002)(66446008)(66476007)(66946007)(66556008)(8676002)(8936002)(76116006)(2906002)(64756008)(6506007)(38100700002)(122000001)(75432002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?5lX/I3FtFrXwMMT2M6VUpaXDeEvXjhE3fIlMN5JU0Uj0QDL4rHIsZOLblQCR?= =?us-ascii?Q?OkIaE7A2yYVIKdzybvE+xGGqfNHfJW+M5A5csP9QL4emZzxUrMagAYaTJmxg?= =?us-ascii?Q?KjekMlevt+ANx4WKT2sCoKsd4ZR97aXt3xxA+09z5g1DIJLx62TA26fzZuRm?= =?us-ascii?Q?jBLgtx+TFkSrBEMUFp7eQkrbcvQYFxixDa1sX7HZVxVH/btjXAEMNXSQjUVL?= =?us-ascii?Q?q7SX2T5XRUhJvFV3h83aGMgIUbeFudN2kt72woSZ33iCuBlH+NDwK8BR6cRj?= =?us-ascii?Q?levA/fwBvfJFL9bEUy5ijBvtVI7m7dU+TmdkSsy6+NzlzU5o8GxecTp0vyQG?= =?us-ascii?Q?PCWFt5baUzjyScO+KJEaljGSMaYl+unO48vph8HWxaoCcaB9igU4o2xZS4Kl?= =?us-ascii?Q?j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ql3e2kF0qo3VGQ?= =?us-ascii?Q?jZSwD7P/P9XUJE/4wjdRCiNjXwvG9Bui38+teraAe0p5LyRzArVOH3LXuq9f?= =?us-ascii?Q?AFW7p9oYfqdD80j2gJUj9tTqlhGhrEpJGq0FbIgovqWGSQsYdtefffdkFWZ4?= =?us-ascii?Q?5C9bZJWalaPuXmyzFyjLWkUqHMTPjz2+OHLGHZIvz8PkojTlOPTnvHpmiV0q?= =?us-ascii?Q?NFJrsM9PVVTmpGV5eDNTiUm5mv4lNbFxAV7+X7H24/bItBsX0LC2uSuVhHno?= =?us-ascii?Q?SFvuxCkQ8VW3ycaxB+DAskTcOkVmwz9zYN2H131aciTauHSLCpu/d9cRXj9H?= =?us-ascii?Q?P/8js/K4BQ3Osy5cJd7PVyg7oK/N8Wt6OarfmKzWDf+R?= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: mit.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA3PR01MB8450.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: db4fad36-2f5c-4bbb-c513-08dc2c3048f0 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2024 01:08:27.3247 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 64afd9ba-0ecf-4acf-bc36-935f6235ba8b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 25yObUdmLe5PFPE2SpvO3jmMxLI5weuZ+BL1Cwpg1VgJw2Kw4vh85H9unIJhJPWb X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR01MB6146 X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[mit.edu:dkim]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_SHORT(-0.99)[-0.989]; DMARC_POLICY_ALLOW(-0.50)[mit.edu,none]; R_SPF_ALLOW(-0.20)[+ip6:2a01:111:f403::/49]; R_DKIM_ALLOW(-0.20)[mit.edu:s=selector2]; MIME_GOOD(-0.10)[text/plain]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a01:111:f403:200a::700:from]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[mit.edu:+] X-Rspamd-Queue-Id: 4TYjrJ1330z4lfp I have a corrupted UFS filesystem after a virtual machine was terminated abnormally. It's easy enough to fix with fsck but I thought such corruption shouldn't happen with journaling and soft updates. I was running 15.0 in bhyve on a 13.3 host. The host kernel killed bhyve because "a thread waited too long to allocate a page". (The system was neither heavily loaded nor short of RAM. A bug for another list.) On rebooting fsck read the journal and proclaimed itself satisifed. But one problem remained: /: bad dir ino 9134991 at offset 1024: mangled entry A full fsck says DIRECTORY CORRUPTED I=3D9134991 OWNER=3Droot MODE=3D40775 SIZE=3D1536 MTIME=3DFeb 12 19:27 2024=20 DIR=3D/usr/obj/usr/src/amd64.amd64/usr.bin/clang/lldb-server UNEXPECTED SOFT UPDATE INCONSISTENCY Is this error supposed to be possible with journaling? This is what tunefs says: tunefs: soft updates: (-n) enabled tunefs: soft update journaling: (-j) enabled tunefs: gjournal: (-J) disabled tunefs: trim: (-t) enabled tunefs: maximum blocks per file in a cylinder group: (-e) 4096 tunefs: average file size: (-f) 16384 tunefs: average number of files in a directory: (-s) 64 tunefs: minimum percentage of free space: (-m) 8% tunefs: space to hold for metadata blocks: (-k) 6400 tunefs: optimization preference: (-o) time John Carr