NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: install/48664: NetBSD-amd64-6.36.99.iso is broken.



On Tue, Mar 18, 2014 at 09:20:00AM +0000, 
henning.petersen%t-online.de@localhost wrote:
> cd0(ahcisata1:0:0): Check Condition on CDB: 0x5a 00 00 00 00 00 00 00 10 00
>       SENSE KEY:      Illegal Request
>       ASC/ASCQ:       Illegal Field in CDB
> panic: buf mem pool index 12

This is a broken medium and the code trying to find out the block size
going amok, resulting in a multi-MB blocksize.

Try to limit it in sys/dev/scsipi/cd.c:read_cd_capacity(), like:

        /* blksize is 2048 for CD, but some drives give gibberish */
        if ((*blksize < 512) || ((*blksize & 511) != 0)
            || (*blksize > 16*1024))
                *blksize = 2048;        /* some drives lie ! */

(see PR 48550)

Martin


Home | Main Index | Thread Index | Old Index