From: dann frazier <dannf@dannf.org>
To: Patrick McHardy <kaber@trash.net>
Cc: Eric Dumazet <eric.dumazet@gmail.com>,
netdev@vger.kernel.org,
"netfilter-devel@vger.kernel.org"
<netfilter-devel@vger.kernel.org>
Subject: Re: shutdown oops in xt_compat_calc_jump
Date: Tue, 5 Apr 2011 15:08:33 -0600 [thread overview]
Message-ID: <20110405210833.GA22667@dannf.org> (raw)
In-Reply-To: <4D9AF1C6.6050304@trash.net>
On Tue, Apr 05, 2011 at 12:41:10PM +0200, Patrick McHardy wrote:
> On 05.04.2011 09:17, Eric Dumazet wrote:
> > Here is the cumulative patch
>
>
> Thanks Eric. I'll wait for confirmation from Dann before applying
> this.
Yes, thanks Eric! I'll test as soon as I can take my laptop down..
-dann
>
> > [PATCH] netfilter: fix ebtables
> >
> > commit 255d0dc34068a976 (netfilter: x_table: speedup compat operations)
> > made ebtables not working anymore.
> >
> > 1) xt_compat_calc_jump() is not an exact match lookup, and
> > 2) compat_table_info() has a typo in xt_compat_init_offsets() call
> > 3) compat_do_replace() misses a xt_compat_init_offsets() call
> >
> > Reported-by: dann frazier <dannf@dannf.org>
> > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
> > ---
> > net/bridge/netfilter/ebtables.c | 3 ++-
> > net/netfilter/x_tables.c | 3 +++
> > 2 files changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c
> > index 893669c..c66aa80 100644
> > --- a/net/bridge/netfilter/ebtables.c
> > +++ b/net/bridge/netfilter/ebtables.c
> > @@ -1766,7 +1766,7 @@ static int compat_table_info(const struct ebt_table_info *info,
> >
> > newinfo->entries_size = size;
> >
> > - xt_compat_init_offsets(AF_INET, info->nentries);
> > + xt_compat_init_offsets(NFPROTO_BRIDGE, info->nentries /* + 4*/);
>
> I assume the /* + 4 */ is left over from debugging, I'll remove it
> before applying.
>
next prev parent reply other threads:[~2011-04-05 21:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20110404194856.GA3720@dannf.org>
2011-04-04 20:02 ` shutdown oops in xt_compat_calc_jump Patrick McHardy
2011-04-04 20:37 ` Eric Dumazet
2011-04-04 21:17 ` dann frazier
2011-04-04 22:48 ` Eric Dumazet
2011-04-05 6:24 ` Eric Dumazet
2011-04-05 7:17 ` Eric Dumazet
2011-04-05 10:41 ` Patrick McHardy
2011-04-05 21:08 ` dann frazier [this message]
2011-04-05 23:42 ` Florian Westphal
2011-04-06 4:42 ` Eric Dumazet
2011-04-06 7:40 ` Florian Westphal
2011-04-06 16:25 ` dann frazier
2011-04-06 16:44 ` Eric Dumazet
2011-04-06 16:49 ` Eric Dumazet
2011-04-06 18:45 ` dann frazier
2011-04-21 8:57 ` Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110405210833.GA22667@dannf.org \
--to=dannf@dannf.org \
--cc=eric.dumazet@gmail.com \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).