Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Oct 2021 09:59:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 258961] g_label_msdosfs_taste() can loop infinitely if FAT32 disk image is corrupt
Message-ID:  <bug-258961-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 258961
           Summary: g_label_msdosfs_taste() can loop infinitely if FAT32
                    disk image is corrupt
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: rtm@lcs.mit.edu

The g_label_msdosfs_taste() FAT32 path reads fat_BytesPerSector from
the disk image and then executes

        for (offset =3D fat_BytesPerSector * fat_FirstDataSector;;
            offset +=3D fat_BytesPerSector) {

If fat_BytesPerSector is zero, this never make progress, and
never finishes.

--=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-258961-227>