From: Phil Sutter <phil@nwl.cc>
To: Serhey Popovych <serhe.popovych@gmail.com>
Cc: netfilter-devel@vger.kernel.org, willem.j.debruijn@gmail.com
Subject: Re: [PATCH iptables 1/4] xtables: Do not register matches/targets with incompatible revision
Date: Fri, 18 Sep 2020 16:13:50 +0200 [thread overview]
Message-ID: <20200918141350.GB19674@orbyte.nwl.cc> (raw)
In-Reply-To: <1520413843-24456-2-git-send-email-serhe.popovych@gmail.com>
Hi Serhey,
On Wed, Mar 07, 2018 at 11:10:40AM +0200, Serhey Popovych wrote:
> If kernel tells revision isn't found/supported at the moment we should
> keep entity in pending list, not register or bail to do so later.
This causes a problem in particular with conntrack match (but others may
be affected as well): If the kernel doesn't support an older revision of
the match, it stays in pending list and is retried for each new rule
using the match.
> Kernel might still load module for entity we asking it for and this
> could be slow on some embedded devices.
Is this a speculative problem or did you see it in reality? I'm
wondering because kernel uses try_then_request_module() to load the
missing extension which calls __request_module() with 'wait' parameter
set to true. So unless the called usermode helper is behaving unexpected
(e.g. fork and load in background), the call to
compatible_match_revision() should block until the module has been
loaded, no?
> Catch double registration attempts by checking me->next being non-NULL
> in xtables_register_match() and xtables_register_target().
Is this a side-effect of the above or an independent fix?
Cheers, Phil
parent reply other threads:[~2020-09-18 14:13 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1520413843-24456-2-git-send-email-serhe.popovych@gmail.com>]
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=20200918141350.GB19674@orbyte.nwl.cc \
--to=phil@nwl.cc \
--cc=netfilter-devel@vger.kernel.org \
--cc=serhe.popovych@gmail.com \
--cc=willem.j.debruijn@gmail.com \
/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).