* [GIT PULL nf] IPVS Fixes for v3.16
@ 2014-06-13 7:37 Simon Horman
2014-06-13 7:37 ` [PATCH] ipvs: stop tot_stats estimator only under CONFIG_SYSCTL Simon Horman
2014-06-16 11:11 ` [GIT PULL nf] IPVS Fixes for v3.16 Pablo Neira Ayuso
0 siblings, 2 replies; 4+ messages in thread
From: Simon Horman @ 2014-06-13 7:37 UTC (permalink / raw)
To: Pablo Neira Ayuso
Cc: lvs-devel, netdev, netfilter-devel, Wensong Zhang,
Julian Anastasov, Simon Horman
Hi Pablo,
Please consider this IPVS fix for v3.16.
Fix for panic due use of tot_stats estimator outside of CONFIG_SYSCTL
It has been present since v3.6.39.
I would like this fix considered for -stable and I have checked that it
applies cleanly on top of v3.15, v3.14.7, v3.12.22, v3.10.43 and v3.2.60.
The following changes since commit f44a5f45f544561302e855e7bd104e5f506ec01b:
ipvs: Fix panic due to non-linear skb (2014-05-26 10:22:46 +0900)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs.git ipvs-fixes-for-v3.16
for you to fetch changes up to 9802d21e7a0b0d2167ef745edc1f4ea7a0fc6ea3:
ipvs: stop tot_stats estimator only under CONFIG_SYSCTL (2014-06-13 16:22:25 +0900)
----------------------------------------------------------------
IPVS Fixes for v3.16
Fix for panic due use of tot_stats estimator outside of CONFIG_SYSCTL
This resolves a bug introduced in v3.6.39 by 14e405461e664b
("IPVS: Add __ip_vs_control_{init,cleanup}_sysctl()").
----------------------------------------------------------------
Julian Anastasov (1):
ipvs: stop tot_stats estimator only under CONFIG_SYSCTL
net/netfilter/ipvs/ip_vs_ctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ipvs: stop tot_stats estimator only under CONFIG_SYSCTL
2014-06-13 7:37 [GIT PULL nf] IPVS Fixes for v3.16 Simon Horman
@ 2014-06-13 7:37 ` Simon Horman
2014-06-16 11:11 ` [GIT PULL nf] IPVS Fixes for v3.16 Pablo Neira Ayuso
1 sibling, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-06-13 7:37 UTC (permalink / raw)
To: Pablo Neira Ayuso
Cc: lvs-devel, netdev, netfilter-devel, Wensong Zhang,
Julian Anastasov, Simon Horman
From: Julian Anastasov <ja@ssi.bg>
The tot_stats estimator is started only when CONFIG_SYSCTL
is defined. But it is stopped without checking CONFIG_SYSCTL.
Fix the crash by moving ip_vs_stop_estimator into
ip_vs_control_net_cleanup_sysctl.
The change is needed after commit 14e405461e664b
("IPVS: Add __ip_vs_control_{init,cleanup}_sysctl()") from 2.6.39.
Reported-by: Jet Chen <jet.chen@intel.com>
Tested-by: Jet Chen <jet.chen@intel.com>
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
---
net/netfilter/ipvs/ip_vs_ctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index c42e83d..581a658 100644
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -3778,6 +3778,7 @@ static void __net_exit ip_vs_control_net_cleanup_sysctl(struct net *net)
cancel_delayed_work_sync(&ipvs->defense_work);
cancel_work_sync(&ipvs->defense_work.work);
unregister_net_sysctl_table(ipvs->sysctl_hdr);
+ ip_vs_stop_estimator(net, &ipvs->tot_stats);
}
#else
@@ -3840,7 +3841,6 @@ void __net_exit ip_vs_control_net_cleanup(struct net *net)
struct netns_ipvs *ipvs = net_ipvs(net);
ip_vs_trash_cleanup(net);
- ip_vs_stop_estimator(net, &ipvs->tot_stats);
ip_vs_control_net_cleanup_sysctl(net);
remove_proc_entry("ip_vs_stats_percpu", net->proc_net);
remove_proc_entry("ip_vs_stats", net->proc_net);
--
2.0.0.rc2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [GIT PULL nf] IPVS Fixes for v3.16
2014-06-13 7:37 [GIT PULL nf] IPVS Fixes for v3.16 Simon Horman
2014-06-13 7:37 ` [PATCH] ipvs: stop tot_stats estimator only under CONFIG_SYSCTL Simon Horman
@ 2014-06-16 11:11 ` Pablo Neira Ayuso
2014-06-17 12:40 ` Simon Horman
1 sibling, 1 reply; 4+ messages in thread
From: Pablo Neira Ayuso @ 2014-06-16 11:11 UTC (permalink / raw)
To: Simon Horman
Cc: lvs-devel, netdev, netfilter-devel, Wensong Zhang,
Julian Anastasov
On Fri, Jun 13, 2014 at 04:37:08PM +0900, Simon Horman wrote:
> Hi Pablo,
>
> Please consider this IPVS fix for v3.16.
>
> Fix for panic due use of tot_stats estimator outside of CONFIG_SYSCTL
>
> It has been present since v3.6.39.
>
> I would like this fix considered for -stable and I have checked that it
> applies cleanly on top of v3.15, v3.14.7, v3.12.22, v3.10.43 and v3.2.60.
>
>
> The following changes since commit f44a5f45f544561302e855e7bd104e5f506ec01b:
>
> ipvs: Fix panic due to non-linear skb (2014-05-26 10:22:46 +0900)
>
> are available in the git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs.git ipvs-fixes-for-v3.16
Pulled, thanks Simon.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [GIT PULL nf] IPVS Fixes for v3.16
2014-06-16 11:11 ` [GIT PULL nf] IPVS Fixes for v3.16 Pablo Neira Ayuso
@ 2014-06-17 12:40 ` Simon Horman
0 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2014-06-17 12:40 UTC (permalink / raw)
To: Pablo Neira Ayuso
Cc: lvs-devel, netdev, netfilter-devel, Wensong Zhang,
Julian Anastasov
On Mon, Jun 16, 2014 at 01:11:15PM +0200, Pablo Neira Ayuso wrote:
> On Fri, Jun 13, 2014 at 04:37:08PM +0900, Simon Horman wrote:
> > Hi Pablo,
> >
> > Please consider this IPVS fix for v3.16.
> >
> > Fix for panic due use of tot_stats estimator outside of CONFIG_SYSCTL
> >
> > It has been present since v3.6.39.
> >
> > I would like this fix considered for -stable and I have checked that it
> > applies cleanly on top of v3.15, v3.14.7, v3.12.22, v3.10.43 and v3.2.60.
> >
> >
> > The following changes since commit f44a5f45f544561302e855e7bd104e5f506ec01b:
> >
> > ipvs: Fix panic due to non-linear skb (2014-05-26 10:22:46 +0900)
> >
> > are available in the git repository at:
> >
> > git://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs.git ipvs-fixes-for-v3.16
>
> Pulled, thanks Simon.
Thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-17 12:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-13 7:37 [GIT PULL nf] IPVS Fixes for v3.16 Simon Horman
2014-06-13 7:37 ` [PATCH] ipvs: stop tot_stats estimator only under CONFIG_SYSCTL Simon Horman
2014-06-16 11:11 ` [GIT PULL nf] IPVS Fixes for v3.16 Pablo Neira Ayuso
2014-06-17 12:40 ` Simon Horman
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).