daynix / UsbDk

Usb Drivers Development Kit for Windows
Apache License 2.0
547 stars 143 forks source link

Crash when plugging in mobile devices through USB-C port #133

Open DXGatech opened 21 hours ago

DXGatech commented 21 hours ago

Has occurred with both iOS and Android systems connecting to Windows with UsbDk's newest version. Here's the relevant stack trace:

First, UsbDk accesses memory with HvpGetCellPaged kernel function:

fffff681`c9d7f100 ffff8006`93f6e210 : UsbDk+0xf6c9
nt!NtQueryValueKey+0x56b
nt!CmQueryValueKey+0x2aa
nt!CmpFindNameInListFromIndex+0xc3
nt!HvpGetCellPaged+0xa2

Windows then executes the registry module to read from that address:

PROCESS_NAME:  Registry
TRAP_FRAME: fffff681c9d7e880
nt!HvpGetCellPaged+0xa2:
fffff804`37297272 8b0417  mov eax,dword ptr [rdi+rdx]

This results in an IRQL mismatch error:

IRQL_NOT_LESS_OR_EQUAL (a)
Arguments:
Arg1: ffff90831c6cf068 - memory referenced
Arg2: 0000000000000002 - IRQL
Arg3: 0000000000000000 - bitfield (read operation)
Arg4: fffff80437297272 - faulting instruction address

UsbDk then crashes when executing an unknown function.

CopyFAILURE_BUCKET_ID:  AV_UsbDk!unknown_function
READ_ADDRESS: ffff90831c6cf068

Running on the latest version of Windows 11 Pro. Please notify if I need to send hardware info

ybendito commented 14 hours ago

@DXGatech Probably you already have the kernel dump (not a minidump) of the crash. Can you please zip it and share with us via some file storage like google drive/dropbox? Thanks,