Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp225625pxx; Wed, 28 Oct 2020 03:22:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVO8uxMjYWs+HOJP3Hc9d8sYei1PJiR6L2kyzGpOprKbcNAPCDCUGhX/HnADgKNSWtnoLQ X-Received: by 2002:a05:6402:6d8:: with SMTP id n24mr6995819edy.168.1603880541158; Wed, 28 Oct 2020 03:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603880541; cv=none; d=google.com; s=arc-20160816; b=e/t/njPXTdZipmdhm/O75bjuA4hUD3tRuE41BqOWBZQ1cegaa579zikD+IlXy7u8XQ vggArSn09PBNMKoGH8dWKH/+V2VTnFzzXorWEsDYZUKXFwOuYFwOkjSJxt5C3Bi7LdJw T6jBqVZ5LhllVqxOGeJ/dW4ysV2vRAXTNo5pr8u6lPJdeu6586U7ijLf24cfxCa/CObH pHj6s3XjbRlO1AnCzXI04tV5Rbg8VaCiBsD9DnsGSdv8E8pD/wIrT/v8YEMbErQd+6N8 aeTG6NVrZOy6QSSA9AC/0EYhROWaJlq3MRNqPq+KxGiMv6OKcg6mp36hGKg/IV7hbAgF lFKQ== 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=Qg5P3HJYApnI+BIdlNRy5wHuH3LpUj3uycSWmGh6dyA=; b=el4JHt+3kRmQZ3+fo2OFYnUBffEaG45U6tSTP9epaniR2RqMYjkX6UAvVX8N3eVvXh J5fqXX4aTIOEllJwNWKRBa70LJnJfA4fMIPhzhbWnOIoPnFgAqzuIKQTgq+7P2lOzH/t 7rC4KpC6pK0LVq6IDapSMIY7Tevu4GPAQMZs65DElEipgeiaUiCrP47yvBqNrua33cqr xVoGAOTUrgf733YBTauAdKB3ZDy7G5oyCwC27n5XpXPKt28G4JuFrMxqQ+rxz29i6DlE 0lIZMYUoydUVLSoWX3wFmmflMjilhwU9SgjIqobDERnbmFu3pJTvuseRtq/b3CqnCByR ZhXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hp41gmWi; 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 dk22si2709939edb.258.2020.10.28.03.21.58; Wed, 28 Oct 2020 03:22:21 -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=hp41gmWi; 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 S1761204AbgJ0OiX (ORCPT + 99 others); Tue, 27 Oct 2020 10:38:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:37580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2899138AbgJ0OiW (ORCPT ); Tue, 27 Oct 2020 10:38:22 -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 2EC1E206B2; Tue, 27 Oct 2020 14:38:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809501; bh=xp14mvD661kTxVznKY67nU5aQT5D9zV9J2X4NY8G0vo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hp41gmWinP18q6FJhEeZ9Tpa2FF6OHjcaI/AkfpjQKQy+rcma+2gPxbpR87tD24Tp 3r2yYwRAWRefC9JLreRtjfQLux91NPMwqw5S9gQJgBEA39QZkeNeFMYephLqnSpMnY bKJkj2W+4C9V2UmUOkd3O3ohhYTPxW5vQFi2nSq8= 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.4 188/408] ipvs: clear skb->tstamp in forwarding path Date: Tue, 27 Oct 2020 14:52:06 +0100 Message-Id: <20201027135503.810274452@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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 c62a131a60948..cefc39878b1a4 100644 --- a/net/netfilter/ipvs/ip_vs_xmit.c +++ b/net/netfilter/ipvs/ip_vs_xmit.c @@ -615,6 +615,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; } @@ -655,6 +657,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 @@ -675,6 +679,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