All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] netfilter: reset nf_trace in nf_reset
@ 2013-03-22  5:48 Gao feng
  2013-03-22  5:48 ` [PATCH 2/2] netfilter: TRACE: use IS_ENABLE to replace if defined Gao feng
  2013-03-25 19:31 ` [PATCH 1/2] netfilter: reset nf_trace in nf_reset Pablo Neira Ayuso
  0 siblings, 2 replies; 4+ messages in thread
From: Gao feng @ 2013-03-22  5:48 UTC (permalink / raw)
  To: netfilter-devel, netdev; +Cc: Gao feng

We forgot to clear the nf_trace of sk_buff in nf_reset,
When we use veth device, this nf_trace information will
be leaked from one net namespace to another net namespace.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
---
 include/linux/skbuff.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 441f5bf..72b3967 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -2641,6 +2641,9 @@ static inline void nf_reset(struct sk_buff *skb)
 	nf_bridge_put(skb->nf_bridge);
 	skb->nf_bridge = NULL;
 #endif
+#if IS_ENABLED(CONFIG_NETFILTER_XT_TARGET_TRACE)
+	skb->nf_trace = 0;
+#endif
 }
 
 /* Note: This doesn't put any conntrack and bridge info in dst. */
-- 
1.7.11.7


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-01 23:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-22  5:48 [PATCH 1/2] netfilter: reset nf_trace in nf_reset Gao feng
2013-03-22  5:48 ` [PATCH 2/2] netfilter: TRACE: use IS_ENABLE to replace if defined Gao feng
2013-04-01 23:21   ` Pablo Neira Ayuso
2013-03-25 19:31 ` [PATCH 1/2] netfilter: reset nf_trace in nf_reset Pablo Neira Ayuso

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.