netfilter: netfilter fixes for 2.6.39-rc7 (2nd round)
Subsystems (3)
[email protected]
maintainerPATCH 1/1 netfilter: netfilter fixes for 2.6.39-rc7 (2nd round)
From: Pablo Neira Ayuso <[email protected]>
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(-)
Signature · 1 line
1.7.2.5
[email protected]
maintainerPATCH 1/1 IPVS: fix netns if reading ip_vs_* procfs entries
From: Hans Schillstrom <[email protected]>
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.
--- 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(-)
net/netfilter/ipvs/ip_vs_app.c +1 -1
@@ -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
net/netfilter/ipvs/ip_vs_conn.c +2 -2
@@ -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
net/netfilter/ipvs/ip_vs_ctl.c +3 -3
@@ -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
Signature · 1 line
1.7.2.5
David Miller
maintainerFrom: [email protected]
Date: Sun, 15 May 2011 17:57:56 +0200
Quoted 5 lines
following are one late fix for 2.6.39-rc7 from the IPVS guys.
Please pull from:
git://1984.lsi.us.es/net-2.6pablo/nf-2.6-updates
Pulled, thanks.