null pointer dereference in uvcvideo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have a logitech c920 webcam. When using this camera in obs-studio v23.x, all of my USB devices stop working and I see the following in my kernel log:
[ 590.282211] usb 3-3: new high-speed USB device number 5 using xhci_hcd
[ 592.660916] usb 3-3: New USB device found, idVendor=046d, idProduct=082d, bcdDevice= 0.11
[ 592.660922] usb 3-3: New USB device strings: Mfr=0, Product=2, SerialNumber=1
[ 592.660925] usb 3-3: Product: HD Pro Webcam C920
[ 592.660928] usb 3-3: SerialNumber: 2EAD866F
[ 592.664600] uvcvideo: Found UVC 1.00 device HD Pro Webcam C920 (046d:082d)
[ 592.666416] uvcvideo 3-3:1.0: Entity type for entity Processing 3 was not initialized!
[ 592.666421] uvcvideo 3-3:1.0: Entity type for entity Extension 6 was not initialized!
[ 592.666425] uvcvideo 3-3:1.0: Entity type for entity Extension 12 was not initialized!
[ 592.666428] uvcvideo 3-3:1.0: Entity type for entity Camera 1 was not initialized!
[ 592.666430] uvcvideo 3-3:1.0: Entity type for entity Extension 8 was not initialized!
[ 592.666433] uvcvideo 3-3:1.0: Entity type for entity Extension 9 was not initialized!
[ 592.666436] uvcvideo 3-3:1.0: Entity type for entity Extension 10 was not initialized!
[ 592.666439] uvcvideo 3-3:1.0: Entity type for entity Extension 11 was not initialized!
[ 592.666622] input: HD Pro Webcam C920 as /devices/
[ 748.490453] usb 3-3: reset high-speed USB device number 5 using xhci_hcd
[ 938.125745] usb 3-3: USB disconnect, device number 5
[ 943.298530] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
[ 943.298533] #PF error: [normal kernel read fault]
[ 943.298534] PGD 80000007ca5f3067 P4D 80000007ca5f3067 PUD 0
[ 943.298536] Oops: 0000 [#1] SMP PTI
[ 943.298538] CPU: 0 PID: 9442 Comm: libobs: graphic Tainted: P OE 5.0.0-13-generic #14-Ubuntu
[ 943.298539] Hardware name: Gigabyte Technology Co., Ltd. Z87-HD3/Z87-HD3, BIOS F7 01/20/2014
[ 943.298543] RIP: 0010:usb_
[ 943.298544] Code: ff c3 0f 1f 40 00 0f 1f 44 00 00 55 48 8b 87 c0 03 00 00 48 89 e5 48 85 c0 74 43 0f b6 48 04 84 c9 74 39 48 8b 90 98 00 00 00 <48> 8b 3a 0f b6 7f 02 39 fe 74 2b 48 8d 90 a0 00 00 00 8d 41 ff 48
[ 943.298545] RSP: 0018:ffffbdae49
[ 943.298547] RAX: ffffa106ae527000 RBX: ffffa1070ad0a800 RCX: 0000000000000004
[ 943.298547] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffa1070ad0a800
[ 943.298548] RBP: ffffbdae493dbab0 R08: 0000000000027040 R09: ffffffffb57825b8
[ 943.298549] R10: fffffba45fce4bc0 R11: 0000000000000001 R12: 0000000000000000
[ 943.298550] R13: ffffa10644187b98 R14: 00000000ffffff92 R15: ffffa1075131a000
[ 943.298551] FS: 00007f93c40d770
[ 943.298552] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 943.298553] CR2: 0000000000000000 CR3: 00000006f8a94004 CR4: 00000000001606f0
[ 943.298553] Call Trace:
[ 943.298557] usb_hcd_
[ 943.298559] usb_set_
[ 943.298565] uvc_video_
[ 943.298568] uvc_video_
[ 943.298570] uvc_start_
[ 943.298573] vb2_start_
[ 943.298575] vb2_core_
[ 943.298578] vb2_streamon+
[ 943.298580] uvc_queue_
[ 943.298582] uvc_ioctl_
[ 943.298588] v4l_streamon+
[ 943.298592] __video_
[ 943.298596] video_usercopy+
[ 943.298599] ? v4l_s_fmt+
[ 943.298603] video_ioctl2+
[ 943.298606] v4l2_ioctl+
[ 943.298608] do_vfs_
[ 943.298610] ? __switch_
[ 943.298611] ? __switch_
[ 943.298612] ? __switch_
[ 943.298612] ? __switch_
[ 943.298613] ? __switch_
[ 943.298614] ? __switch_
[ 943.298615] ? __switch_
[ 943.298616] ? __switch_
[ 943.298617] ksys_ioctl+
[ 943.298619] __x64_sys_
[ 943.298621] do_syscall_
[ 943.298622] entry_SYSCALL_
[ 943.298623] RIP: 0033:0x7f9430e082e9
[ 943.298624] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 77 cb 0c 00 f7 d8 64 89 01 48
[ 943.298625] RSP: 002b:00007f93c4
[ 943.298626] RAX: ffffffffffffffda RBX: 00007f94000da020 RCX: 00007f9430e082e9
[ 943.298627] RDX: 00007f93c40d6444 RSI: 0000000040045612 RDI: 000000000000003b
[ 943.298628] RBP: 0000000000000000 R08: 00000000c058560f R09: 000055f3e344a6e0
[ 943.298629] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000003b
[ 943.298629] R13: 00007f93c40d68bc R14: 00007f94000da020 R15: 0000000000000000
[ 943.298631] Modules linked in: uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common snd_usb_audio videodev snd_usbmidi_lib media rfcomm joydev input_leds hid_generic uhid hid algif_hash algif_skcipher af_alg nf_conntrack_
[ 943.298652] snd_hda_
[ 943.298672] CR2: 0000000000000000
[ 943.298674] ---[ end trace 62d503b51a37a64a ]---
[ 943.298675] RIP: 0010:usb_
[ 943.298676] Code: ff c3 0f 1f 40 00 0f 1f 44 00 00 55 48 8b 87 c0 03 00 00 48 89 e5 48 85 c0 74 43 0f b6 48 04 84 c9 74 39 48 8b 90 98 00 00 00 <48> 8b 3a 0f b6 7f 02 39 fe 74 2b 48 8d 90 a0 00 00 00 8d 41 ff 48
[ 943.298677] RSP: 0018:ffffbdae49
[ 943.298678] RAX: ffffa106ae527000 RBX: ffffa1070ad0a800 RCX: 0000000000000004
[ 943.298679] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffa1070ad0a800
[ 943.298680] RBP: ffffbdae493dbab0 R08: 0000000000027040 R09: ffffffffb57825b8
[ 943.298680] R10: fffffba45fce4bc0 R11: 0000000000000001 R12: 0000000000000000
[ 943.298681] R13: ffffa10644187b98 R14: 00000000ffffff92 R15: ffffa1075131a000
[ 943.298682] FS: 00007f93c40d770
[ 943.298683] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 943.298684] CR2: 0000000000000000 CR3: 00000006f8a94004 CR4: 00000000001606f0
Interestingly, this doesn't crash the machine, but it does seem to crash udev or whatever is responsible for updating USB device state, as I've disconnected the webcam but running lsusb still shows it as connected. This is something of a pain as the only way I could file this report was to ssh in from another machine with X forwarding enabled, as my keyboard and mouse no longer function.
Note that sometimes OBS will work fine with this camera, however this bug will still occur when I attempt to change the camera resolution.
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: linux-modules-
ProcVersionSign
Uname: Linux 5.0.0-13-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/pcmC1D7p: bburns 3961 F...m pulseaudio
/dev/snd/
/dev/snd/pcmC0D1c: bburns 3961 F...m pulseaudio
Date: Thu May 2 18:47:59 2019
HibernationDevice: RESUME=none
InstallationDate: Installed on 2018-07-30 (276 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
MachineType: Gigabyte Technology Co., Ltd. Z87-HD3
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 EFI VGA
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.178
SourcePackage: linux
UpgradeStatus: Upgraded to disco on 2019-04-24 (8 days ago)
dmi.bios.date: 01/20/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F7
dmi.board.
dmi.board.name: Z87-HD3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: To be filled by O.E.M.
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: To be filled by O.E.M.
dmi.product.name: Z87-HD3
dmi.product.sku: To be filled by O.E.M.
dmi.product.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
tags: | added: patch |
This change was made by a bot.