From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Patrick McHardy <kaber@trash.net>,
Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
"David S. Miller" <davem@davemloft.net>,
netfilter-devel@vger.kernel.org, coreteam@netfilter.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] netfilter: fix xt_TEE and xt_TPROXY dependencies
Date: Wed, 11 Nov 2015 14:19:00 +0100 [thread overview]
Message-ID: <20151111131900.GB6079@salvia> (raw)
In-Reply-To: <8068952.JJURCanWFy@wuerfel>
On Tue, Nov 10, 2015 at 01:22:15PM +0100, Arnd Bergmann wrote:
> Kconfig is too smart for its own good: a Kconfig line that states
>
> select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
>
> means that if IP6_NF_IPTABLES is set to 'm', then NF_DEFRAG_IPV6 will
> also be set to 'm', regardless of the state of the symbol from which
> it is selected. When the xt_TEE driver is built-in and nothing else
> forces NF_DEFRAG_IPV6 to be built-in, this causes a link-time error:
>
> net/built-in.o: In function `tee_tg6':
> net/netfilter/xt_TEE.c:46: undefined reference to `nf_dup_ipv6'
>
> This works around that behavior by changing the dependency to
> 'if IP6_NF_IPTABLES != n', which is interpreted as boolean expression
> rather than a tristate and causes the NF_DEFRAG_IPV6 symbol to
> be built-in as well.
>
> The bug only occurs once in thousands of 'randconfig' builds and
> does not really impact real users. From inspecting the other
> surrounding Kconfig symbols, I am guessing that NETFILTER_XT_TARGET_TPROXY
> and NETFILTER_XT_MATCH_SOCKET have the same issue. If not, this
> change should still be harmless.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> I have done a few thousand randconfig builds with this applied, and the
> problem did not come back, but it is super-rare.
>
> Several people have tried to fix this in the past, but so far
> every patch was wrong. Maybe this one is lucky.
Also applied, thanks Arnd!
prev parent reply other threads:[~2015-11-11 13:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-10 12:22 [PATCH] netfilter: fix xt_TEE and xt_TPROXY dependencies Arnd Bergmann
2015-11-11 13:19 ` Pablo Neira Ayuso [this message]
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=20151111131900.GB6079@salvia \
--to=pablo@netfilter.org \
--cc=arnd@arndb.de \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=kaber@trash.net \
--cc=kadlec@blackhole.kfki.hu \
--cc=linux-kernel@vger.kernel.org \
--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).