From: Jacob Gorm Hansen Subject: Re: Freeing skbs (again) Date: Tue, 27 Apr 2004 18:40:40 +0200 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <1083084040.25203.230.camel@jacobg> References: <1083077669.25203.111.camel@jacobg> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1083077669.25203.111.camel@jacobg> Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Xen list List-Id: xen-devel@lists.xenproject.org On Tue, 2004-04-27 at 16:54, Jacob Gorm Hansen wrote: > struct sk_buff* skb = np->rx_skbs[id]; > dev_kfree_skb_any(skb); > } > > > -- which crashes on dev_kfree_skb_any(). I guess I know why now. The skb->head ptrs all point to pages that are no longer mapped, this is why accessing data pointed to by skb_shinfo() (which the dealloc routine does) is bad. I could manually kfree(skb->head); but this still leaves empty mappings in the virtual memory map :-( I guess I need to flush the rings instead, but I suppose that means xen-queued outgoing packets will be dropped? Maybe I will just have to live with that. Jacob ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297