From: Stephen Hemminger <shemminger@vyatta.com>
To: Andreas Henriksson <andreas@fatal.se>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] tc: make symbols loaded from tc action modules global.
Date: Mon, 2 Aug 2010 09:55:13 -0700 [thread overview]
Message-ID: <20100802095513.1706f1e2@nehalam> (raw)
In-Reply-To: <20100802073032.GA32046@amd64.fatal.se>
On Mon, 2 Aug 2010 09:30:33 +0200
Andreas Henriksson <andreas@fatal.se> wrote:
> Fixes problems with xtables based MARK target ("ipt" module).
> When tc loads the "ipt" (xt) module it kept the symbols local,
> this made loading of libxtables not find the required struct.
>
> currently ipt/xt is the only tc action module.
> iproute2 never seem to do dlclose.
> hopefully the modules doesn't export more symbols then needed.
>
> In this situation hopefully the RTLD_GLOBAL flag won't hurt us.
>
> I've been using this patch in the Debian package of iproute for
> the last 3 weeks and noone has complained.
> ( This fixes http://bugs.debian.org/584898 )
>
> Signed-off-by: Andreas Henriksson <andreas@fatal.se>
> ---
> tc/m_action.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/tc/m_action.c b/tc/m_action.c
> index a198158..6464b2e 100644
> --- a/tc/m_action.c
> +++ b/tc/m_action.c
> @@ -99,7 +99,7 @@ restart_s:
> }
>
> snprintf(buf, sizeof(buf), "%s/m_%s.so", get_tc_lib(), str);
> - dlh = dlopen(buf, RTLD_LAZY);
> + dlh = dlopen(buf, RTLD_LAZY | RTLD_GLOBAL);
> if (dlh == NULL) {
> dlh = aBODY;
> if (dlh == NULL) {
Applied
prev parent reply other threads:[~2010-08-02 16:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-02 7:30 [PATCH] tc: make symbols loaded from tc action modules global Andreas Henriksson
2010-08-02 16:55 ` Stephen Hemminger [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=20100802095513.1706f1e2@nehalam \
--to=shemminger@vyatta.com \
--cc=andreas@fatal.se \
--cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.