Windows driver framework(WDF): For USB2 SecurityProtocolIn command fails with USBD_STATUS_CANCELLED

Veeresh Koninti 0 Reputation points
2024-05-23T10:18:40.32+00:00

Drive is enumerated in USB 2.0 speed with UAS mode using windows driver.

Scenario:

In the test execution, drive is remotely power-cycled and performs sequential write and read USB command execution. Test has run for close to 62 hours and after 40th power cycle drive, Security IN command is executed from the test. It fails with USBD_STATUS_CANCELLED error. This is followed by a task management function(TMIU) LunReset and IT_Nexus Reset. Windows driver has sent these TMIU's and receives Task Management Not Supported response.

Sequence of packets in wireshark:

  1. SecurityProtocolIn StatusRequest URB for SenseIU
  2. SecurityProtocolIn StatusRequest URB for ReadReadyIU
  3. SecurityProtocolIn Request for CmdIU(Tag 2)
  4. TMIU LunReset ResponseRequest URB for ResponseIU
  5. TMIU LunReset Request(Tag 3)
  6. SecurityProtocolIn Request for CmdIU is acknowledged with USBD_STATUS_CANCELLED
  7. SecurityProtocolIn StatusRequest URB for ReadReady is acknowledged with USBD_STATUS_CANCELLED
  8. SecurityProtocolIn StatusRequest URB for SenseBuffer is acknowledged with USBD_STATUS_CANCELLED
  9. TMIU LunReset ResponseRequest URB for ResponseIU is acknowledged with USBD_STATUS_CANCELLED
  10. TMIU LunReset Request is acknowledged with USBD_STATUS_CANCELLED
  11. TMIU IT_Nexus_Reset ResponseRequest URB for ResponseIU
  12. TMIU IT_Nexus_Reset Request(Tag 2)
  13. TMIU IT_Nexus_Reset Request is acknowledged successfully
  14. TMIU IT_Nexus_Reset ResponseRequest URB for ResponseIU is acknowledged successfully and the TMIU Response indicates TASK MANAGEMENT FUNCTION NOT SUPPORTED.(Response IU: 04 00 00 02 00 00 00 04)

Queries:

  1. Why did SecurityProtocolIn command fail with USBD_STATUS_CANCELLED error?
  2. Why did windows driver send Task Management IU for Lun Reset and IT Nexus Reset?
  3. Why did LUN Reset also fail with USBD_STATUS_CANCELLED error?
  4. Why does windows driver not expose APIs for invoking Task Management Functions?
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,946 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,618 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
30 questions
0 comments No comments
{count} votes