[v5.15] WARNING in smsusb_start_streaming/usb_submit_urb

3 views
Skip to first unread message

syzbot

unread,
May 16, 2025, 2:28:43 PM5/16/25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3b8db0e4f263 Linux 5.15.182
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1169c2d4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f93aaf95aed43225
dashboard link: https://syzkaller.appspot.com/bug?extid=8152461df0aa6ce1b88e
compiler: Debian clang version 20.1.2 (++20250402124445+58df0ef89dd6-1~exp1~20250402004600.97), Debian LLD 20.1.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/4b5fc99635e8/disk-3b8db0e4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/5351a5e4c264/vmlinux-3b8db0e4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/e022b133e1a6/bzImage-3b8db0e4.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+815246...@syzkaller.appspotmail.com

smsusb:siano_media_device_register: media controller created
------------[ cut here ]------------
usb 6-1: BOGUS urb xfer, pipe 3 != type 1
WARNING: CPU: 1 PID: 4244 at drivers/usb/core/urb.c:503 usb_submit_urb+0xc81/0x1980 drivers/usb/core/urb.c:502
Modules linked in:
CPU: 1 PID: 4244 Comm: kworker/1:7 Not tainted 5.15.182-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Workqueue: usb_hub_wq hub_event
RIP: 0010:usb_submit_urb+0xc81/0x1980 drivers/usb/core/urb.c:502
Code: 8a 4c 89 f0 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 09 09 00 00 45 8b 06 48 c7 c7 40 60 a4 8a 48 89 ee 4c 89 e2 e8 2f 91 c7 03 <0f> 0b 44 8b 64 24 3c 8b 6c 24 30 44 0f b6 74 24 08 4c 89 f7 48 c7
RSP: 0018:ffffc9000466ebc0 EFLAGS: 00010246
RAX: ea8fad5bfe4f4000 RBX: ffff888073ee2030 RCX: 0000000000100000
RDX: ffffc90015001000 RSI: 0000000000038c60 RDI: 0000000000038c61
RBP: ffffffff8aa4c9c0 R08: dffffc0000000000 R09: ffffed10172267a8
R10: ffffed10172267a8 R11: 1ffff110172267a7 R12: ffff888052262b90
R13: dffffc0000000000 R14: ffffffff8aa45e2c R15: ffff8880617bd0f8
FS: 0000000000000000(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000538ca000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
smsusb_submit_urb drivers/media/usb/siano/smsusb.c:173 [inline]
smsusb_start_streaming+0x2d4/0x540 drivers/media/usb/siano/smsusb.c:197
smsusb_init_device drivers/media/usb/siano/smsusb.c:472 [inline]
smsusb_probe+0x1607/0x1d10 drivers/media/usb/siano/smsusb.c:569
usb_probe_interface+0x5a0/0xaf0 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x284/0xc80 drivers/base/dd.c:595
__driver_probe_device+0x18c/0x330 drivers/base/dd.c:755
driver_probe_device+0x4f/0x420 drivers/base/dd.c:785
__device_attach_driver+0x2b0/0x500 drivers/base/dd.c:907
bus_for_each_drv+0x175/0x200 drivers/base/bus.c:429
__device_attach+0x29b/0x460 drivers/base/dd.c:979
bus_probe_device+0xbc/0x1e0 drivers/base/bus.c:489
device_add+0xa00/0xfb0 drivers/base/core.c:3412
usb_set_configuration+0x1991/0x1fd0 drivers/usb/core/message.c:2165
usb_generic_driver_probe+0x89/0x150 drivers/usb/core/generic.c:238
usb_probe_device+0x139/0x270 drivers/usb/core/driver.c:293
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x284/0xc80 drivers/base/dd.c:595
__driver_probe_device+0x18c/0x330 drivers/base/dd.c:755
driver_probe_device+0x4f/0x420 drivers/base/dd.c:785
__device_attach_driver+0x2b0/0x500 drivers/base/dd.c:907
bus_for_each_drv+0x175/0x200 drivers/base/bus.c:429
__device_attach+0x29b/0x460 drivers/base/dd.c:979
bus_probe_device+0xbc/0x1e0 drivers/base/bus.c:489
device_add+0xa00/0xfb0 drivers/base/core.c:3412
usb_new_device+0xd53/0x1640 drivers/usb/core/hub.c:2604
hub_port_connect drivers/usb/core/hub.c:5467 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5607 [inline]
port_event drivers/usb/core/hub.c:5753 [inline]
hub_event+0x295c/0x4fa0 drivers/usb/core/hub.c:5835
process_one_work+0x863/0x1000 kernel/workqueue.c:2310
worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457
kthread+0x436/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
May 16, 2025, 3:19:35 PM5/16/25
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3b8db0e4f263 Linux 5.15.182
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1555c2d4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f93aaf95aed43225
dashboard link: https://syzkaller.appspot.com/bug?extid=8152461df0aa6ce1b88e
compiler: Debian clang version 20.1.2 (++20250402124445+58df0ef89dd6-1~exp1~20250402004600.97), Debian LLD 20.1.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16eb76f4580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=166796f4580000
usb 1-1: Manufacturer: syz
usb 1-1: config 0 descriptor??
smsusb:smsusb_probe: board id=9, interface number 0
smsusb:siano_media_device_register: media controller created
------------[ cut here ]------------
usb 1-1: BOGUS urb xfer, pipe 3 != type 1
WARNING: CPU: 0 PID: 4171 at drivers/usb/core/urb.c:503 usb_submit_urb+0xc81/0x1980 drivers/usb/core/urb.c:502
Modules linked in:
CPU: 0 PID: 4171 Comm: kworker/0:3 Not tainted 5.15.182-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Workqueue: usb_hub_wq hub_event
RIP: 0010:usb_submit_urb+0xc81/0x1980 drivers/usb/core/urb.c:502
Code: 8a 4c 89 f0 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 09 09 00 00 45 8b 06 48 c7 c7 40 60 a4 8a 48 89 ee 4c 89 e2 e8 2f 91 c7 03 <0f> 0b 44 8b 64 24 3c 8b 6c 24 30 44 0f b6 74 24 08 4c 89 f7 48 c7
RSP: 0018:ffffc90002dfebc0 EFLAGS: 00010246
RAX: 5a9eee5710803e00 RBX: ffff888079b78030 RCX: ffff888079ded940
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffffff8aa4c9c0 R08: dffffc0000000000 R09: fffff520005bfcdd
R10: fffff520005bfcdd R11: 1ffff920005bfcdc R12: ffff88802b2e60a0
R13: dffffc0000000000 R14: ffffffff8aa45e2c R15: ffff8880730560f8
FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055fda43215a0 CR3: 000000002a42a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
smsusb_submit_urb drivers/media/usb/siano/smsusb.c:173 [inline]
smsusb_start_streaming+0x2d4/0x540 drivers/media/usb/siano/smsusb.c:197
smsusb_init_device drivers/media/usb/siano/smsusb.c:472 [inline]
smsusb_probe+0x1607/0x1d10 drivers/media/usb/siano/smsusb.c:569


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

syzbot

unread,
Sep 20, 2025, 2:29:03 PM9/20/25
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit ffa551a30da6bce6ab6cc938b8028437a3ac1058
Author: Oliver Neukum <one...@suse.com>
Date: Thu Jun 12 12:20:25 2025 +0000

usb: core: usb_submit_urb: downgrade type check

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=10927e42580000
start commit: 3b8db0e4f263 Linux 5.15.182
git tree: linux-5.15.y
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16acef68580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12bdc2d4580000

If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: usb: core: usb_submit_urb: downgrade type check

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages