Hi Pekka. On Fri, Jul 18, 2008 at 12:02:26PM +0300, Pekka Enberg (penberg@cs.helsinki.fi) wrote:Does it also scream on double free event? Just to closer guilty circles... 0x9c offset is somewhere at the very end of the skbuff structure, likely skb->users. Can you also check in some kind of this patch to catch freed skb freeing for testing? diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 3666216..dda96bf 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -419,6 +419,14 @@ void kfree_skb(struct sk_buff *skb) { if (unlikely(!skb)) return; + + { + u8 *ptr = (u8 *)(&skb->users); + + if (*ptr == POISON_FREE || *ptr == POISON_INUSE || *ptr == POISON_END) + BUG(); + } + if (likely(atomic_read(&skb->users) == 1)) smp_rmb(); else if (likely(!atomic_dec_and_test(&skb->users))) -- Evgeniy Polyakov -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Rob Landley | What still uses the block layer? |
git: | |
| Antonio Almeida | HTB accuracy for high speed |
| Alexey Dobriyan | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
