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>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPZXPQcaEzW1zGXfGwp-JuOrfBu2xhoidaYjthD8jhYAFpWr7A@mail.gmail.com>
Date:	Tue, 10 Jul 2012 15:56:08 +0300
From:	Martin-Éric Racine <martin-eric.racine@....fi>
To:	Jonathan Nieder <jrnieder@...il.com>
Cc:	Hans de Goede <hdegoede@...hat.com>, 677533@...s.debian.org,
	Jean-François Moine <moinejf@...e.fr>,
	linux-media@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: video: USB webcam fails since kernel 3.2

Hi Jonathan,

Thank you for these detailed instructions. Find the results of my testing below:

2012/7/9 Jonathan Nieder <jrnieder@...il.com>:
> Hans de Goede wrote:
>
>> Erm, that is quite a bit of work from my side for something which you
>> can easily do yourself, edit gspca.c, search for which_bandwidth
>> and then under the following lines:
>>         u32 bandwidth;
>>         int i;
>>
>> Add a line like this:
>>       return 2000 * 2000 * 120;
>
> In case it helps, here are some more complete instructions.
>
>  0. Prerequisites:
>
>         apt-get install git build-essential
>
>  1. Get the kernel history, if you don't already have it:
>
>         git clone \
>           git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Cloned up to the following commit:

commit 2437fccfbfc83bcb868ccc7fdfe2b5310bf07835
Merge: 6c6ee53 d92d95b6
Author: Linus Torvalds <torvalds@...ux-foundation.org>
Date:   Mon Jul 9 13:43:02 2012 -0700

    Merge tag 'regulator-3.5' of
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator

>  2. Try linus's master:
>
>         cd linux
>         git fetch origin
>         git reset --hard origin/master
>         cp /boot/config-$(uname -r) .config; # current configuration
>         scripts/config --disable DEBUG_INFO
>         make localmodconfig; # optional: minimize configuration
>         make deb-pkg; # optionally with -j<num> for parallel build
>         dpkg -i ../<name of package>; # as root
>         reboot
>         ... test test test ...
>
>     Hopefully it reproduces the bug.

Fails as previously.

>  3. Try Hans's first suggested change, as described in the quoted text
>     above:

/* compute the minimum bandwidth for the current transfer */
static u32 which_bandwidth(struct gspca_dev *gspca_dev)
{
        u32 bandwidth;
        int i;

        return 2000 * 2000 * 120;

        /* get the (max) image size */

>         cd linux
>         vi drivers/media/video/gspca/gspca.c
>         ... make the suggested edits ...
>         make deb-pkg; # maybe with -j4
>         dpkg -i ../<name of package>; # as root
>         reboot
>         ... test test test ...

The camera works again in Cheese, at least some of the time. Other
times, launching Cheese immediately crashes GNOME, which restarts the
X.org server.

However, with Skype 4.0.0.7, it only shows a green square, instead of
the camera's output.

>  4. Try Hans's second suggested change, as described in a previous
>     message:
>
>         cd linux
>         vi drivers/media/video/gspca/gspca.c
>         ... make the suggested edits ...
>         make deb-pkg; # maybe with -j4
>         dpkg -i ../<name of package>; # as root
>         reboot
>         ... test test test ...

This produces a severely distorted image for a few seconds, then
Cheese crashes; GNOME itself survives.

Meanwhile, Skype 4.0.0.7 shows a black square, instead of the camera's output.

I hope that the above already provides some usable answers.

Martin-Éric
--
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