Re: device driver memory leak in 5.1-20030726?

From: John-Mark Gurney <gurney_j_at_efn.org>
Date: Sun, 27 Jul 2003 17:50:01 -0700
Lukas Ertl wrote this message on Mon, Jul 28, 2003 at 01:11 +0200:
> On Sun, 27 Jul 2003, John-Mark Gurney wrote:
> Then I have no explanation.  I'm running the box with a WiFi card,
> generating lots of network traffic, and the box is running fine, no
> panics, and low devbuf allocation.  I'm running the box with the USB
> Bluetooth dongle, generating much less traffic (it's just a 9.6kbit GSM
> link), and the box panics within half an hour in kmem_malloc, with devbuf
> allocation up to 74MB.  It must be either in the Bluetooth code or in the
> USB code.

Hmm. this is wierd, it appears to be a bug in the Netgraph code.  There
is a bit of code that allocates memory for the data, and then promptly
overwrites the malloc w/ data from the mbuf.

Try the attached patch.  This could VERY well crash your machine as I
don't know mbuf code very well.

Thanks.

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."

Received on Sun Jul 27 2003 - 15:50:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:16 UTC