Bug 108941 - VIDIOC_REQBUFS call results in system to run out of memory
Summary: VIDIOC_REQBUFS call results in system to run out of memory
Status: NEW
Alias: None
Product: v4l-dvb
Classification: Unclassified
Component: v4l-other (show other bugs)
Hardware: All Linux
: P1 high
Assignee: v4l-other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-06 04:38 UTC by Carsten Brandt
Modified: 2015-12-06 04:38 UTC (History)
0 users

See Also:
Kernel Version: 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Carsten Brandt 2015-12-06 04:38:01 UTC
I am not sure about which Component this belongs to, please adjust it. The report is about the following ioctl call: 

VIDIOC_REQBUFS — Initiate Memory Mapping or User Pointer I/O

http://www.linuxtv.org/downloads/v4l-dvb-apis/vidioc-reqbufs.html

I have prepared a script to reproduce the issue (extracted from original code of the program that caused it):

https://gist.github.com/cebe/386a89b273d0389b86a9#file-bug-c-L150-L158

If I set req.count = 1; it works fine but I'd like to have more buffers if possible. According to the docs, the driver should handle this and set count to lower value if not enough memory is avilable. http://www.linuxtv.org/downloads/v4l-dvb-apis/vidioc-reqbufs.html

let me know if you need further input.

Note You need to log in before you can comment on or make changes to this bug.