[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/39904: Unreadable CD may lead to panic (integer divide fault trap in cdstrategy)
>Synopsis: Unreadable CD may lead to panic (integer divide fault trap in
>Arrival-Date: Wed Nov 12 18:35:00 +0000 2008
>Originator: Sergey Svishchev
cd_size() exits early (but doesn't return 0 that cd_get_parms() expects) if
read_cd_capacity() fails. Thus, cd->params.blksize is left at 0, which leads
to trap in cdstrategy():
* If the xfer is not a multiple of the device block size
* or it is not block aligned, we need to bounce it.
if ((bp->b_bcount % cd->params.blksize) != 0 ||
Try to mount a very old (and unreadable) CD-R.
Make cd_size() return 0 or don't return early at all?
Main Index |
Thread Index |