Subject: Re: kern/34202
To: matthew green <mrg@eterna.com.au>
From: None <khym@azeotrope.org>
List: netbsd-bugs
Date: 11/29/2006 15:46:01
On Thu, Nov 30, 2006 at 08:03:55AM +1100, matthew green wrote:
> 
> isn't this fixed by cd.c 1.249?

Not for me... the diff between 1.248 and 1.249 is:

 	error = scsipi_command(periph,
 	    (void *) &di_cmd,  sizeof(di_cmd),
-	    (void *) &di,      sizeof(di),
+	    (void *) &di,      READ_DISCINFO_BIGSIZE,
 	    CDRETRIES, 30000, NULL, flags);
 	if (error == 0) {
 		msb = di.last_track_last_session_msb;

and the checkin comment says, "Even though SCSI adapters
*should* accept odd lengths, the Sun U10 (sparc64's) crashes in
bus_space_read_multi_stream_2(). That explains the crash."

So this has to do with an odd length being passed in, not the alignment
of the structure. On my alpha, the READ_DISCINFO succeeds; it's the
following READ_TRACKINFO that crashes.