Skip to contentSkip to conversation

media: rc: igorplugusb: fix control request setup packet

PATCH In review Henri A 1 participant 2 messages May 20 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

Henri A

author
#0 lore raw

PATCH 1/1 media: rc: igorplugusb: fix control request setup packet

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 [email protected]
Assisted-by Codex:GPT-5.5
---
 drivers/media/rc/igorplugusb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/rc/igorplugusb.c +1 -1
index 3e10f6fe8..b5117ee9f 100644
@@ -184,7 +184,7 @@ static int igorplugusb_probe(struct usb_interface *intf,
 	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));
Signature · 1 line
2.43.0

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#2 lore raw

Hi,

I checked the failed static job log, and it appears to be a GitLab runner/container infrastructure failure rather than a patch failure:

ERROR: Job failed (system failure): waiting for container:
error during connect: Post "http://internal.tunnel.invalid/..." ssh tunnel: read tcp ...: read: connection reset by peer

The same log also shows failures to inspect/pull/remove containers and clean up volumes. I do not see a static-analysis diagnostic pointing to the patch or to a source file/line.

Could the static job be rerun, or could you point me to the specific patch-related issue if I missed it?

Thanks,
Henri

From: Patchwork Integration <[email protected]>
To: "Henri A"<[email protected]>
Date: Wed, 20 May 2026 12:14:56 -0400
Subject: Re: media: rc: igorplugusb: fix control request setup packet

Quoted 27 lines

Dear Henri A:

Thanks for your patches! Unfortunately the Media CI robot detected some issues:

Please fix your series, and upload a new version. If you have a patchwork account, do not forget to mark the current series as Superseded.

For more details, check the full report at:
https://linux-media.pages.freedesktop.org/-/users/patchwork/-/jobs/100353082/artifacts/report.htm .

Best regards, and Happy Hacking!
Media CI robot on behalf of the linux-media community.

---
Check the latest rules for contributing your patches at:
https://docs.kernel.org/driver-api/media/maintainer-entry-profile.html

If you believe that the CI is wrong, kindly open an issue at
https://gitlab.freedesktop.org/linux-media/media-ci/-/issues or reply-all to this message.