syzbot


WARNING in media_create_pad_link (2)

Status: upstream: reported C repro on 2025/03/19 07:16
Subsystems: media usb
[Documentation on labels]
Reported-by: syzbot+701fc9cc0cb44e2b0fe9@syzkaller.appspotmail.com
First crash: 4d16h, last: 4d13h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [media?] [usb?] WARNING in media_create_pad_link (2) 0 (1) 2025/03/19 07:16
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in media_create_pad_link origin:upstream C error 7 97d 730d 0/3 upstream: reported C repro on 2023/03/20 02:06
linux-6.1 WARNING in media_create_pad_link origin:upstream C error 2 199d 730d 3/3 fixed on 2024/12/14 20:01
upstream WARNING in media_create_pad_link usb media C done done 104 118d 1770d 28/28 fixed on 2024/12/16 09:50

Sample crash report:
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: syz
usb 1-1: Manufacturer: syz
usb 1-1: SerialNumber: syz
usb 1-1: config 0 descriptor??
usb 1-1: Found UVC 0.00 device syz (046d:08c3)
usb 1-1: No streaming interface found for terminal 6.
------------[ cut here ]------------
WARNING: CPU: 1 PID: 25 at drivers/media/mc/mc-entity.c:1144 media_create_pad_link+0x5c1/0x760 drivers/media/mc/mc-entity.c:1144
Modules linked in:
CPU: 1 UID: 0 PID: 25 Comm: kworker/1:0 Not tainted 6.14.0-rc6-syzkaller-g3a85c1011540 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Workqueue: usb_hub_wq hub_event
RIP: 0010:media_create_pad_link+0x5c1/0x760 drivers/media/mc/mc-entity.c:1144
Code: d8 48 83 c4 28 5b 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc e8 70 7e 65 fc 90 0f 0b 90 bb ea ff ff ff eb d6 e8 60 7e 65 fc 90 <0f> 0b 90 eb ee e8 55 7e 65 fc 90 0f 0b 90 eb e3 e8 4a 7e 65 fc 90
RSP: 0018:ffffc900001aef18 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888118fa0880 RCX: ffffffff8515cf70
RDX: ffff888102689d40 RSI: ffffffff8515d490 RDI: 0000000000000002
RBP: ffff888121e9f880 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff8ee92ad0 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000003 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881f5900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffec100cca8 CR3: 0000000122e30000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 uvc_mc_create_links drivers/media/usb/uvc/uvc_entity.c:50 [inline]
 uvc_mc_register_entities+0x3a8/0xaa0 drivers/media/usb/uvc/uvc_entity.c:151
 uvc_register_chains drivers/media/usb/uvc/uvc_driver.c:2142 [inline]
 uvc_probe+0x2859/0x4810 drivers/media/usb/uvc/uvc_driver.c:2278
 usb_probe_interface+0x300/0x9c0 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:579 [inline]
 really_probe+0x23e/0xa90 drivers/base/dd.c:658
 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:800
 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:830
 __device_attach_driver+0x1df/0x310 drivers/base/dd.c:958
 bus_for_each_drv+0x157/0x1e0 drivers/base/bus.c:462
 __device_attach+0x1e8/0x4b0 drivers/base/dd.c:1030
 bus_probe_device+0x17f/0x1c0 drivers/base/bus.c:537
 device_add+0x114b/0x1a70 drivers/base/core.c:3666
 usb_set_configuration+0x10cb/0x1c50 drivers/usb/core/message.c:2210
 usb_generic_driver_probe+0xb1/0x110 drivers/usb/core/generic.c:250
 usb_probe_device+0xec/0x3e0 drivers/usb/core/driver.c:291
 call_driver_probe drivers/base/dd.c:579 [inline]
 really_probe+0x23e/0xa90 drivers/base/dd.c:658
 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:800
 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:830
 __device_attach_driver+0x1df/0x310 drivers/base/dd.c:958
 bus_for_each_drv+0x157/0x1e0 drivers/base/bus.c:462
 __device_attach+0x1e8/0x4b0 drivers/base/dd.c:1030
 bus_probe_device+0x17f/0x1c0 drivers/base/bus.c:537
 device_add+0x114b/0x1a70 drivers/base/core.c:3666
 usb_new_device+0xd09/0x1a20 drivers/usb/core/hub.c:2663
 hub_port_connect drivers/usb/core/hub.c:5531 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5671 [inline]
 port_event drivers/usb/core/hub.c:5831 [inline]
 hub_event+0x2e58/0x4f40 drivers/usb/core/hub.c:5913
 process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3238
 process_scheduled_works kernel/workqueue.c:3319 [inline]
 worker_thread+0x6c8/0xf00 kernel/workqueue.c:3400
 kthread+0x3af/0x750 kernel/kthread.c:464
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/15 09:22 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3a85c1011540 e2826670 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in media_create_pad_link
2025/03/15 08:38 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3a85c1011540 e2826670 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in media_create_pad_link
2025/03/15 07:54 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3a85c1011540 e2826670 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in media_create_pad_link
2025/03/15 07:11 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3a85c1011540 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in media_create_pad_link
* Struck through repros no longer work on HEAD.