syzbot


WARNING in uvc_status_unregister

Status: upstream: reported C repro on 2024/10/20 06:44
Subsystems: media
[Documentation on labels]
Reported-by: syzbot+9446d5e0d25571e6a212@syzkaller.appspotmail.com
First crash: 50d, last: now
Cause bisection: introduced by (bisect log) :
commit c5fe3ed618f995b4a903e574bf2e993cdebeefca
Author: Ricardo Ribalda <ribalda@chromium.org>
Date: Thu Sep 26 05:49:58 2024 +0000

  media: uvcvideo: Avoid race condition during unregister

Crash: WARNING in uvc_status_unregister (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] media: uvcvideo: Fix deadlock during uvc_probe 3 (3) 2024/11/07 22:05
[syzbot] [media?] WARNING in uvc_status_unregister 3 (5) 2024/10/22 08:41
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/10/20 08:07 21m hdanton@sina.com patch linux-next OK log

Sample crash report:
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 Unit with invalid ID 0.
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(lock->magic != lock)
WARNING: CPU: 0 PID: 975 at kernel/locking/mutex.c:564 __mutex_lock_common kernel/locking/mutex.c:564 [inline]
WARNING: CPU: 0 PID: 975 at kernel/locking/mutex.c:564 __mutex_lock+0xdac/0xee0 kernel/locking/mutex.c:735
Modules linked in:
CPU: 0 UID: 0 PID: 975 Comm: kworker/0:2 Not tainted 6.12.0-syzkaller-12038-gc4bb3a2d641c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: usb_hub_wq hub_event
RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:564 [inline]
RIP: 0010:__mutex_lock+0xdac/0xee0 kernel/locking/mutex.c:735
Code: 0f b6 04 38 84 c0 0f 85 1a 01 00 00 83 3d 3f 0e 4f 04 00 75 19 90 48 c7 c7 00 82 0a 8c 48 c7 c6 a0 82 0a 8c e8 f5 d8 96 f5 90 <0f> 0b 90 90 90 e9 c7 f3 ff ff 90 0f 0b 90 e9 29 f8 ff ff 90 0f 0b
RSP: 0018:ffffc90003c06940 EFLAGS: 00010246
RAX: 53f90d997eef6700 RBX: ffff88807c1e2518 RCX: ffff888026798000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003c06ad0 R08: ffffffff81601b22 R09: 1ffff110170c519a
R10: dffffc0000000000 R11: ffffed10170c519b R12: 0000000000000000
R13: 0000000000000000 R14: 1ffff92000780d3c R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564c613b6120 CR3: 00000000775e8000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 class_mutex_constructor include/linux/mutex.h:201 [inline]
 uvc_status_suspend drivers/media/usb/uvc/uvc_status.c:375 [inline]
 uvc_status_unregister+0x2f/0xe0 drivers/media/usb/uvc/uvc_status.c:297
 uvc_unregister_video+0x12b/0x200 drivers/media/usb/uvc/uvc_driver.c:1977
 uvc_probe+0x9154/0x98e0 drivers/media/usb/uvc/uvc_driver.c:2302
 usb_probe_interface+0x641/0xbb0 drivers/usb/core/driver.c:396
 really_probe+0x2b8/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+0x24e/0x2e0 drivers/base/bus.c:459
 __device_attach+0x333/0x520 drivers/base/dd.c:1030
 bus_probe_device+0x189/0x260 drivers/base/bus.c:534
 device_add+0x856/0xbf0 drivers/base/core.c:3665
 usb_set_configuration+0x1976/0x1fb0 drivers/usb/core/message.c:2210
 usb_generic_driver_probe+0x88/0x140 drivers/usb/core/generic.c:254
 usb_probe_device+0x1b8/0x380 drivers/usb/core/driver.c:291
 really_probe+0x2b8/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+0x24e/0x2e0 drivers/base/bus.c:459
 __device_attach+0x333/0x520 drivers/base/dd.c:1030
 bus_probe_device+0x189/0x260 drivers/base/bus.c:534
 device_add+0x856/0xbf0 drivers/base/core.c:3665
 usb_new_device+0x104a/0x19a0 drivers/usb/core/hub.c:2651
 hub_port_connect drivers/usb/core/hub.c:5521 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5661 [inline]
 port_event drivers/usb/core/hub.c:5821 [inline]
 hub_event+0x2d6d/0x5150 drivers/usb/core/hub.c:5903
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310
 worker_thread+0x870/0xd30 kernel/workqueue.c:3391
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (14459):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/01 10:22 upstream c4bb3a2d641c 68914665 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in uvc_status_unregister
2024/11/25 00:20 upstream 9f16d5e6f220 68da6d95 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in uvc_status_unregister
2024/10/17 10:45 linux-next 15e7d45e786a 666f77ed .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in uvc_status_unregister
2024/12/05 17:27 upstream feffde684ac2 6e50d07b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in uvc_status_unregister
2024/12/05 16:31 upstream feffde684ac2 6e50d07b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in uvc_status_unregister
2024/12/05 14:41 upstream feffde684ac2 6e50d07b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in uvc_status_unregister
2024/12/05 11:47 upstream feffde684ac2 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in uvc_status_unregister
2024/12/05 11:20 upstream feffde684ac2 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in uvc_status_unregister
2024/12/05 11:17 upstream feffde684ac2 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in uvc_status_unregister
2024/12/05 11:11 upstream feffde684ac2 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in uvc_status_unregister
2024/12/05 11:07 upstream feffde684ac2 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in uvc_status_unregister
2024/12/05 08:56 upstream feffde684ac2 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in uvc_status_unregister
2024/12/05 06:39 upstream feffde684ac2 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in uvc_status_unregister
2024/12/05 05:20 upstream feffde684ac2 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in uvc_status_unregister
2024/12/05 04:51 upstream feffde684ac2 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in uvc_status_unregister
2024/12/05 03:54 upstream feffde684ac2 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in uvc_status_unregister
2024/12/05 16:11 upstream feffde684ac2 6e50d07b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in uvc_status_unregister
2024/12/05 03:18 upstream feffde684ac2 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in uvc_status_unregister
2024/12/05 15:43 upstream feffde684ac2 1c533826 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in uvc_status_unregister
2024/12/05 14:27 upstream feffde684ac2 1c533826 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in uvc_status_unregister
2024/12/05 04:31 upstream feffde684ac2 29f61fce .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in uvc_status_unregister
2024/12/05 01:34 upstream feffde684ac2 29f61fce .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in uvc_status_unregister
2024/12/05 04:43 upstream feffde684ac2 29f61fce .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in uvc_status_unregister
2024/12/06 00:05 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 23:35 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 22:34 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 22:25 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 21:21 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 20:41 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 19:49 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 19:08 linux-next af2ea8ab7a54 6e50d07b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in uvc_status_unregister
2024/12/05 18:31 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 17:52 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 16:52 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 15:17 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 15:04 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 13:38 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 12:37 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 12:11 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 11:33 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 10:46 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 09:36 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 08:21 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 08:02 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 07:45 linux-next bcf2acd8f64b 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in uvc_status_unregister
2024/12/05 07:31 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 07:09 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 06:18 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 05:47 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 05:31 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d8d936c51388 b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 05:08 linux-next bcf2acd8f64b 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in uvc_status_unregister
2024/12/05 04:38 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3b56774fa25d b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 04:20 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3b56774fa25d b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 03:35 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3b56774fa25d b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
2024/12/05 02:30 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3b56774fa25d b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb WARNING in uvc_status_unregister
* Struck through repros no longer work on HEAD.