lkml.org 
[lkml]   [2015]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.16.y-ckt 028/130] ipvs: fix crash with sync protocol v0 and FTP
    Date
    3.16.7-ckt17 -stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Julian Anastasov <ja@ssi.bg>

    commit 56184858d1fc95c46723436b455cb7261cd8be6f upstream.

    Fix crash in 3.5+ if FTP is used after switching
    sync_version to 0.

    Fixes: 749c42b620a9 ("ipvs: reduce sync rate with time thresholds")
    Signed-off-by: Julian Anastasov <ja@ssi.bg>
    Signed-off-by: Simon Horman <horms@verge.net.au>
    Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
    ---
    net/netfilter/ipvs/ip_vs_sync.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c
    index a8027e73b6a2..a108953a8c2c 100644
    --- a/net/netfilter/ipvs/ip_vs_sync.c
    +++ b/net/netfilter/ipvs/ip_vs_sync.c
    @@ -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);
    }
    }


    \
     
     \ /
      Last update: 2015-09-04 16:21    [W:4.098 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site