Received: by 10.213.65.68 with SMTP id h4csp530053imn; Fri, 16 Mar 2018 10:31:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELv/md84tr9sNCSPFILBkIOzSdAo4Nu8H1mvK8YQ+boO5koH8gxokE5kZv+a/IPWaPCHhfhp X-Received: by 2002:a17:902:f24:: with SMTP id 33-v6mr2988493ply.242.1521221498039; Fri, 16 Mar 2018 10:31:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521221497; cv=none; d=google.com; s=arc-20160816; b=P7CmYrOoo2OzhYfTaSfKUo15kpOZ0woSp7byK0mlJnjtv0FrcYFcg6yjp7gUwp5/eK yM++5RPxYKd7WguFJcZN/pk2h40OWf0BqfDe6Zc662pMVYQi3M2bjLdinaMS0AaG9qqT 4KsR9qoBXogel02B30WMDM9h0BTLGcYkhWmP8KgvroWc1rIWrAfdcqyMaj95yLGLIbAf VBzIvUE5LrcLbbYAxM2GZBXRLJ6wtz0oTGDXCOpqA0rDDvI/HB2zEOs5ZKKmWDeuUU58 q43HNLm6PbQDkJqcYybqoRVIjC/u3+ylaAuEEzdU8jsLI5fEKgCwCXvzjzJN2cBxolDH rX/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=+OUxAXagpQuzu7yuP/hD349SdShibrmqTZbPNJTF/5Q=; b=j4ond/m/UmHqPgwQSIVYfp31KFC37cYwH9g7eyrhudBL29iogfS1ozW9tafNkvA+q8 V0hkMBDYx7kz7eSKXRP3sEQdRA8tvmpbJTGYHiRZEPE7PiZ2UCizDY/8bjzW42AbfLAU EGMgAcEPZmPE0Pn1pay8s+HXaZd56HMlifNnezn9Ihuld7eKE/fJcnA62UPtOYyHGzK9 rLilSr0XBGhsCs9I6NEnJWHPZT6T3kb004QdZECU9xwnL3vAPk6axK+cWANtiE5zmIfs 9Be8QFZw/KBJZSAdEFP0tj/M8H/wDr2G/TS/zfygzL5yKwaX6qOnuJPRuj+9vqG3xQsH Djtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r2si5116617pgp.704.2018.03.16.10.31.23; Fri, 16 Mar 2018 10:31:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932767AbeCPP16 (ORCPT + 99 others); Fri, 16 Mar 2018 11:27:58 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34850 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754027AbeCPP1w (ORCPT ); Fri, 16 Mar 2018 11:27:52 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 01E291262; Fri, 16 Mar 2018 15:27:51 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florian Westphal , Pablo Neira Ayuso Subject: [PATCH 4.4 30/63] netfilter: nfnetlink_queue: fix timestamp attribute Date: Fri, 16 Mar 2018 16:23:02 +0100 Message-Id: <20180316152303.355607281@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152259.964532775@linuxfoundation.org> References: <20180316152259.964532775@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Florian Westphal commit a7f1884554b81bd68cd435d72f09a3527629ac43 upstream. Since 4.4 we erronously use timestamp of the netlink skb (which is zero). Bugzilla: https://bugzilla.netfilter.org/show_bug.cgi?id=1066 Fixes: b28b1e826f818c30ea7 ("netfilter: nfnetlink_queue: use y2038 safe timestamp") Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso Signed-off-by: Greg Kroah-Hartman --- net/netfilter/nfnetlink_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c @@ -501,7 +501,7 @@ nfqnl_build_packet_message(struct net *n if (entskb->tstamp.tv64) { struct nfqnl_msg_packet_timestamp ts; - struct timespec64 kts = ktime_to_timespec64(skb->tstamp); + struct timespec64 kts = ktime_to_timespec64(entskb->tstamp); ts.sec = cpu_to_be64(kts.tv_sec); ts.usec = cpu_to_be64(kts.tv_nsec / NSEC_PER_USEC);