From mboxrd@z Thu Jan 1 00:00:00 1970 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 15A073AA4E0; Tue, 16 Jun 2026 16:46:47 +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=1781628408; cv=none; b=Cm+TDGqqEGOEUl2dfi/oMAQ3oM2p3l4gKeMYIwHoHyLX+Z0vH8NWOiwHSDH1Ru5V+jtPUK6AHRNAjfDbTAPjmrrFOw9CPmDZGUBbsdF9kcMFaiBb8tkgMmiA/q9coVvvTIpQY1yNmmGUinSHycQMYHQkD/y9YfENVmlCfe/DAcU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781628408; c=relaxed/simple; bh=ZcCXVef63DMOjruzRqekqF0ancMhpRqxrY7vas+pufk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bXJGSHh4QFxGIv5T1EQl/tpUnkDJH47WVFcpgvgUYyQy/NR7JHXPATWB5JwhLEjRBy6nUmlXI5HRv2JTfI6HFcB3FPcwCAVR8a1vF4lhesSolAHlyULL2SRkCzq1c/pa9GVAIsa4theggQcqG3mNKKp8CplozXAcX2iOXiI6sko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HAe95u07; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HAe95u07" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25B921F000E9; Tue, 16 Jun 2026 16:46:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1781628407; bh=+4g906yQK1kCSo3FXGKKL/oCcNNv0KGE+UdZFUpaW9w=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=HAe95u07a9C7EQ8sdT23uBN2AjOldraoiDTCdPznzHEcu04aL2GS8zbwplU81Y3uW 5HWe6aC9g3A2cc7YgUoyf2Oxc72IGNkSpNR2/ubuJpE7QeiyG1fybcQHgBvWABHlEZ gIDVa5/2vtXIJF3J9m9qi/RHhIN3+6Hut9U8JF18= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, syzbot+11f0e4f957c7c3bf3d51@syzkaller.appspotmail.com, Henri A , Sean Young , Hans Verkuil Subject: [PATCH 6.6 090/452] media: rc: igorplugusb: fix control request setup packet Date: Tue, 16 Jun 2026 20:25:17 +0530 Message-ID: <20260616145122.566996907@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260616145117.796205997@linuxfoundation.org> References: <20260616145117.796205997@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Henri A commit 171022c7d594c133a45f92357a2a91475edabe20 upstream. Commit eac69475b01f ("media: rc: igorplugusb: heed coherency rules") changed the control request storage from an embedded struct to an allocated pointer so it can obey DMA coherency rules. However, the driver still passes &ir->request to usb_fill_control_urb(). That points the URB setup packet at the pointer field itself rather than at the allocated struct usb_ctrlrequest. USB core then interprets pointer bytes as the setup packet. This can produce an invalid bRequestType and trigger the control direction warning reported by syzbot: usb 2-1: BOGUS control dir, pipe 80003580 doesn't match bRequestType 0 Pass ir->request itself as the setup packet. Fixes: eac69475b01f ("media: rc: igorplugusb: heed coherency rules") Reported-by: syzbot+11f0e4f957c7c3bf3d51@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=11f0e4f957c7c3bf3d51 Tested-by: syzbot+11f0e4f957c7c3bf3d51@syzkaller.appspotmail.com Cc: stable@vger.kernel.org Assisted-by: Codex:GPT-5.5 Signed-off-by: Henri A Signed-off-by: Sean Young Signed-off-by: Hans Verkuil Signed-off-by: Greg Kroah-Hartman --- drivers/media/rc/igorplugusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/rc/igorplugusb.c +++ b/drivers/media/rc/igorplugusb.c @@ -184,7 +184,7 @@ static int igorplugusb_probe(struct usb_ if (!ir->buf_in) goto fail; usb_fill_control_urb(ir->urb, udev, - usb_rcvctrlpipe(udev, 0), (uint8_t *)&ir->request, + usb_rcvctrlpipe(udev, 0), (uint8_t *)ir->request, ir->buf_in, MAX_PACKET, igorplugusb_callback, ir); usb_make_path(udev, ir->phys, sizeof(ir->phys));