netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] netfilter: netfilter fixes for 2.6.39-rc7 (2nd round)
@ 2011-05-15 15:57 pablo
  2011-05-15 15:57 ` [PATCH] IPVS: fix netns if reading ip_vs_* procfs entries pablo
  2011-05-16  3:49 ` [PATCH] netfilter: netfilter fixes for 2.6.39-rc7 (2nd round) David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: pablo @ 2011-05-15 15:57 UTC (permalink / raw)
  To: netfilter-devel; +Cc: davem, Pablo Neira Ayuso

From: Pablo Neira Ayuso <pablo@netfilter.org>

Hi Dave,

following are one late fix for 2.6.39-rc7 from the IPVS guys.

Please pull from:

git://1984.lsi.us.es/net-2.6 pablo/nf-2.6-updates

Thanks!

Hans Schillstrom (1):
  IPVS: fix netns if reading ip_vs_* procfs entries

 net/netfilter/ipvs/ip_vs_app.c  |    2 +-
 net/netfilter/ipvs/ip_vs_conn.c |    4 ++--
 net/netfilter/ipvs/ip_vs_ctl.c  |    6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)

-- 
1.7.2.5


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

* [PATCH] IPVS: fix netns if reading ip_vs_* procfs entries
  2011-05-15 15:57 [PATCH] netfilter: netfilter fixes for 2.6.39-rc7 (2nd round) pablo
@ 2011-05-15 15:57 ` pablo
  2011-05-16  3:49 ` [PATCH] netfilter: netfilter fixes for 2.6.39-rc7 (2nd round) David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: pablo @ 2011-05-15 15:57 UTC (permalink / raw)
  To: netfilter-devel; +Cc: davem, Hans Schillstrom, Pablo Neira Ayuso

From: Hans Schillstrom <hans.schillstrom@ericsson.com>

Without this patch every access to ip_vs in procfs will increase
the netns count i.e. an unbalanced get_net()/put_net().
(ipvsadm commands also use procfs.)
The result is you can't exit a netns if reading ip_vs_* procfs entries.

Signed-off-by: Hans Schillstrom <hans.schillstrom@ericsson.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 net/netfilter/ipvs/ip_vs_app.c  |    2 +-
 net/netfilter/ipvs/ip_vs_conn.c |    4 ++--
 net/netfilter/ipvs/ip_vs_ctl.c  |    6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/net/netfilter/ipvs/ip_vs_app.c b/net/netfilter/ipvs/ip_vs_app.c
index 51f3af7..059af31 100644
--- a/net/netfilter/ipvs/ip_vs_app.c
+++ b/net/netfilter/ipvs/ip_vs_app.c
@@ -572,7 +572,7 @@ static const struct file_operations ip_vs_app_fops = {
 	.open	 = ip_vs_app_open,
 	.read	 = seq_read,
 	.llseek  = seq_lseek,
-	.release = seq_release,
+	.release = seq_release_net,
 };
 #endif
 
diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c
index d3fd91b..bf28ac2 100644
--- a/net/netfilter/ipvs/ip_vs_conn.c
+++ b/net/netfilter/ipvs/ip_vs_conn.c
@@ -1046,7 +1046,7 @@ static const struct file_operations ip_vs_conn_fops = {
 	.open    = ip_vs_conn_open,
 	.read    = seq_read,
 	.llseek  = seq_lseek,
-	.release = seq_release,
+	.release = seq_release_net,
 };
 
 static const char *ip_vs_origin_name(unsigned flags)
@@ -1114,7 +1114,7 @@ static const struct file_operations ip_vs_conn_sync_fops = {
 	.open    = ip_vs_conn_sync_open,
 	.read    = seq_read,
 	.llseek  = seq_lseek,
-	.release = seq_release,
+	.release = seq_release_net,
 };
 
 #endif
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index ea72281..37890f2 100644
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -2066,7 +2066,7 @@ static const struct file_operations ip_vs_info_fops = {
 	.open    = ip_vs_info_open,
 	.read    = seq_read,
 	.llseek  = seq_lseek,
-	.release = seq_release_private,
+	.release = seq_release_net,
 };
 
 #endif
@@ -2109,7 +2109,7 @@ static const struct file_operations ip_vs_stats_fops = {
 	.open = ip_vs_stats_seq_open,
 	.read = seq_read,
 	.llseek = seq_lseek,
-	.release = single_release,
+	.release = single_release_net,
 };
 
 static int ip_vs_stats_percpu_show(struct seq_file *seq, void *v)
@@ -2178,7 +2178,7 @@ static const struct file_operations ip_vs_stats_percpu_fops = {
 	.open = ip_vs_stats_percpu_seq_open,
 	.read = seq_read,
 	.llseek = seq_lseek,
-	.release = single_release,
+	.release = single_release_net,
 };
 #endif
 
-- 
1.7.2.5


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

* Re: [PATCH] netfilter: netfilter fixes for 2.6.39-rc7 (2nd round)
  2011-05-15 15:57 [PATCH] netfilter: netfilter fixes for 2.6.39-rc7 (2nd round) pablo
  2011-05-15 15:57 ` [PATCH] IPVS: fix netns if reading ip_vs_* procfs entries pablo
@ 2011-05-16  3:49 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2011-05-16  3:49 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel

From: pablo@netfilter.org
Date: Sun, 15 May 2011 17:57:56 +0200

> following are one late fix for 2.6.39-rc7 from the IPVS guys.
> 
> Please pull from:
> 
> git://1984.lsi.us.es/net-2.6 pablo/nf-2.6-updates

Pulled, thanks.

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

end of thread, other threads:[~2011-05-16  3:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-15 15:57 [PATCH] netfilter: netfilter fixes for 2.6.39-rc7 (2nd round) pablo
2011-05-15 15:57 ` [PATCH] IPVS: fix netns if reading ip_vs_* procfs entries pablo
2011-05-16  3:49 ` [PATCH] netfilter: netfilter fixes for 2.6.39-rc7 (2nd round) 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).