[Bug 271414] negative root i-node size can cause crash in fsck_ffs's iblock() if journaling

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 29 May 2023 21:59:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271414

--- Comment #1 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=6a71277c3037df2c3a70464c2e2bf20dec2c128a

commit 6a71277c3037df2c3a70464c2e2bf20dec2c128a
Author:     Kirk McKusick <mckusick@FreeBSD.org>
AuthorDate: 2023-05-29 21:58:20 +0000
Commit:     Kirk McKusick <mckusick@FreeBSD.org>
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(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.