Bug in Win 2k3 SP2 StorPort.sys

I believe there is a bug in Windows 2003 SP2 StorPort.sys. It appears
that it is failing the IOCTL_SCSI_GET_INQUIRY_DATA call if the number of
busses is >= 8. I believe that the test should be > 8.

Or … was there some reason this restriction was added?

Hopefully someone from Microsoft could address this.

Thanks,

Jerry.

have you debugged storport.sys to find out that it really fails for >= 8 ??
it seems, it doesnt check number of buses - only size of input data buffer; what error code DeviceIoControl returned?

wrote in message news:xxxxx@ntdev…

I believe there is a bug in Windows 2003 SP2 StorPort.sys. It appears that it is failing the IOCTL_SCSI_GET_INQUIRY_DATA call if the number of busses is >= 8. I believe that the test should be > 8.

Or … was there some reason this restriction was added?

Hopefully someone from Microsoft could address this.

Thanks,

Jerry.

It returns 0xC0000010, STATUS_INVALID_DEVICE_REQUEST.

Yes we have debugged StorPort.sys. Here’s the sequence.

storport!RaidAdapterScsiGetInquiryDataIoctl+0x36:
f727e888 0fb68f00010000 movzx ecx,byte ptr [edi+100h]
f727e88f 83f908 cmp ecx,8
f727e892 8b474c mov eax,dword ptr [edi+4Ch]
f727e895 894df8 mov dword ptr [ebp-8],ecx
f727e898 7210 jb
storport!RaidAdapterScsiGetInquiryDataIoctl+0x58 (f727e8aa)
f727e89a 8d4de0 lea ecx,[ebp-20h]
f727e89d ff1548b028f7 call dword ptr
[storport!_imp_KeReleaseInStackQueuedSpinLock (f728b048)]
f727e8a3 68100000c0 push 0C0000010h
f727e8a8 eb29 jmp
storport!RaidAdapterScsiGetInquiryDataIoctl+0x81 (f727e8d3)

When we change the driver to set ConfigInfo->NumberOfBuses to less than 8,
things work fine - the jb takes and the call succeeds.

Jerry.

“Petr Kurtin”
Sent by: xxxxx@lists.osr.com
09/27/2007 04:02 PM
Please respond to
“Windows System Software Devs Interest List”

To
“Windows System Software Devs Interest List”
cc

Subject
Re:[ntdev] Bug in Win 2k3 SP2 StorPort.sys

have you debugged storport.sys to find out that it really fails for >= 8
??
it seems, it doesnt check number of buses - only size of input data
buffer; what error code DeviceIoControl returned?

wrote in message news:xxxxx@ntdev…

I believe there is a bug in Windows 2003 SP2 StorPort.sys. It appears
that it is failing the IOCTL_SCSI_GET_INQUIRY_DATA call if the number of
busses is >= 8. I believe that the test should be > 8.

Or … was there some reason this restriction was added?

Hopefully someone from Microsoft could address this.

Thanks,

Jerry.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer