ipvs: fix crash with sync protocol v0 and FTP
Subsystems (3)
Julian Anastasov
maintainerPATCH 1/1 ipvs: fix crash with sync protocol v0 and FTP
Fix crash in 3.5+ if FTP is used after switchingsync_version to 0.
Fixes 749c42b620a9 ("ipvs: reduce sync rate with time thresholds")
Signed-off-by Julian Anastasov <[email protected]>
--- net/netfilter/ipvs/ip_vs_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Compiles also on 3.10.81, 3.12.44, 3.14.45, 3.18.16, 4.0.6, 4.1
net/netfilter/ipvs/ip_vs_sync.c +1 -1
@@ -612,7 +612,7 @@ static void ip_vs_sync_conn_v0(struct net *net, struct ip_vs_conn *cp, pkts =atomic_add_return (1 , &cp->in_pkts); else pkts =sysctl_sync_threshold (ipvs); -ip_vs_sync_conn (net, cp->control, pkts); +ip_vs_sync_conn (net, cp, pkts); } }
Signature · 1 line
1.9.3
Quoted 5 lines · Julian Anastasov
Fix crash in 3.5+ if FTP is used after switching
sync_versionto 0.Fixes 749c42b620a9 ("ipvs: reduce sync rate with time thresholds")Signed-off-by Julian Anastasov <[email protected]>
Thanks, applied.
Quoted 22 lines
--- net/netfilter/ipvs/ip_vs_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Compiles also on 3.10.81, 3.12.44, 3.14.45, 3.18.16, 4.0.6, 4.1
net/netfilter/ipvs/ip_vs_sync.c +1
-1@@ -612,7 +612,7 @@ static void ip_vs_sync_conn_v0(struct net *net, struct ip_vs_conn *cp, pkts =atomic_add_return (1 , &cp->in_pkts); else pkts =sysctl_sync_threshold (ipvs); -ip_vs_sync_conn (net, cp->control, pkts); +ip_vs_sync_conn (net, cp, pkts); } }Signature · 1 line
1.9.3