From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Raghavendra D Prabhu <rprabhu@wnohang.net>
Cc: mchehab@infradead.org, linux-media@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: Oops while modprobing uvcvideo module
Date: Mon, 27 Jun 2011 12:07:07 +0200 [thread overview]
Message-ID: <201106271207.08227.laurent.pinchart@ideasonboard.com> (raw)
In-Reply-To: <20110625191929.GA4411@Xye>
Hi Raghavendra,
On Saturday 25 June 2011 21:19:29 Raghavendra D Prabhu wrote:
> Hi,
>
> While modprobing uvcvideo I am getting the following oops. This is
> on a kernel built with latest linus master
> (536142f950f7ea4f3d146a138ad6938f28a34f33). I have also attached the
> full dmesg.
>
> =============================================================
> [ 1985.732475] uvcvideo: Found UVC 1.00 device Laptop_Integrated_Webcam_2HDM
> (0408:2fb1)
Could you please send me the output of
lsusb -v -d 0408:2fb1
running as root if possible ?
> [ 1985.759844] uvcvideo: No streaming interface found for terminal 6.
> [ 1985.759863] BUG: unable to handle kernel NULL pointer dereference at
> 0000000000000050
> [ 1985.759871] IP: [<ffffffffa0da23e0>] media_entity_init+0x40/0xa0 [media]
[snip]
> I was able to observe this at boot and also reproduce it later.
>
> Further analyzing the oops revealed this:
> ========================================================
> perl scripts/markup_oops.pl < ~/oops
>
> No vmlinux specified, assuming /lib/modules/3.0.0-rc4-LYM/build/vmlinux
> unsigned int max_links = num_pads + extra_links;
> unsigned int i;
>
> links = kzalloc(max_links * sizeof(links[0]), GFP_KERNEL);
> ffffffffa01573d2: 48 c1 e7 05 shl $0x5,%rdi | %edi
> => ffff88013ac31200 ffffffffa01573d6: e8 00 00 00 00 callq
> ffffffffa01573db <media_entity_init+0x3b> if (links == NULL)
> ffffffffa01573db: 48 85 c0 test %rax,%rax | %eax
> => ffff88013ac311e0 ffffffffa01573de: 74 56 je
> ffffffffa0157436 <media_entity_init+0x96> entity->max_links = max_links;
> entity->num_links = 0;
> entity->num_backlinks = 0;
> entity->num_pads = num_pads;
> entity->pads = pads;
> entity->links = links;
> *ffffffffa01573e0: 48 89 43 50 mov %rax,0x50(%rbx) |
> %eax = ffff88013ac311e0 <--- faulting instruction
It looks like entity is NULL.
> for (i = 0; i < num_pads; i++) {
> pads[i].entity = entity;
> pads[i].index = i;
> }
>
> return 0;
> ffffffffa01573e4: 31 c0 xor %eax,%eax
> entity->num_backlinks = 0;
> entity->num_pads = num_pads;
> entity->pads = pads;
> entity->links = links;
> ==================================================================
I can't reproduce the problem with my webcams. Can you try a diagnosis patch
if needed ?
--
Regards,
Laurent Pinchart
prev parent reply other threads:[~2011-06-27 10:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-25 19:19 Raghavendra D Prabhu
2011-06-27 10:07 ` Laurent Pinchart [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201106271207.08227.laurent.pinchart@ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=rprabhu@wnohang.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®