Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jan 2024 18:30:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 276464] assertion failure running fsck_msdosfs -n
Message-ID:  <bug-276464-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276464

            Bug ID: 276464
           Summary: assertion failure running fsck_msdosfs -n
           Product: Base System
           Version: 13.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: jfc@mit.edu

Running fsck_msdosfs -n on a bad filesystem produces the following output:

** /dev/zvol/fast/fat32s1
** Phase 1 - Read FAT and checking connectivity
FAT starts with odd byte sequence (f8ffff0ffffffff7)
Correct? no
** Phase 2 - Checking Directories
/archive/2013-02-02 Drum1 doesn't start a new cluster chain
Truncate? no
Assertion failed: (fat_is_cl_head(fat, head)), function checkchain, file
/usr/home/jfc/freebsd/src/sbin/fsck_msdosfs/fat.c, line 1046.

The assertion may be invalid with -n.

Alternatively, this code from dir.c line 985

                        } else {
                                mod |=3D k =3D checksize(fat, p, &dirent);
                                if (k & FSDIRMOD)
                                        mod |=3D THISMOD;
                        }

should not execute if (mod & FSERROR).

This is the same bad filesystem from bug 276408.

# file -s /dev/zvol/fast/fat32
/dev/zvol/fast/fat32: DOS/MBR boot sector MS-MBR 9M english at offset 0x10+=
0xFF
"Invalid partition table" at offset 0x127 "Error loading operating system" =
at
offset 0x146 "Missing operating system", disk signature 0xaab3b4a1, created
with driveID 0x81 at 21:59:0; partition 1 : ID=3D0xc, active, start-CHS
(0x0,1,1), end-CHS (0x280,254,63), startsector 63, 586067202 sectors
# file -s /dev/zvol/fast/fat32s1=20
/dev/zvol/fast/fat32s1: DOS/MBR boot sector, code offset 0x5a+2, OEM-ID
"MSWIN4.1", sectors/cluster 64, Media descriptor 0xf8, sectors/track 63, he=
ads
255, hidden sectors 63, sectors 586067202 (volumes > 32 MB), FAT (32 bit),
sectors/FAT 71533, serial number 0x1dd91023, label: "SEA_DISK   "

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276464-227>