Re: [syzbot] [usb-storage?] divide error in isd200_ata_command

From: Alan Stern
Date: Mon Feb 26 2024 - 22:05:20 EST


On Mon, Feb 26, 2024 at 09:46:39PM -0500, Martin K. Petersen wrote:
>
> Alan,
>
> >> in isd200_scsi_to_ata() because it must not be called before
> >> isd200_get_inquiry_data() has completed.
> >
> > It can't be; isd200_get_inquiry_data is called by
> > isd200_Initialization during probe before any SCSI commands are
> > transmitted.
>
> How do we end up with bad inquiry data (or rather bad ATA ID data)?

The data doesn't come from an actual ISD200 device. It's from a
deliberately faulty (for the obvious reason) emulation in userspace,
created by the syzbot test code.

Alan Stern