[Bug]: Host BSOD 0xCA PNP_DETECTED_FATAL_ERROR in VBoxUSBMon during USB hot-plug

Đang mở
#958 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 6 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c
Lĩnh vực
backend, operating-systems

Hướng nghiên cứu

Start by reviewing the attached WinDbg report and the related issue #927, then trace the VBoxUSBMon.sys path around the reported offset and its call to IoGetDevicePropertyData. Reproduce USB hot-plug on a Windows 11 host with VBoxUSBMon enabled and inspect the device object lifecycle. Done means hot-plug no longer causes PNP_DETECTED_FATAL_ERROR (0xCA), including with the reported hub and devices.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
Version

7.2.22

Host OS Type

Windows

Host OS name + version

Windows 11 Enterprise 24H2, Build 26100.x

Host Architecture

x86

Guest OS Type

Linux

Guest Architecture

x86

Guest OS name + version

Ubuntu 24.04 LTS

Component

USB and Serial Ports

What happened?

This appears closely related to #927.

Unlike the original report, I reproduced the issue with VirtualBox 7.2.22 and different USB devices. Disabling VBoxUSBMon prevents reproduction so far.

WinDbg_VBox_7.2.22.txt

The Windows host reproducibly crashes during USB hot-plug with:

PNP_DETECTED_FATAL_ERROR (0xCA), Arg1 0x2 (Invalid PDO)

The crashes occurred when connecting different USB devices (USB-UART and USB-Ethernet) through a Lenovo ThinkVision USB hub / Lenovo docking station.

WinDbg reports:

IMAGE_NAME: VBoxUSBMon.sys
SYMBOL_NAME: VBoxUSBMon+3dc3
FAILURE_BUCKET_ID: 0xCA_2_VBoxUSBMon!unknown_function

Relevant stack:

nt!KeBugCheckEx
nt!IoGetDevicePropertyData+0x9b
VBoxUSBMon+0x3dc3

The affected device object belongs to:

\Driver\USBHUB3

The same failure was previously reproduced with VirtualBox 7.2.14. Updating to 7.2.22 did not resolve it.

As an A/B test, I disabled VBoxUSBMon and rebooted. I then repeatedly connected and disconnected the same USB devices through the ThinkVision USB hub and docking station without another crash.

Expected behavior: USB hot-plug on the Windows host must not cause a host OS bugcheck, regardless of whether VirtualBox is running.

How can we reproduce this?
  1. Run VirtualBox 7.2.22 on a Windows 11 Enterprise 24H2 host, Build 26100.x.
  2. Ensure VBoxUSBMon is enabled and running.
  3. Connect the host through a docking station / monitor with an integrated USB hub.
  4. Start a VirtualBox VM.
  5. Hot-plug a USB device, e.g. USB-Ethernet or USB-UART, into the downstream USB hub.
  6. The Windows host may crash with PNP_DETECTED_FATAL_ERROR (0xCA), Arg1 0x2.
  7. WinDbg !analyze -v identifies VBoxUSBMon.sys.

Workaround / A/B test:

sc.exe config VBoxUSBMon start= disabled

After rebooting, VBoxUSBMon reports Stopped / Disabled. The same USB hot-plug operations have not reproduced the crash so far.

Re-enabling VBoxUSBMon is therefore currently avoided.

Did you upload all of your necessary log files, screenshots, etc.?
  • Yes, I've uploaded all pertinent files to this issue.
Ngôn ngữ chính
C
Star
1.4k
Fork
219
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của VirtualBox/virtualbox

Tất cả issue của VirtualBox/virtualbox

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.