Skip to contentSkip to conversation

linux-2.6.18-xen.hg ebtables panic

PATCH In review Pascal Bouchareine 2 participants 3 messages Feb 4, 2008

Subsystems (3)
lore
Share & tools
lore
#2 lore raw

Thanks, here it is.

Pascal

Quoted 9 lines · Keir Fraser

Send it to the list as a plain-text attachment and I'll apply it.

-- Keir

Quoted 5 lines

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

Signature · 2 lines
\o/   Pascal Bouchareine - Gandi 
 g    0170393757           15, place de la Nation - 75011 Paris      
net/bridge/netfilter/ebtables.c +2 -1
diff -r 6c81f3879f3d net/bridge/netfilter/ebtables.c
@@ -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;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel