From: "Mikael Starvik" <mikael.starvik@axis.com>
To: "Mikael Starvik" <mikael.starvik@axis.com>,
"'Patrick McHardy'" <kaber@trash.net>
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 13:58:11 +0100 [thread overview]
Message-ID: <BFECAF9E178F144FAEF2BF4CE739C66803BEED34@exmail1.se.axis.com> (raw)
In-Reply-To: <BFECAF9E178F144FAEF2BF4CE739C668030B5907@exmail1.se.axis.com>
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?
/Mikael
-----Original Message-----
From: Mikael Starvik
Sent: Wednesday, January 10, 2007 12:29 PM
To: 'Patrick McHardy'; Mikael Starvik
Cc: 'Linux Kernel Mailing List'; Edgar Iglesias; 'Netfilter Development
Mailinglist'
Subject: RE: Iptable loop during kernel startup
>Which iptables/kernel versions are you using?
2.6.19. After further testing it seams to be a compiler/CPU issue. The exact
same kernelconfig works on ARM. So I have to dig some...
/Mikael
next prev parent reply other threads:[~2007-01-10 12:58 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 ` Mikael Starvik
2007-01-10 12:49 ` Patrick McHardy
2007-01-10 12:58 ` Mikael Starvik [this message]
2007-01-10 13:05 ` Patrick McHardy
[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=BFECAF9E178F144FAEF2BF4CE739C66803BEED34@exmail1.se.axis.com \
--to=mikael.starvik@axis.com \
--cc=edgar.iglesias@axis.com \
--cc=kaber@trash.net \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®