From: Pascal Bouchareine Subject: Re: [PATCH] linux-2.6.18-xen.hg ebtables panic Date: Mon, 4 Feb 2008 15:07:00 +0100 Message-ID: <20080204140700.GA21636@bar.gandi.net> References: <20080204124754.GA12860@bar.gandi.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="BOKacYhQ+x31HxR3" Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Thanks, here it is. Pascal On Mon, Feb 04, 2008 at 01:33:03PM +0000, Keir Fraser wrote: > Send it to the list as a plain-text attachment and I'll apply it. > > -- Keir > > > http://www.ussg.iu.edu/hypermail/linux/kernel/0612.3/0142.html > > > > This fixes a kernel panic when using ebtables on 2.6.18.8 > > > > Thanks -- \o/ Pascal Bouchareine - Gandi g 0170393757 15, place de la Nation - 75011 Paris --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ebtables-panic.patch" diff -r 6c81f3879f3d net/bridge/netfilter/ebtables.c --- a/net/bridge/netfilter/ebtables.c Wed Oct 31 09:42:20 2007 +0000 +++ b/net/bridge/netfilter/ebtables.c Mon Feb 04 14:41:09 2008 +0100 @@ -597,7 +597,7 @@ ebt_check_entry(struct ebt_entry *e, str struct ebt_entry_target *t; struct ebt_target *target; unsigned int i, j, hook = 0, hookmask = 0; - size_t gap = e->next_offset - e->target_offset; + size_t gap; int ret; /* don't mess with the struct ebt_entries */ @@ -647,6 +647,7 @@ ebt_check_entry(struct ebt_entry *e, str if (ret != 0) goto cleanup_watchers; t = (struct ebt_entry_target *)(((char *)e) + e->target_offset); + gap = e->next_offset - e->target_offset; target = find_target_lock(t->u.name, &ret, &ebt_mutex); if (!target) goto cleanup_watchers; --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --BOKacYhQ+x31HxR3--