milos-linux/drivers/media/rc
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
..
img-ir media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
keymaps
ati_remote.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
bpf-lirc.c
ene_ir.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
ene_ir.h
fintek-cir.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
fintek-cir.h
gpio-ir-recv.c media: Remove redundant pm_runtime_mark_last_busy() calls 2025-08-18 09:55:08 +02:00
gpio-ir-tx.c media: lirc: increase IR_MAX_DURATION to send extended code sequences 2026-03-17 14:43:57 +01:00
igorplugusb.c media: rc: igorplugusb: fix control request setup packet 2026-05-30 18:21:47 +02:00
iguanair.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
imon.c media: imon: drop redundant device references 2026-03-17 14:43:57 +01:00
imon_raw.c
ir-hix5hd2.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
ir-imon-decoder.c
ir-jvc-decoder.c
ir-mce_kbd-decoder.c
ir-nec-decoder.c
ir-rc5-decoder.c
ir-rc6-decoder.c
ir-rcmm-decoder.c
ir-sanyo-decoder.c
ir-sharp-decoder.c
ir-sony-decoder.c
ir-spi.c media: rc: ir-spi: avoid overflow in multiplication 2025-06-23 12:11:04 +02:00
ir-xmp-decoder.c
ir_toy.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
ite-cir.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
ite-cir.h
Kconfig
lirc_dev.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Makefile
mceusb.c media: mceusb: drop redundant device reference 2026-03-17 14:43:57 +01:00
meson-ir-tx.c
meson-ir.c
mtk-cir.c
nuvoton-cir.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
nuvoton-cir.h
pwm-ir-tx.c media: pwm-ir-tx: Avoid direct access to hrtimer clockbase 2025-09-09 12:27:18 +02:00
rc-core-priv.h
rc-ir-raw.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
rc-loopback.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
rc-main.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
redrat3.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
serial_ir.c
st_rc.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
streamzap.c media: rc: streamzap: Error handling in probe 2026-03-17 14:43:56 +01:00
sunxi-cir.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
ttusbir.c media: rc: ttusbir: fix inverted error logic 2026-05-04 08:33:39 +02:00
winbond-cir.c media: rc: fix race between unregister and urb/irq callbacks 2026-03-17 14:43:56 +01:00
xbox_remote.c media: rc: xbox_remote: heed DMA restrictions 2026-03-17 14:43:57 +01:00