mirror-linux/drivers/media
Henri A 171022c7d5 media: rc: igorplugusb: fix control request setup packet
Commit eac69475b0 ("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: eac69475b0 ("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 <contact@henrialfonso.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
2026-05-30 18:21:47 +02:00
..
cec media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
common media: uvcvideo: Add support for P010 pixel format 2026-03-25 09:40:28 +01:00
dvb-core [GIT PULL for v7.0-rc3] media fixes 2026-03-04 08:12:06 -08:00
dvb-frontends media: m88ds3103: Implement 3103c chip support 2026-03-25 18:27:25 +01:00
firewire Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
i2c [GIT PULL for v7.1] media updates 2026-04-15 08:32:10 -07:00
mc media: mc, v4l2: serialize REINIT and REQBUFS with req_queue_mutex 2026-03-18 11:21:31 +01:00
mmc Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pci media: cx23885: Module option to disable analog video 2026-03-25 18:27:25 +01:00
platform Revert "media: renesas: vsp1: brx: Fix format propagation" 2026-05-29 13:32:05 +02:00
radio Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
rc media: rc: igorplugusb: fix control request setup packet 2026-05-30 18:21:47 +02:00
spi Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
test-drivers media: vidtv: Use crc32_be() instead of open coding 2026-03-25 18:27:25 +01:00
tuners media: si2157: Include support for si2177 chip 2026-03-25 18:27:25 +01:00
usb [GIT PULL for v7.1] media updates 2026-04-15 08:32:10 -07:00
v4l2-core [GIT PULL for v7.1] media updates 2026-04-15 08:32:10 -07:00
Kconfig
Makefile