linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* isd200.c Has fatal bugs and is probably not used any more
@ 2007-08-21 19:06 Boaz Harrosh
  2007-08-21 20:24 ` Doug Maxey
  2007-08-22  8:42 ` Björn Stenberg
  0 siblings, 2 replies; 4+ messages in thread
From: Boaz Harrosh @ 2007-08-21 19:06 UTC (permalink / raw)
  To: Björn Stenberg, support, James Bottomley, Greg Kroah-Hartman

Hi!

the driver drivers/usb/storage/isd200.c has code like:

static int isd200_action( struct us_data *us, int action,
              void* pointer, int value )

...

    case ACTION_READ_STATUS:
        US_DEBUGP("   isd200_action(READ_STATUS)\n");
        ata.generic.ActionSelect = ACTION_SELECT_0|ACTION_SELECT_2;
        ata.generic.RegisterSelect =
          REG_CYLINDER_LOW | REG_CYLINDER_HIGH |
          REG_STATUS | REG_ERROR;
        srb->sc_data_direction = DMA_FROM_DEVICE;
        srb->request_buffer = pointer;
        srb->request_bufflen = value;
        break;
...

Now what the hell is that hijacked scsi_cmnd and who said
that the srb->use_sg is Zero. If this is a regular queued
scsi_cmnd, this can easily crash. And at best a memory leak.

The last git recorded real change to this driver was it's insertion
into git by Linus.

Is this an indication that this driver is no longer used and
can be removed?

Boaz Harrosh



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: isd200.c Has fatal bugs and is probably not used any more
  2007-08-21 19:06 isd200.c Has fatal bugs and is probably not used any more Boaz Harrosh
@ 2007-08-21 20:24 ` Doug Maxey
  2007-08-22  9:18   ` Boaz Harrosh
  2007-08-22  8:42 ` Björn Stenberg
  1 sibling, 1 reply; 4+ messages in thread
From: Doug Maxey @ 2007-08-21 20:24 UTC (permalink / raw)
  To: Boaz Harrosh
  Cc: Björn Stenberg, support, James Bottomley, Greg Kroah-Hartman,
	linux-scsi


On Tue, 21 Aug 2007 22:06:26 +0300, Boaz Harrosh wrote:
> Hi!
> 
> the driver drivers/usb/storage/isd200.c has code like:
> 
> static int isd200_action( struct us_data *us, int action,
>               void* pointer, int value )
> 
> ...
> 
>     case ACTION_READ_STATUS:
>         US_DEBUGP("   isd200_action(READ_STATUS)\n");
>         ata.generic.ActionSelect = ACTION_SELECT_0|ACTION_SELECT_2;
>         ata.generic.RegisterSelect =
>           REG_CYLINDER_LOW | REG_CYLINDER_HIGH |
>           REG_STATUS | REG_ERROR;
>         srb->sc_data_direction = DMA_FROM_DEVICE;
>         srb->request_buffer = pointer;
>         srb->request_bufflen = value;
>         break;
> ...
> 
> Now what the hell is that hijacked scsi_cmnd and who said
> that the srb->use_sg is Zero. If this is a regular queued
> scsi_cmnd, this can easily crash. And at best a memory leak.
> 
> The last git recorded real change to this driver was it's insertion
> into git by Linus.
> 
> Is this an indication that this driver is no longer used and
> can be removed?

All IBM bladecenters have the HW this driver supports.  And it does
mostly work.  This particular frag requires USB_DEBUG enabled, correct?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: isd200.c Has fatal bugs and is probably not used any more
  2007-08-21 19:06 isd200.c Has fatal bugs and is probably not used any more Boaz Harrosh
  2007-08-21 20:24 ` Doug Maxey
@ 2007-08-22  8:42 ` Björn Stenberg
  1 sibling, 0 replies; 4+ messages in thread
From: Björn Stenberg @ 2007-08-22  8:42 UTC (permalink / raw)
  To: Boaz Harrosh; +Cc: support, James Bottomley, Greg Kroah-Hartman, linux-scsi

Boaz Harrosh wrote:
> The last git recorded real change to this driver was it's insertion
> into git by Linus.
> 
> Is this an indication that this driver is no longer used and
> can be removed?

It is definitely used. The driver was introduced for a line of Archos MP3 players which are still in active use. The Rockbox projects gets around 500 firmware downloads for these players every month.

(Please cc me on replies, I am not on the list.)
-- 
Björn
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: isd200.c Has fatal bugs and is probably not used any more
  2007-08-21 20:24 ` Doug Maxey
@ 2007-08-22  9:18   ` Boaz Harrosh
  0 siblings, 0 replies; 4+ messages in thread
From: Boaz Harrosh @ 2007-08-22  9:18 UTC (permalink / raw)
  To: Doug Maxey
  Cc: Björn Stenberg, support, James Bottomley, Greg Kroah-Hartman,
	linux-scsi

Doug Maxey wrote:
> On Tue, 21 Aug 2007 22:06:26 +0300, Boaz Harrosh wrote:
>> Hi!
>>
>> the driver drivers/usb/storage/isd200.c has code like:
>>
>> static int isd200_action( struct us_data *us, int action,
>>               void* pointer, int value )
>>
>> ...
>>
>>     case ACTION_READ_STATUS:
>>         US_DEBUGP("   isd200_action(READ_STATUS)\n");
>>         ata.generic.ActionSelect = ACTION_SELECT_0|ACTION_SELECT_2;
>>         ata.generic.RegisterSelect =
>>           REG_CYLINDER_LOW | REG_CYLINDER_HIGH |
>>           REG_STATUS | REG_ERROR;
>>         srb->sc_data_direction = DMA_FROM_DEVICE;
>>         srb->request_buffer = pointer;
>>         srb->request_bufflen = value;
>>         break;
>> ...
>>
>> Now what the hell is that hijacked scsi_cmnd and who said
>> that the srb->use_sg is Zero. If this is a regular queued
>> scsi_cmnd, this can easily crash. And at best a memory leak.
>>
>> The last git recorded real change to this driver was it's insertion
>> into git by Linus.
>>
>> Is this an indication that this driver is no longer used and
>> can be removed?
> 
> All IBM bladecenters have the HW this driver supports.  And it does
> mostly work.  This particular frag requires USB_DEBUG enabled, correct?
> 

OK Thanks, Do you know if there is an active maintainer for this driver?
Else I will need someone that can test patches for me.

Boaz


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-22  9:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-21 19:06 isd200.c Has fatal bugs and is probably not used any more Boaz Harrosh
2007-08-21 20:24 ` Doug Maxey
2007-08-22  9:18   ` Boaz Harrosh
2007-08-22  8:42 ` Björn Stenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).