GEOM_VOL panics when audio CD is present

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu Dec 30 04:16:57 PST 2004


On Wed, Dec 29, 2004 at 05:28:09PM +0100, Pawel Jakub Dawidek wrote:
+> On Wed, Dec 29, 2004 at 04:53:05PM +0100, Dag-Erling Sm?rgrav wrote:
+> +> g_vol_ffs_taste() tries to taste audio CDs, triggering a KASSERT in
+> +> g_io_request() because 65536 is not a valid offset on a medium with
+> +> 2352-byte sectors.  The exact panic message is "wrong offset 65536 for
+> +> sectorsize 2352" (sys/geom/geom_io.c lines 250-251).
+> +> 
+> +> None of this code has been touched recently, so I suspect the same bug
+> +> is present in 5.3, though I haven't had a chance to test it yet.
+> 
+> Those KASSERT()s are hiden under DIAGNOSTIC in RELENG_5.
+> 
+> Anyway, I had simlar problems. I'll prepare a patch to try soon.

Hmm, I'm not sure what is correct way to fix it.
Maybe we should just remove those KASSERTs?

Simlar panic, AFAIR, can be seen when you try to mount audio CD.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20041230/ef6c3ab9/attachment.bin


More information about the freebsd-geom mailing list