Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp266120pxx; Wed, 28 Oct 2020 04:31:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3GVJZnAyHdlpixKxQkXgEB8pvtzk/rcJRNhq5VFS/z40R5UcO/mC4SN6yGeJFrs79ED34 X-Received: by 2002:a17:906:8545:: with SMTP id h5mr6808048ejy.384.1603884680080; Wed, 28 Oct 2020 04:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603884680; cv=none; d=google.com; s=arc-20160816; b=vIgHwe13sUfkU1F0D/UwKPqiiaGioL0DntyhmV3S+DW/VhO9+80u7oUefmcWXrxpNO kgRkN9sz2DSn9tbadQJSrPRdCTgKApRpKjFrrMUsBWpYBxI42czFQ2dMccoJ+wyhYYRZ i/tBrk5JcenZJyvyQ9QdDhs43SuMf/EuLXG5a+eG26Q997HcaNqdY+7jCzandXslxWzo WZZ09mmTRiuQ/snz1VkSEdRjTNNX+8vY3m8rQscmyc8H93FSWZ/voyXzhq3N57Tj+z4T UNWy2ERJJ4ZrtQqgl/kVW2nimNCTVGUrZbzO9vBv1Y7M1jdAkxebAhyIba2ppECKsMUK ZPXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ps0ipjCVcR7DwgUdx0AvIBxHgFN5Ewap/bccqmj6txc=; b=h5hZLRa92QyjPRffK6ZVdxNZTDB7SFdcnkgwI8QrbTfFOJsPVd8g0Y28725j/+4ei1 qCqpis1BILmi+njRc1WisduNHxqZiVdVTLSr2i2aBEe3gkytonmIpvY8vF2fz89G1x/X axldMGAb86m8QWTxQJ8Ayl6jgnq7IT11FFTbIa1zC7/XmUyMNu/E8apR6sI07Z1N72PN 2GTm3T0x1MeMnNPd5OWGqlzmpV17iymjVoGBDgekcIwAVTLNP9wM3E+wxwM2LutLoLDK GqCidNNmMT6R3KVnfzX/g/p47lqxzIQRXtIBU5SuXrZKDlKM2NQyTznSVS8h2h4ESVCY xHeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TlI69d64; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lg14si2653130ejb.82.2020.10.28.04.30.57; Wed, 28 Oct 2020 04:31:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TlI69d64; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1793743AbgJ0PIG (ORCPT + 99 others); Tue, 27 Oct 2020 11:08:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:37240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1789795AbgJ0PC4 (ORCPT ); Tue, 27 Oct 2020 11:02:56 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8C2A221707; Tue, 27 Oct 2020 15:02:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810976; bh=+GNDN30lOh/MdJAAIorz11RsKrk08cYro+JV5n0Oz88=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TlI69d64O33eOOD0wTnxgEh4DNRXnV66F54lEaopMrm2j03AKaarqb5R7/g2C8Cg8 lDHHgBk+hFBnkaoMmImUZU+W5JlkjBOzLqiI4cR02r7oo2x5Ojv7sxONf6dTlvO4pk GfM3gozj19GhMRNuGdDyR1W4tJ8D55YwH/tlfpU0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Evgeny B , Eric Dumazet , Julian Anastasov , Simon Horman , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH 5.8 312/633] ipvs: clear skb->tstamp in forwarding path Date: Tue, 27 Oct 2020 14:50:55 +0100 Message-Id: <20201027135537.312462364@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Julian Anastasov [ Upstream commit 7980d2eabde82be86c5be18aa3d07e88ec13c6a1 ] fq qdisc requires tstamp to be cleared in forwarding path Reported-by: Evgeny B Link: https://bugzilla.kernel.org/show_bug.cgi?id=209427 Suggested-by: Eric Dumazet Fixes: 8203e2d844d3 ("net: clear skb->tstamp in forwarding paths") Fixes: fb420d5d91c1 ("tcp/fq: move back to CLOCK_MONOTONIC") Fixes: 80b14dee2bea ("net: Add a new socket option for a future transmit time.") Signed-off-by: Julian Anastasov Reviewed-by: Simon Horman Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- net/netfilter/ipvs/ip_vs_xmit.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net/netfilter/ipvs/ip_vs_xmit.c b/net/netfilter/ipvs/ip_vs_xmit.c index b00866d777fe0..d2e5a8f644b80 100644 --- a/net/netfilter/ipvs/ip_vs_xmit.c +++ b/net/netfilter/ipvs/ip_vs_xmit.c @@ -609,6 +609,8 @@ static inline int ip_vs_tunnel_xmit_prepare(struct sk_buff *skb, if (ret == NF_ACCEPT) { nf_reset_ct(skb); skb_forward_csum(skb); + if (skb->dev) + skb->tstamp = 0; } return ret; } @@ -649,6 +651,8 @@ static inline int ip_vs_nat_send_or_cont(int pf, struct sk_buff *skb, if (!local) { skb_forward_csum(skb); + if (skb->dev) + skb->tstamp = 0; NF_HOOK(pf, NF_INET_LOCAL_OUT, cp->ipvs->net, NULL, skb, NULL, skb_dst(skb)->dev, dst_output); } else @@ -669,6 +673,8 @@ static inline int ip_vs_send_or_cont(int pf, struct sk_buff *skb, if (!local) { ip_vs_drop_early_demux_sk(skb); skb_forward_csum(skb); + if (skb->dev) + skb->tstamp = 0; NF_HOOK(pf, NF_INET_LOCAL_OUT, cp->ipvs->net, NULL, skb, NULL, skb_dst(skb)->dev, dst_output); } else -- 2.25.1