lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200903141742.53496.M4rkusXXL@web.de>
Date:	Sat, 14 Mar 2009 17:42:53 +0100
From:	Markus <M4rkusXXL@....de>
To:	lkml <linux-kernel@...r.kernel.org>
Subject: REGRESSION: 2.6.28.7 => 2.6.29-rc8: pwc mmap always failes with EAGAIN

Hello!

I just tried the 2.6.29-rc8 and run into a problem.
Running motion (a motion detection software for a webcam: 
http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome) with the pwc 
driver will give some error message:
[1] Error mapping buffer 0 mmap: Resource temporarily unavailable
[1] MAP_FAILED: Resource temporarily unavailable

Looking in the sources:
It opens the video device (/dev/video1 for me) and then tries to mmap 
with:
mmap(NULL, buf.length, PROT_READ | PROT_WRITE, MAP_SHARED, s->fd, 
buf.m.offset);

It returns MAP_FAILED and errno is EAGAIN.
>From the manpages of mmap:
"EAGAIN   The file has been locked, or too much memory has been locked 
(see setrlimit(2))."

The software is not able to gather a picture from the webcam (its a 
logitech orbit). Everything works with kernel 2.6.28.7 and before. The 
config is copied from the 2.6.28.7 (except of some new options: "make 
oldconfig"). Nothing else is changed! (Only the kernel differs.)


I dont know how that can be debugged further as the pwc module wasn 
changed (except of a small api-adjustment).

Thanks!

Markus

PS: Please CC me!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ