From d5ddb48efffc30a87beca3a94ad7609f1bbebb98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dav=C3=AD=C3=B0=20Steinn=20Geirsson?= Date: Thu, 26 Mar 2026 00:18:47 +0000 Subject: [PATCH] fix: use correct RET_UNLINK status codes matching kernel behavior The CMD_UNLINK handler returned -EINVAL for devid mismatch and -ENOENT for not-found URBs, but the Linux kernel's stub_recv_cmd_unlink() returns status 0 in both cases. Non-standard status codes could confuse the host kernel's vhci_hcd driver. Fixes 64 fuzzer crash artifacts across fuzz_urb_hid and fuzz_urb_cdc targets. Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/src/lib.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 3c2e087..ac25d99 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -576,6 +576,9 @@ pub async fn handle_urb_loop { @@ -618,10 +621,12 @@ pub async fn handle_urb_loop {