* [PATCH] netfilter fix for net
@ 2013-10-29 12:13 Pablo Neira Ayuso
2013-10-29 12:13 ` [PATCH] netfilter: xt_NFQUEUE: fix --queue-bypass regression Pablo Neira Ayuso
2013-10-29 20:54 ` [PATCH] netfilter fix for net David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2013-10-29 12:13 UTC (permalink / raw)
To: netfilter-devel; +Cc: davem, netdev
Hi David,
This pull request contains the following netfilter fix:
* fix --queue-bypass in xt_NFQUEUE revision 3. While adding the
revision 3 of this target, the bypass flags were not correctly
handled anymore, thus, breaking packet bypassing if no application
is listening from userspace, patch from Holger Eitzenberger,
reported by Florian Westphal.
You can pull this change from:
git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git master
Thanks!
----------------------------------------------------------------
The following changes since commit fecda03493646b53f53892fa3c38c75ba9310374:
net: sctp: fix ASCONF to allow non SCTP_ADDR_SRC addresses in ipv6 (2013-10-23 16:57:14 -0400)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git master
for you to fetch changes up to d954777324ffcba0b2f8119c102237426c654eeb:
netfilter: xt_NFQUEUE: fix --queue-bypass regression (2013-10-29 13:05:54 +0100)
----------------------------------------------------------------
Holger Eitzenberger (1):
netfilter: xt_NFQUEUE: fix --queue-bypass regression
net/netfilter/xt_NFQUEUE.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] netfilter: xt_NFQUEUE: fix --queue-bypass regression
2013-10-29 12:13 [PATCH] netfilter fix for net Pablo Neira Ayuso
@ 2013-10-29 12:13 ` Pablo Neira Ayuso
2013-10-29 20:54 ` [PATCH] netfilter fix for net David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2013-10-29 12:13 UTC (permalink / raw)
To: netfilter-devel; +Cc: davem, netdev
From: Holger Eitzenberger <holger@eitzenberger.org>
V3 of the NFQUEUE target ignores the --queue-bypass flag,
causing packets to be dropped when the userspace listener
isn't running.
Regression is in since 8746ddcf12bb26 ("netfilter: xt_NFQUEUE:
introduce CPU fanout").
Reported-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
net/netfilter/xt_NFQUEUE.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/net/netfilter/xt_NFQUEUE.c b/net/netfilter/xt_NFQUEUE.c
index 1e2fae3..ed00fef 100644
--- a/net/netfilter/xt_NFQUEUE.c
+++ b/net/netfilter/xt_NFQUEUE.c
@@ -147,6 +147,7 @@ nfqueue_tg_v3(struct sk_buff *skb, const struct xt_action_param *par)
{
const struct xt_NFQ_info_v3 *info = par->targinfo;
u32 queue = info->queuenum;
+ int ret;
if (info->queues_total > 1) {
if (info->flags & NFQ_FLAG_CPU_FANOUT) {
@@ -157,7 +158,11 @@ nfqueue_tg_v3(struct sk_buff *skb, const struct xt_action_param *par)
queue = nfqueue_hash(skb, par);
}
- return NF_QUEUE_NR(queue);
+ ret = NF_QUEUE_NR(queue);
+ if (info->flags & NFQ_FLAG_BYPASS)
+ ret |= NF_VERDICT_FLAG_QUEUE_BYPASS;
+
+ return ret;
}
static struct xt_target nfqueue_tg_reg[] __read_mostly = {
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] netfilter fix for net
2013-10-29 12:13 [PATCH] netfilter fix for net Pablo Neira Ayuso
2013-10-29 12:13 ` [PATCH] netfilter: xt_NFQUEUE: fix --queue-bypass regression Pablo Neira Ayuso
@ 2013-10-29 20:54 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2013-10-29 20:54 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel, netdev
From: Pablo Neira Ayuso <pablo@netfilter.org>
Date: Tue, 29 Oct 2013 13:13:15 +0100
> This pull request contains the following netfilter fix:
>
> * fix --queue-bypass in xt_NFQUEUE revision 3. While adding the
> revision 3 of this target, the bypass flags were not correctly
> handled anymore, thus, breaking packet bypassing if no application
> is listening from userspace, patch from Holger Eitzenberger,
> reported by Florian Westphal.
>
> You can pull this change from:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git master
Pulled, thanks Pablo.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-29 20:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-29 12:13 [PATCH] netfilter fix for net Pablo Neira Ayuso
2013-10-29 12:13 ` [PATCH] netfilter: xt_NFQUEUE: fix --queue-bypass regression Pablo Neira Ayuso
2013-10-29 20:54 ` [PATCH] netfilter fix for net David Miller
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).