netdev
[Top] [All Lists]

Re: skb allocation problems

To: Imran.Patel@xxxxxxxxx
Subject: Re: skb allocation problems
From: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Date: Wed, 11 Apr 2001 20:47:18 +1000
Cc: netdev@xxxxxxxxxxx
In-reply-to: Your message of "Mon, 09 Apr 2001 19:03:46 +0300." <2D6CADE9B0C6D411A27500508BB3CBD063CF07@eseis15nok>
Sender: owner-netdev@xxxxxxxxxxx
In message <2D6CADE9B0C6D411A27500508BB3CBD063CF07@eseis15nok> you write:
> 
> PRE_R: old skb:c371ee40  new skb:c371ee30 
> <7>NAT: 3 dropping untracked packet c350fa00 1 192.168.102.22 ->
> 192.168.102.29

Try poisoning the packet in __kfree_skb() (or skb_headerinit()):

        skb->head = skb->data = skb->tail = skb->end = NULL;

This will catch almost anyone using a freed packet, and you'll get a
OOPS in the right place.

Hope that helps,
Rusty.
--
Premature optmztion is rt of all evl. --DK

<Prev in Thread] Current Thread [Next in Thread>