[Bug 258063] Kernel panic from a corrupt cd9660 image.

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 28 Jul 2023 22:02:18 UTC

John Baldwin <jhb@FreeBSD.org> changed:

           What    |Removed                     |Added
                 CC|                            |jhb@FreeBSD.org
           Assignee|bugs@FreeBSD.org            |jhb@FreeBSD.org

--- Comment #2 from John Baldwin <jhb@FreeBSD.org> ---
The root issue I believe is that the cd9660 vfs doesn't support volumes where
the logical block size in the primary volume descriptor is smaller than the
sector size of the underlying medium.  Fixing this would require auditing all
the places that call bread*/bwrite* in cd9660 and fixing them to align requests
on the underlying sector boundary, both by rounding up the size but also by
possibly using an offset into the buf's b_data.

Rather than solve that bigger problem, I've just added a check during mount to
reject such volumes in the proposed patch at https://reviews.freebsd.org/D41228

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