From: Andrew Morton <akpm@linux-foundation.org>
To: linux-media@vger.kernel.org
Cc: bugme-daemon@bugzilla.kernel.org, nm127@freemail.hu
Subject: Re: [Bugme-new] [Bug 12768] New: usb_alloc_urb() leaks memory together with uvcvideo driver
Date: Tue, 24 Feb 2009 13:57:20 -0800 [thread overview]
Message-ID: <20090224135720.9e752fee.akpm@linux-foundation.org> (raw)
In-Reply-To: <bug-12768-10286@http.bugzilla.kernel.org/>
(switched to email. Please respond via emailed reply-to-all, not via the
bugzilla web interface).
On Mon, 23 Feb 2009 22:08:37 -0800 (PST)
bugme-daemon@bugzilla.kernel.org wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=12768
There's additional info at the link.
> Summary: usb_alloc_urb() leaks memory together with uvcvideo
> driver
> Product: Drivers
> Version: 2.5
> KernelVersion: 2.6.28
> Platform: All
> OS/Version: Linux
> Tree: Mainline
> Status: NEW
> Severity: normal
> Priority: P1
> Component: USB
> AssignedTo: greg@kroah.com
> ReportedBy: nm127@freemail.hu
>
>
> Latest working kernel version:
> Earliest failing kernel version:
> Distribution:
> Hardware Environment: EeePC 901
> Software Environment: Debian 5.0
> Problem Description:
>
> Steps to reproduce:
> 1. Boot the system
> 2. start an xterm window and execute the following command:
>
> $ while true; do clear; cat /proc/slab_allocators |grep usb_alloc; sleep 1;
> done
>
> This will print out similar lines each second:
>
> size-2048: 18 usb_alloc_dev+0x1d/0x212 [usbcore]
> size-2048: 2280 usb_alloc_urb+0xc/0x2b [usbcore]
> size-1024: 85 usb_alloc_urb+0xc/0x2b [usbcore]
> size-128: 10 usb_alloc_urb+0xc/0x2b [usbcore]
>
> 3. Start xawtv, this will show the picture of the webcam
> 4. Exit xawtv
>
> Current result:
> In the output of /proc/slab_allocators the number of blocks allocated by
> usb_alloc_urb() increases, however, the xawtv is no longer running:
>
> size-2048: 18 usb_alloc_dev+0x1d/0x212 [usbcore]
> size-2048: 2280 usb_alloc_urb+0xc/0x2b [usbcore]
> size-1024: 100 usb_alloc_urb+0xc/0x2b [usbcore]
> size-128: 10 usb_alloc_urb+0xc/0x2b [usbcore]
>
> Each time xawtv is started and stopped the value increases at the
> usb_alloc_urb().
>
> Expected result: the same memory usage is reached again after xawtv exited.
>
I assume this is a v4l bug and not a USB core bug?
next parent reply other threads:[~2009-02-24 21:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-12768-10286@http.bugzilla.kernel.org/>
2009-02-24 21:57 ` Andrew Morton [this message]
2009-02-24 22:37 ` [Bugme-new] [Bug 12768] New: usb_alloc_urb() leaks memory together with uvcvideo driver Markus Rechberger
2009-02-25 2:02 ` Mauro Carvalho Chehab
2009-02-25 2:15 ` Markus Rechberger
2009-02-25 3:23 ` Andrew Morton
2009-02-25 3:35 ` Markus Rechberger
2009-02-25 7:44 ` Németh Márton
2009-02-25 12:49 ` Mauro Carvalho Chehab
2009-02-25 21:55 ` Laurent Pinchart
2009-02-26 1:39 ` Mauro Carvalho Chehab
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=20090224135720.9e752fee.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=bugme-daemon@bugzilla.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=nm127@freemail.hu \
/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