[B.A.T.M.A.N.] [PATCH] batman-adv-kernelland: Fix memory corruption bug

Scott Raynel scottraynel at gmail.com
Fri Dec 5 10:40:30 UTC 2008

Hi Simon,

On 5/12/2008, at 12:35 AM, Simon Wunderlich wrote:

> Hey Scott,
> thank you very much for the fix! Can you confirm if this bug is  
> related
> to https://dev.open-mesh.net/batman/ticket/86 ?
> This bug has very likely been caused by a memory corruption, but i
> couldn´t find where. (i have not experienced any kernel panics by  
> this
> however ...).

It is quite possible that they are related. The slab error states that  
a memory allocation was overwritten - the same problem as my patch  
fixed. However, I can't confirm whether it is the same memory  
allocation or a different one. The stack trace I got specifically  
mentioned the kfree() in send_own_packet(), whereas this stack trace  
does not.

Is that bug easily reproducible? It will be a couple of days before I  
can try to look at it.

Also, the stack trace is confusing as it appears to indicate a kfree()  
within hardif_min_mtu(), which I can't find :)

I'll try to do some stress testing of the module with the slab  
debugger turned on for a while and see what happens.


Scott Raynel
WAND Network Research Group
Department of Computer Science
University of Waikato
New Zealand

More information about the B.A.T.M.A.N mailing list