Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp520381pxx; Wed, 28 Oct 2020 10:11:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqBuBSCZFy75hHzjKlj+gaXFyzSoL00m+pJFWGiQbW+6qWN0vSLnMdpTiGlcvl2fyrQFj8 X-Received: by 2002:aa7:c2d8:: with SMTP id m24mr9092446edp.90.1603905081581; Wed, 28 Oct 2020 10:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603905081; cv=none; d=google.com; s=arc-20160816; b=lQ9WHzSr/7z0OgCDTJAcmtkrkgUG+mp4MijATGbs6YfqYfS06AF1FJA1zZMU9HA3QD ViF4j3otKXFMF53FU8vreFL6hfQliY+7PhDLz8uvzOG2gjAe4KIr9mdwM9Mm67GVDWkk PRKZinxjANiIn0FSdJwpmy9LibtJPGeGKDwDMbyQJBajtN2TF2Qr8u52rPKhDHQzgDfh 2Uw6nYvH/rX6DGm+9hd/u4k8yqyepWVhCSjV6ry/a+1P584JYN8Lkot5MLSpY8mPcsOq KZ3U+DE8KYMLXpaAbVx4drf4ynBxIkYSKp4NtCs3sl/Ak+yeTjaMlCpPd2shASkZ1+VT bEZg== 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=4pqdM7s4Iov4D1qsaqFSEE/ThHue7VCMoYcNKbql/WM=; b=y77AW3EsHHPRRmirlmVE/5yohXp+s/r97JEkvaRdiI06C1cMOv0jxIBoAst1/Nxux7 nD2d+HEjCgh3gUcpTEZ/3/AsH0GrKuC/meA2CcAK8cO6FejjDtPFGBIJQXV3jcaG6MND KRx5/ss5dOc7XZj1srOUyfnAerzfWvjVpn2KV5geKlKbEWQjS/Tx1LzO7pgjxSA8CnK0 zHSGuY2AQ4gtAXX5JX2+P3pT+stBxVZsufRy3yE1SI+qtJQS4eI3bQlL+u+0STBRtNX8 keESeV2yn2JKrO3wL6ZHtYSX4LVU6ExDrAqXLEXXuoeNQMUJ5UuR96YiJoxlYcWwWV8K R2Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O36CIeJf; 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 n18si9672edr.422.2020.10.28.10.10.51; Wed, 28 Oct 2020 10:11: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=O36CIeJf; 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 S1794149AbgJ0Rdh (ORCPT + 99 others); Tue, 27 Oct 2020 13:33:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:41372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762304AbgJ0Oly (ORCPT ); Tue, 27 Oct 2020 10:41:54 -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 8DC8021D7B; Tue, 27 Oct 2020 14:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809714; bh=cauSFg+uqGzZ15mBopV+VwuEkQq4P8xxvLurKUmYndw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O36CIeJfOTk6waXRTMT8CFiqNCFIiXK8uZY8BMGHHOW7Sj2aeVCMdS0fb2gKr2Fhg O5mRf09RCzWh9jEalecZTr2j7uMnsdIVtxtFbRirQei7Kotrg+UaXqG2X3vH3EHz+j kK+goQcCghQmW6H5zFzgtFMvPDQYep7zcJejAgho= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pablo Neira Ayuso , Sasha Levin Subject: [PATCH 5.4 294/408] netfilter: nf_fwd_netdev: clear timestamp in forwarding path Date: Tue, 27 Oct 2020 14:53:52 +0100 Message-Id: <20201027135508.682781838@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: Pablo Neira Ayuso [ Upstream commit c77761c8a59405cb7aa44188b30fffe13fbdd02d ] Similar to 7980d2eabde8 ("ipvs: clear skb->tstamp in forwarding path"). fq qdisc requires tstamp to be cleared in forwarding path. 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: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- net/netfilter/nf_dup_netdev.c | 1 + net/netfilter/nft_fwd_netdev.c | 1 + 2 files changed, 2 insertions(+) diff --git a/net/netfilter/nf_dup_netdev.c b/net/netfilter/nf_dup_netdev.c index f108a76925dd8..ec6e7d6860163 100644 --- a/net/netfilter/nf_dup_netdev.c +++ b/net/netfilter/nf_dup_netdev.c @@ -19,6 +19,7 @@ static void nf_do_netdev_egress(struct sk_buff *skb, struct net_device *dev) skb_push(skb, skb->mac_len); skb->dev = dev; + skb->tstamp = 0; dev_queue_xmit(skb); } diff --git a/net/netfilter/nft_fwd_netdev.c b/net/netfilter/nft_fwd_netdev.c index 3087e23297dbf..b77985986b24e 100644 --- a/net/netfilter/nft_fwd_netdev.c +++ b/net/netfilter/nft_fwd_netdev.c @@ -138,6 +138,7 @@ static void nft_fwd_neigh_eval(const struct nft_expr *expr, return; skb->dev = dev; + skb->tstamp = 0; neigh_xmit(neigh_table, dev, addr, skb); out: regs->verdict.code = verdict; -- 2.25.1