← Back to team overview

kernel-packages team mailing list archive

[Bug 1489077] Re: v4l2 can crash computer with badly written userland code

 

Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v4.2 kernel[0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:
'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as
"Confirmed".


Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.2-unstable/


** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

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

Title:
  v4l2 can crash computer with badly written userland code

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  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

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


References