From nobody Mon May 29 21:59:42 2023 X-Original-To: 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 4QVTvy4K08z4XFBT for ; Mon, 29 May 2023 21:59:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QVTvy3DyFz3Gfh for ; Mon, 29 May 2023 21:59:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685397582; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cYgtnsCtexz/aTtNjZQhIzqh0wDc6AYo2KkDe6FTbH4=; b=FG3d/h6MfBgB7XKYNEYAuNFIZaOe4qRcok920MCD2poaXsDBDTP9BBuRFaAwEFpPjJueNm xB67JXszg3cC8L/ttNZ4V4eln5ggBiPSKVp1ayKGQNmwXB1yaY3qPca2jAqSFMlBtxar/U /9hW4mKfqywZf3MoS0Q/R1DnQ96+ocJ82NHlna3AKOCu1sIri5NB5KcN9Wd8CdTSXIt9Zm dOQlB8zWc36AHzVns8+o1pu+Nto5jzmlnHBiJHuvqNYfAEWKwGx/FxzN6ddatlIGiK0i/3 cxMNn3Um9L0eA65b5bSHBWJF44LCw23tWU4belnoe3baNUoFLC6mw9zW1VByew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685397582; a=rsa-sha256; cv=none; b=pTTmpiYDXul124XSfpSVrQLE5rSHjHIYdCngxf6g0Lrk3rIi/MfFTuPzlMnb41xEYa+A4/ vz4XsJmXDI8nRZz0K8trfKBzUvs6f9m3XfYztM0WIALaLlF/i/YmqHCQzZmsoa4aoYh1+7 LKWNG9XUOibNgJ6UTjN58dwhPsCkxw9VDMUYaI197NAjJxq5U137g7PQMVK4ADbvPbdaei s3x9Y5KjexOE2od9i5xX1VPYyGjBzaeb2asaA0wDHNyMPjSTPodIDa0WS/dQKIf9FDqoUm 9UFLoEVC2MDgt240pnbQdI2z3BKoSpPQErl2th/IUXQkzxslWXW0kHdO0NmL8w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QVTvy0chdzSZR for ; Mon, 29 May 2023 21:59:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 34TLxg1u016009 for ; Mon, 29 May 2023 21:59:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34TLxgKI016008 for fs@FreeBSD.org; Mon, 29 May 2023 21:59:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 271414] negative root i-node size can cause crash in fsck_ffs's iblock() if journaling Date: Mon, 29 May 2023 21:59:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271414 --- Comment #1 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D6a71277c3037df2c3a70464c2e2bf20de= c2c128a commit 6a71277c3037df2c3a70464c2e2bf20dec2c128a Author: Kirk McKusick AuthorDate: 2023-05-29 21:58:20 +0000 Commit: Kirk McKusick CommitDate: 2023-05-29 21:58:20 +0000 Fix a bug in fsck_ffs(8) triggered by corrupted filesystems. When loading the root directory ensure that it is a directory and has a size greater than the minimum directory size. If an invalid root directory is found, fall back to full fsck. Reported-by: Robert Morris PR: 271414 MFC-after: 1 week Sponsored-by: The FreeBSD Foundation sbin/fsck_ffs/suj.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=