From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Florian Westphal <fw@strlen.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nf-next 1/2] netfilter: kill the fake untracked conntrack objects
Date: Sat, 15 Apr 2017 11:49:29 +0200 [thread overview]
Message-ID: <20170415094929.GA14660@salvia> (raw)
In-Reply-To: <20170415094315.GA1707@breakpoint.cc>
On Sat, Apr 15, 2017 at 11:43:15AM +0200, Florian Westphal wrote:
> Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> > Hi Florian,
> >
> > On Fri, Apr 14, 2017 at 08:31:08PM +0200, Florian Westphal wrote:
> > [...]
> > > resurrect an old patch from Pablo Neira to remove the untracked objects.
> >
> > Thanks for doing so :)
> >
> > > diff --git a/include/uapi/linux/netfilter/nf_conntrack_common.h b/include/uapi/linux/netfilter/nf_conntrack_common.h
> > > index 6a8e33dd4ecb..b4a0a1940118 100644
> > > --- a/include/uapi/linux/netfilter/nf_conntrack_common.h
> > > +++ b/include/uapi/linux/netfilter/nf_conntrack_common.h
> > > @@ -28,12 +28,14 @@ enum ip_conntrack_info {
> > > /* only for userspace compatibility */
> > > #ifndef __KERNEL__
> > > IP_CT_NEW_REPLY = IP_CT_NUMBER,
> > > +#else
> > > + IP_CT_UNTRACKED = 7,
> >
> > This seems to be exposed via nfnetlink_queue conntrack support.
>
> Yet another argument for removing this, its a bug.
> (missing !nf_ct_is_untracked() check).
>
> Probably should also check !nf_ct_is_template() there.
We already do there. So no problem :)
> > > @@ -94,7 +96,7 @@ enum ip_conntrack_status {
> > > IPS_TEMPLATE_BIT = 11,
> > > IPS_TEMPLATE = (1 << IPS_TEMPLATE_BIT),
> > >
> > > - /* Conntrack is a fake untracked entry */
> > > + /* Conntrack is a fake untracked entry. Obsolete and not used anymore */
> > > IPS_UNTRACKED_BIT = 12,
> > > IPS_UNTRACKED = (1 << IPS_UNTRACKED_BIT),
> >
> > I wonder if we should just set this via ctnetlink, so the interface
> > keeps stable. Even if we don't use this bit anymore. These are also
> > exposed via ctnetlink CTA_STATUS.
>
> Not following, sorry (still jetlagged).
> ctnetlink_new_conntrack() always places the ct into the hashes, so its
> not 'untracked'.
>
> Setting and/or changing IPS_UNTRACKED_BIT via ctnetlink should be
> disallowed.
>
> Is that what you meant?
Just got confused in this nfnetlink_queue path, this looks good! :)
next prev parent reply other threads:[~2017-04-15 9:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-14 18:31 [PATCH nf-next 1/2] netfilter: kill the fake untracked conntrack objects Florian Westphal
2017-04-14 18:31 ` [PATCH nf-next 2/2] netfilter: remove nf_ct_is_untracked Florian Westphal
2017-04-15 9:21 ` [PATCH nf-next 1/2] netfilter: kill the fake untracked conntrack objects Pablo Neira Ayuso
2017-04-15 9:43 ` Florian Westphal
2017-04-15 9:49 ` Pablo Neira Ayuso [this message]
2017-04-15 9:47 ` Pablo Neira Ayuso
-- strict thread matches above, loose matches on Subject: below --
2017-03-08 12:49 [PATCH nf-next 0/2] netfilter: untracked object removal Florian Westphal
2017-03-08 12:49 ` [PATCH nf-next 1/2] netfilter: kill the fake untracked conntrack objects Florian Westphal
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=20170415094929.GA14660@salvia \
--to=pablo@netfilter.org \
--cc=fw@strlen.de \
--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).