From: KOVACS Krisztian <hidden@sch.bme.hu>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: kaber@trash.net, hidden@sch.bme.hu, netfilter-devel@vger.kernel.org
Subject: Re: [PATCH] TPROXY cleanups
Date: Mon, 6 Oct 2008 14:26:03 +0200 [thread overview]
Message-ID: <20081006122603.GA18559@sch.bme.hu> (raw)
In-Reply-To: <20081006121943.GA13547@x200.localdomain>
Hi,
On h, okt 06, 2008 at 04:19:44 +0400, Alexey Dobriyan wrote:
> * drop version.h -- unneeded and file will be needlessly rebuilt.
> * make tproxy_core unloadable
> * use "in" device outright, -- target and match are only in PRE_ROUTING,
> so should avoid dereference.
>
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> ---
>
> net/netfilter/nf_tproxy_core.c | 5 ++++-
> net/netfilter/xt_TPROXY.c | 2 +-
> net/netfilter/xt_socket.c | 2 +-
> 3 files changed, 6 insertions(+), 3 deletions(-)
>
> --- a/net/netfilter/nf_tproxy_core.c
> +++ b/net/netfilter/nf_tproxy_core.c
> @@ -10,7 +10,6 @@
> *
> */
>
> -#include <linux/version.h>
> #include <linux/module.h>
>
> #include <linux/net.h>
> @@ -89,7 +88,11 @@ static int __init nf_tproxy_init(void)
> return 0;
> }
>
> +static void __exit nf_tproxy_exit(void)
> +{
> +}
> module_init(nf_tproxy_init);
> +module_exit(nf_tproxy_exit);
Please don't do this. The module was made unloadable because it attaches a
function pointer to skb's and removing the module while there's an skb in
flight would cause a kernel crash.
Thanks for the other cleanups, though.
--
KOVACS Krisztian
next prev parent reply other threads:[~2008-10-06 12:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-06 12:19 [PATCH] TPROXY cleanups Alexey Dobriyan
2008-10-06 12:26 ` KOVACS Krisztian [this message]
2008-10-06 12:39 ` Alexey Dobriyan
2008-10-06 14:15 ` KOVACS Krisztian
2008-10-06 15:41 ` Patrick McHardy
2008-10-07 6:32 ` KOVACS Krisztian
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=20081006122603.GA18559@sch.bme.hu \
--to=hidden@sch.bme.hu \
--cc=adobriyan@gmail.com \
--cc=kaber@trash.net \
--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 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.