Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: uvideo uvm_fault panic



On Sat, May 14, 2022 at 03:30:49PM +0000, Taylor R Campbell wrote:
> > Date: Sat, 14 May 2022 15:14:50 +0000
> > From: sc.dying%gmail.com@localhost
> > 
> > On 2022/05/14 13:47, Taylor R Campbell wrote:
> > > Can you please try the two attached patches?
> > > 
> > > 1. uvideobadstream.patch should fix the _crash_ when you try to open a
> > >    video stream on a device that the driver deemed to have a bad
> > >    descriptor.  Try this one first, if you have time -- it prevents a
> > >    malicious USB device from causing this kernel crash.
> > 
> > Yes, it fixes crash -- as it prevents attaching video(4)...
> > 
> > > 2. uvideosizeof.patch should fix the sizeof calculations so that the
> > >    driver stops rejecting your device's descriptor.  This one should
> > >    make your device work again.
> > 
> > It works well again.
> 
> Thanks, committed!

Just logged into zoom.us without a panic :-)

and now

# videoctl -a
videoctl: couldn't open '/dev/video0': Input/output error

Does this dmesg look sensible?

$ dmesg -t | grep video
uvideo0 at uhub1 port 6 configuration 1 interface 0: CKFIH12P466071019182 (0x0bda) Integrated_Webcam_HD (0x5531), rev 2.01/81.78, addr 2
video0 at uvideo0: CKFIH12P466071019182 (0x0bda) Integrated_Webcam_HD (0x5531), rev 2.01/81.78, addr 2
video1 at uvideo0: CKFIH12P466071019182 (0x0bda) Integrated_Webcam_HD (0x5531), rev 2.01/81.78, addr 2
uvideo1 at uhub1 port 6 configuration 1 interface 2: CKFIH12P466071019182 (0x0bda) Integrated_Webcam_HD (0x5531), rev 2.01/81.78, addr 2
video2 at uvideo1: CKFIH12P466071019182 (0x0bda) Integrated_Webcam_HD (0x5531), rev 2.01/81.78, addr 2
video3 at uvideo1: CKFIH12P466071019182 (0x0bda) Integrated_Webcam_HD (0x5531), rev 2.01/81.78, addr 2

there is just the one built-in camera...


Cheers,

Patrick


Home | Main Index | Thread Index | Old Index