Re: PATCH libata-2.6 4/5] Prevent the device from overrunning the buffer in __atapi_pio_bytes()

2005-03-29 Thread Albert Lee
Jeff Garzik wrote: Albert Lee wrote: > > Bartlomiej Zolnierkiewicz wrote: Problem: Some bad behaved CD-ROM drives will return more data than ask to. (I have such CD-RW drive and it crashed the kernel.) These devices are compliant with original ATAPI spec. Such condition shouldn't be treated a

Re: PATCH libata-2.6 4/5] Prevent the device from overrunning the buffer in __atapi_pio_bytes()

2005-03-22 Thread Jeff Garzik
Albert Lee wrote: > > Bartlomiej Zolnierkiewicz wrote: Problem: Some bad behaved CD-ROM drives will return more data than ask to. (I have such CD-RW drive and it crashed the kernel.) These devices are compliant with original ATAPI spec. Such condition shouldn't be treated as an error - extra d

Re: PATCH libata-2.6 4/5] Prevent the device from overrunning the buffer in __atapi_pio_bytes()

2005-03-18 Thread Albert Lee
> > Bartlomiej Zolnierkiewicz wrote: Problem: Some bad behaved CD-ROM drives will return more data than ask to. (I have such CD-RW drive and it crashed the kernel.) These devices are compliant with original ATAPI spec. Such condition shouldn't be treated as an error - extra data should be read a

Re: PATCH libata-2.6 4/5] Prevent the device from overrunning the buffer in __atapi_pio_bytes()

2005-03-18 Thread Bartlomiej Zolnierkiewicz
On Fri, 18 Mar 2005 16:00:36 +0800, Albert Lee <[EMAIL PROTECTED]> wrote: > Hi Jeff, > > Problem: >Some bad behaved CD-ROM drives will return more data than ask to. > (I have such CD-RW drive and it crashed the kernel.) These devices are compliant with original ATAPI spec. Such condition sho

PATCH libata-2.6 4/5] Prevent the device from overrunning the buffer in __atapi_pio_bytes()

2005-03-18 Thread Albert Lee
Hi Jeff, Problem: Some bad behaved CD-ROM drives will return more data than ask to. (I have such CD-RW drive and it crashed the kernel.) Changes: - Add additional check in __atapi_pio_bytes() to prevent the device from overrunning the buffer. Attached please find the patch against the libata-2.6