From: Patrick McHardy <kaber@trash.net>
To: Mikael Starvik <mikael.starvik@axis.com>
Cc: "'Linux Kernel Mailing List'" <linux-kernel@vger.kernel.org>,
Edgar Iglesias <edgar.iglesias@axis.com>,
"'Netfilter Development Mailinglist'"
<netfilter-devel@lists.netfilter.org>
Subject: Re: Iptable loop during kernel startup
Date: Wed, 10 Jan 2007 14:05:21 +0100 [thread overview]
Message-ID: <45A4E491.90106@trash.net> (raw)
In-Reply-To: <BFECAF9E178F144FAEF2BF4CE739C66803BEED34@exmail1.se.axis.com>
Mikael Starvik wrote:
> Ok, this is what happens:
>
> iptable_filter sets up initial_table.
> The part that says { IPT_ALIGN(sizeof(struct ipt_standard_target)), "" }
> initializes a xt_entry_target struct. target_size gets the value
> 0x24 and name "".
> This is copied to loc_cpu_entry in iptables.c:ipt_register_table()
> and translate_table is called
> translate_table calls IPT_ENTRY_ITERATE with the
> check_entry_function
> check_entry does t->u.kernel.target = target;
>
> On this particular architecture u.user.name and u.kernel.target in
> struct xt_entry_target has the same address (because of the union). So
> name that was previously "" gets mangled here.
>
> check_entry returns into translate_table which calls mark_source_chains
> mark_source_chains compares t->target.u.user.name with
> IPT_STANDARD_TARGET. name has been mangled above and the comparision
> fails. On my ARM platform name has not been mangled (I guess this is
> because target and name doesn't share address by I haven't checked).
>
> So... Is it really correct to modify the target pointer there?
Please try the latest -stable kernel, this should be fixed already.
next prev parent reply other threads:[~2007-01-10 13:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <BFECAF9E178F144FAEF2BF4CE739C668044DEB07@exmail1.se.axis.com>
2007-01-10 11:29 ` Iptable loop during kernel startup Mikael Starvik
2007-01-10 12:49 ` Patrick McHardy
2007-01-10 12:58 ` Mikael Starvik
2007-01-10 13:05 ` Patrick McHardy [this message]
[not found] <BFECAF9E178F144FAEF2BF4CE739C668044DEB69@exmail1.se.axis.com>
2007-01-10 13:00 ` Mikael Starvik
2007-01-10 10:01 Mikael Starvik
2007-01-10 10: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=45A4E491.90106@trash.net \
--to=kaber@trash.net \
--cc=edgar.iglesias@axis.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mikael.starvik@axis.com \
--cc=netfilter-devel@lists.netfilter.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