Public bug reported:

In my simple bit of code to grab a frame from a webcam based on the
example code given here:

https://gist.github.com/Circuitsoft/1126411

I found a badly crafted version would crash the computer (dead except
for flashing keyboard lights).

Simply calling ioctl(cam, VIDIOC_STREAMON, &buf.type) twice without
calling VIDIOC_STREAMOFF inbetween causes the crash. I realise this code
is incompetent but it shouldn't require a hard reboot to recover from
it. I guess this might be rather system specific however it seemed worth
reporting.

 I can't recall the last time I managed to crash a linux box from
userland...

Kernel: Ubuntu 3.13.0-62.102-generic 3.13.11-ckt24

Camera: Bus 001 Device 002: ID 046d:0990 Logitech, Inc. QuickCam Pro
9000

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1489077

Title:
  v4l2 can crash computer with badly written userland code

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1489077/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to