Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-16756

Assertion failure 'CurrentOffset + ReportSize < CollectionContext->Size' with FDSStick USB device

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Drivers: USB
    • Labels:
      None

      Description

      Pie-jacker875 reports that the device from https://3dscapture.com/fdsstick/ causes this assert when plugged in.

      *** Assertion failed: CurrentOffset + ReportSize < CollectionContext->Size
      ***   Source File: /srv/buildbot/worker_data/Build_GCCLin_x86/build/sdk/lib/drivers/hidparser/context.c, line 138
       
      Break repeatedly, break Once, Ignore, terminate Process or terminate Thread (boipt)? 
      kdb:> bb
      Execute '.cxr F75A54EC' to dump context
       
      Entered debugger on embedded INT3 at 0x0008:0x809571e2.
      kdb:> b
      Command 'b' is unknown.
      kdb:> bt
      Eip:
      <ntoskrnl.exe:1571e3 (sdk/lib/rtl/i386/debug_asm.S:34 (DbgBreakPoint))>
      Frames:
      <hidparse.sys:3ed1 (sdk/lib/drivers/hidparser/context.c:138 (HidParser_StoreCollection))>
      <hidparse.sys:3fea (sdk/lib/drivers/hidparser/context.c:204 (HidParser_BuildCollectionContext))>
      <hidparse.sys:54bb (sdk/lib/drivers/hidparser/parser.c:1347 (HidParser_BuildContext))>
      <hidparse.sys:28df (sdk/lib/drivers/hidparser/hidparser.c:123 (HidParser_GetCollectionDescription))>
      <hidparse.sys:1227 (sdk/lib/drivers/hidparser/hidp.c:92 (HidP_GetCollectionDescription))>
      <hidclass.sys:1a16 (drivers/hid/hidclass/fdo.c:446 (HidClassFDO_StartDevice))>
      <hidclass.sys:1e7d (drivers/hid/hidclass/fdo.c:653 (HidClassFDO_PnP))>
      <hidclass.sys:3a07 (drivers/hid/hidclass/hidclass.c:1162 (HidClass_PnP))>
      <hidclass.sys:3b9d (drivers/hid/hidclass/hidclass.c:1236 (HidClassDispatch))>
      <ntoskrnl.exe:729d0 (ntoskrnl/io/iomgr/irp.c:1286 (IofCallDriver))>
      <ntoskrnl.exe:7aee6 (ntoskrnl/io/pnpmgr/pnpmgr.c:1508 (IopSynchronousCall))>
      <ntoskrnl.exe:8038c (ntoskrnl/io/pnpmgr/pnpmgr.c:810 (IopStartDevice2))>
      <ntoskrnl.exe:7fb56 (ntoskrnl/io/pnpmgr/pnpmgr.c:864 (IopStartAndEnumerateDevice))>
      <ntoskrnl.exe:7ff43 (ntoskrnl/io/pnpmgr/pnpmgr.c:936 (IopStartDevice))>
      <ntoskrnl.exe:7a3b1 (ntoskrnl/io/pnpmgr/pnpinit.c:365 (PipCallDriverAddDevice))>
      <ntoskrnl.exe:806e6 (ntoskrnl/io/pnpmgr/pnpmgr.c:3118 (IopActionInitChildServices))>
      <ntoskrnl.exe:7b266 (ntoskrnl/io/pnpmgr/pnpmgr.c:1574 (IopTraverseDeviceTreeNode))>
      <ntoskrnl.exe:7b29c (ntoskrnl/io/pnpmgr/pnpmgr.c:1592 (IopTraverseDeviceTreeNode))>
      <ntoskrnl.exe:7b300 (ntoskrnl/io/pnpmgr/pnpmgr.c:1623 (IopTraverseDeviceTree))>
      <ntoskrnl.exe:7b605 (ntoskrnl/io/pnpmgr/pnpmgr.c:3163 (IopInitializePnpServices))>
      <ntoskrnl.exe:7f65d (ntoskrnl/io/pnpmgr/pnpmgr.c:2843 (IopEnumerateDevice))>
      <ntoskrnl.exe:7f96b (ntoskrnl/io/pnpmgr/pnpmgr.c:5181 (IoSynchronousInvalidateDeviceRelations))>
      <ntoskrnl.exe:7fa38 (ntoskrnl/io/pnpmgr/pnpmgr.c:1073 (IopDeviceActionWorker))>
      <ntoskrnl.exe:40ab3 (ntoskrnl/ex/work.c:162 (ExpWorkerThreadEntryPoint))>
      <ntoskrnl.exe:11d5a4 (ntoskrnl/ps/thread.c:156 (PspSystemThreadStartup))>
      

      HID descriptor dump for the device:

      $ lsusb                            
      Bus 001 Device 006: ID 16d0:0aaa MCS FDSStick
      $ usbhid-dump -m 16d0:0aaa
      001:006:000:DESCRIPTOR         1584634817.536848
       06 00 FF 09 01 A1 01 15 00 25 FF 75 08 85 01 09
       01 95 FF B1 00 85 02 09 01 95 FF B1 00 85 03 09
       01 95 3F B1 00 85 04 09 01 95 08 B1 00 85 05 09
       01 96 05 01 B1 00 85 06 09 01 95 03 B1 00 85 07
       09 01 95 3F B1 00 85 08 09 01 96 00 02 B1 00 85
       09 09 01 96 00 02 B1 00 85 10 09 01 95 01 B1 00
       85 11 09 01 95 FF B1 00 85 12 09 01 95 FF 91 02
       85 20 09 01 95 01 B1 00 85 21 09 01 95 01 B1 00
       85 22 09 01 96 00 01 91 02 85 23 09 01 95 20 B1
       00 85 F0 09 01 95 01 B1 00 85 F1 09 01 95 01 B1
       00 C0
      

        Attachments

          Activity

            People

            • Assignee:
              ThFabba ThFabba
              Reporter:
              ThFabba ThFabba
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: