Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9BDE2DF3EA for ; Fri, 31 Jul 2026 07:54:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785484476; cv=none; b=lxrM3wECDzkhM45JHLtTcaiciBUAQbFYE+m5CVXgYoST5aS2u5+5kh3yjannF6lCX12rzZADB65mFCasOAG3AssyF+za7eCchkHSHEbDlIGSpaYq8vxq8MSkRF+4h/PFDa2q9n2tr8I3F9yhAoWh3Z6fENZy2+yS2UJ+9+kR4jI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785484476; c=relaxed/simple; bh=ZYNr000EgSm/D2i1JnFciLKL1KSFzRIRRkpIPhj5bdU=; h=From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type:Date; b=kpzyEJriJLRLXbBzF1gfXgYSNCQ0i5UpOKLiI9BZMapQjAcagOWVNeaKyKGDqfrezGDGNFnljt/Cmit+oWlUNNsHXq3Z2wcfHUa7jJWWdgidilFidioMM16MUvt0ac0glhsGupXnOwXR/oK+5yNkx396b/cZyt8fpIpVlD1Ph4E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IBFXJ1r+; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IBFXJ1r+" Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 5D7601F000E9; Fri, 31 Jul 2026 07:54:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1785484474; bh=06X0rwztBYWS/fmp9M9iYq/RSesKbmPaJYwHKWIcXMg=; h=From:To:Cc:Subject:Date; b=IBFXJ1r+HXicU9GI1pGAfScH9MHwkf0LD7kuSJlUuifx8RF4VqLU17YG1jFfWzW2n sIL1doO+86aMlelq+Z/B0OVPFqLVloOwF0+wzGfRDCekSUyl756LcND9PxKaAeUF/D PxCBUbswL6mwpLnQ1HN0hj/y9vq8YyBykRY8K/rzHUVPzaRKWOJo++7kXQQbijYiPq CyWYOjclgTCV4TUX82tsJmjLG5Cw1b838FfRpRYI3smzfpFt1aSlJ7Y7KdLXMweJn+ JHvrzooUa8w1nsL8fvi0etDB9d16DAAarHqvIHnQ0ZeXziUSmK507n5xzX+o5Nuqo4 Ah0vmXlC2NBGQ== From: "syzbot" To: syzkaller-upstream-moderation@googlegroups.com Cc: syzbot@lists.linux.dev Subject: [PATCH RFC] usb: atm: cxacru: properly kill rcv_urb on error in cxacru_cm() Message-ID: <19c83890-3da4-471c-bbca-8d873b803586@mail.kernel.org> Precedence: bulk X-Mailing-List: syzbot@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Fri, 31 Jul 2026 07:54:34 +0000 (UTC) If cxacru_cm() encounters an error while submitting or waiting for snd_urb, it aborts and returns the error without killing the already submitted rcv_urb. This leaves the rcv_urb active. When this happens during initialization (e.g., in cxacru_atm_start()), the driver may ignore the error and proceed to call cxacru_poll_status(), which invokes cxacru_cm() again. Attempting to submit the still-active rcv_urb triggers a warning in usb_submit_urb(): cxacru 1-1:1.0: send of cm 0x84 failed (-104) ATM dev 0: cxacru_atm_start: CHIP_ADSL_LINE_START returned -104 ------------[ cut here ]------------ URB ffff88812658d200 submitted while active WARNING: drivers/usb/core/urb.c:379 at usb_submit_urb+0x79/0x18b0 drivers/usb/core/urb.c:379 ... Call Trace: cxacru_cm+0x21a/0xf10 drivers/usb/atm/cxacru.c:631 cxacru_cm_get_array drivers/usb/atm/cxacru.c:722 [inline] cxacru_poll_status+0x178/0x1110 drivers/usb/atm/cxacru.c:828 cxacru_atm_start+0x185/0x360 drivers/usb/atm/cxacru.c:814 usbatm_atm_init+0x144/0x3a0 drivers/usb/atm/usbatm.c:927 usbatm_usb_probe+0x15cb/0x1db0 drivers/usb/atm/usbatm.c:1178 cxacru_usb_probe+0x17f/0x220 drivers/usb/atm/cxacru.c:1370 ... To fix this, ensure that rcv_urb is properly killed if cxacru_cm() aborts early. We can safely call usb_kill_urb() on rcv_urb in the error path, as it is safe to call even if the URB is not active (e.g., if it failed to submit in the first place, or if it already completed). Fixes: 1b0e61465234 ("[PATCH] USB ATM: driver for the Conexant AccessRunner chipset cxacru") Assisted-by: Gemini:gemini-3.5-flash Gemini:gemini-3.1-pro-preview syzbot Reported-by: syzbot+c9dff578c3a41775176a@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=c9dff578c3a41775176a Link: https://syzkaller.appspot.com/ai_job?id=75fec6f2-c8a6-43b1-b184-4d26baba86cc To: "Chas Williams" <3chas3@gmail.com> To: To: "Greg Kroah-Hartman" To: To: To: To: "Duncan Sands" Cc: --- diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c index f1900c567..429ac20a8 100644 --- a/drivers/usb/atm/cxacru.c +++ b/drivers/usb/atm/cxacru.c @@ -700,6 +700,8 @@ static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm, ret = offd; usb_dbg(instance->usbatm, "cm %#x\n", cm); fail: + if (ret < 0) + usb_kill_urb(instance->rcv_urb); mutex_unlock(&instance->cm_serialize); err: return ret; base-commit: f5098b6bae761e346ebcd9da7f95622c04733cff -- This is an AI-generated patch subject to moderation. Reply with '#syz upstream' to Sign-off the patch as a human author and send it to the upstream kernel mailing lists. Reply with '#syz reject' to reject it ('#syz unreject' to undo). See https://goo.gle/syzbot-ai-patches for information about AI-generated patches. You can comment on the patch as usual, syzbot will try to address the comments and send a new version of the patch if necessary. syzbot engineers can be reached at syzkaller@googlegroups.com.