syzbot


WARNING in media_create_pad_link (2)

Status: upstream: reported C repro on 2025/03/19 07:16
Subsystems: usb media
[Documentation on labels]
Reported-by: syzbot+701fc9cc0cb44e2b0fe9@syzkaller.appspotmail.com
First crash: 50d, last: 11d
Cause bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH] media: Fix invalid link creation when source entity has 0 pads 9 (9) 2025/04/11 05:05
[syzbot] [media?] [usb?] WARNING in media_create_pad_link (2) 0 (2) 2025/03/25 05:55
[syzbot] Monthly media report (Mar 2025) 0 (1) 2025/03/23 02:21
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 143d 776d 0/3 auto-obsoleted due to no activity on 2025/03/22 03:16
linux-6.1 WARNING in media_create_pad_link origin:upstream C error 2 244d 776d 3/3 fixed on 2024/12/14 20:01
upstream WARNING in media_create_pad_link usb media C done done 104 163d 1815d 28/28 fixed on 2024/12/16 09:50
Last patch testing requests (4)
Created Duration User Patch Repo Result
2025/03/30 16:11 15m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing report log
2025/03/30 16:11 16m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing report log
2025/03/30 16:11 9m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing report log
2025/03/25 05:55 1h22m gshahrouzi@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing OK log

Sample crash report:
usb 1-1: string descriptor 0 read error: -71
usb 1-1: Found UVC 0.00 device <unnamed> (2833:0201)
uvcvideo 1-1:0.0: Entity type for entity Output 1 was not initialized!
uvcvideo 1-1:0.0: Entity type for entity Input 1 was not initialized!
------------[ cut here ]------------
WARNING: CPU: 0 PID: 10 at drivers/media/mc/mc-entity.c:1147 media_create_pad_link+0xa30/0xbb0 drivers/media/mc/mc-entity.c:1147
Modules linked in:
CPU: 0 UID: 0 PID: 10 Comm: kworker/0:1 Not tainted 6.15.0-rc3-syzkaller-00008-ga33b5a08cbbd #0 PREEMPT(full) 
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+0xa30/0xbb0 drivers/media/mc/mc-entity.c:1147
Code: ff ff eb dd e8 01 17 87 f9 90 0f 0b 90 b8 ea ff ff ff eb cd e8 f1 16 87 f9 90 0f 0b 90 b8 ea ff ff ff eb bd e8 e1 16 87 f9 90 <0f> 0b 90 b8 ea ff ff ff eb ad e8 d1 16 87 f9 90 0f 0b 90 b8 ea ff
RSP: 0018:ffffc900000f6938 EFLAGS: 00010293
RAX: ffffffff883ba63f RBX: 0000000000000000 RCX: ffff88801c681e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff883b9d31 R09: 1ffff11028b5fc85
R10: dffffc0000000000 R11: ffffed1028b5fc86 R12: dffffc0000000000
R13: ffff88801ef96880 R14: 0000000000000000 R15: ffff88801ef968c8
FS:  0000000000000000(0000) GS:ffff888124f9a000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560c33b3df38 CR3: 0000000022bc2000 CR4: 00000000003526f0
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+0x733/0xa00 drivers/media/usb/uvc/uvc_entity.c:151
 uvc_register_chains+0x3d4/0x4c0 drivers/media/usb/uvc/uvc_driver.c:2143
 uvc_probe+0x9c19/0xa6f0 drivers/media/usb/uvc/uvc_driver.c:2279
 usb_probe_interface+0x650/0xbc0 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x2b9/0xad0 drivers/base/dd.c:658
 __driver_probe_device+0x1a2/0x390 drivers/base/dd.c:800
 driver_probe_device+0x50/0x430 drivers/base/dd.c:830
 __device_attach_driver+0x2d6/0x530 drivers/base/dd.c:958
 bus_for_each_drv+0x258/0x2e0 drivers/base/bus.c:462
 __device_attach+0x341/0x530 drivers/base/dd.c:1030
 bus_probe_device+0x189/0x260 drivers/base/bus.c:537
 device_add+0x856/0xbf0 drivers/base/core.c:3666
 usb_set_configuration+0x1999/0x1fe0 drivers/usb/core/message.c:2210
 usb_generic_driver_probe+0x88/0x140 drivers/usb/core/generic.c:250
 usb_probe_device+0x1b8/0x380 drivers/usb/core/driver.c:291
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x2b9/0xad0 drivers/base/dd.c:658
 __driver_probe_device+0x1a2/0x390 drivers/base/dd.c:800
 driver_probe_device+0x50/0x430 drivers/base/dd.c:830
 __device_attach_driver+0x2d6/0x530 drivers/base/dd.c:958
 bus_for_each_drv+0x258/0x2e0 drivers/base/bus.c:462
 __device_attach+0x341/0x530 drivers/base/dd.c:1030
 bus_probe_device+0x189/0x260 drivers/base/bus.c:537
 device_add+0x856/0xbf0 drivers/base/core.c:3666
 usb_new_device+0x1052/0x19a0 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+0x2bfd/0x50f0 drivers/usb/core/hub.c:5913
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xac3/0x18e0 kernel/workqueue.c:3319
 worker_thread+0x870/0xd50 kernel/workqueue.c:3400
 kthread+0x7b7/0x940 kernel/kthread.c:464
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/22 19:18 upstream a33b5a08cbbd 53a8b9bd .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in media_create_pad_link
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.