Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2008539imm; Tue, 10 Jul 2018 11:30:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdmSWo12J7QYzzJugfUL5iYZtMIxFtHucMdhqPGGhQYGB1NH/6eDYLQc9McQEiIszZTU9wr X-Received: by 2002:a17:902:bd97:: with SMTP id q23-v6mr25586186pls.238.1531247442221; Tue, 10 Jul 2018 11:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531247442; cv=none; d=google.com; s=arc-20160816; b=EQ/UIkTjiyRTUD7mXAmj/R3LjAVqwQ5SVTNDof3qmZ/sJu3YK/SEvENQschFPFC/nb zOmv96kFp5I5eJqud0zS/qNniyBqH9wcJXhIvYd6p+4CWvSx36Wtj05hBL7a3rV+H1yM eESrgpxgAlZ67UjingXaylJyF70159cnfZcs2MuEQl64N5tKyY2LLN19qzVxjSsZfzbV Oy6ZyW/UACNb0naVQVaK4irIf5bN2KRW0dobQPA99ErbtJ7acoTabJe/sKrGkrJFcO96 LAZ1E0UHarnLQIbIFJrpHepvE9SvSqIcZbYyA7AsYH7+vXo1YsdtIVY3dUERrUKYb3k9 2tTg== 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=p3N6VJeTuZE0qEVfLa5Hmxb/i3aqhzVbGp0Kz7CfMbE=; b=ycNS4DGBKX0QQT5TaDcRqsC59TlTOGvI03HEs/rUHOLM9M4MQhbGrRIk7NC929V635 KSQs7Q0dsEJcHMUUVQWpo57HpoNEckf/5hR4H1b5v1skRhfw8TmLYjX1zm85VftXBt8W QxdmdD2/Ujqwlsm0gsdZMnqaRm2Bro+b+7H2A7HBoQpoVdW0GyzUVGDKvJSbOmHR418i hKecEelaHDopGkI/Xls3t/qMqWpMjXzNhCV0d0bEOEbdXvzCbS7A2VUaEGoLn7pQ0RzQ irKiHkEvc2Jzfgs+bHjv20aUzPqGfNNUN+ejhRSAa1L18Av1ZvYt7AOQ8+pA7U8h3++J LcIQ== 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 e35-v6si1118815plb.499.2018.07.10.11.30.26; Tue, 10 Jul 2018 11:30:42 -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 S2387798AbeGJS3f (ORCPT + 99 others); Tue, 10 Jul 2018 14:29:35 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45358 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733079AbeGJS3e (ORCPT ); Tue, 10 Jul 2018 14:29:34 -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 EE77EEB8; Tue, 10 Jul 2018 18:29:22 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "David S. Miller" , Luca Boccassi Subject: [PATCH 4.9 13/52] Revert "sit: reload iphdr in ipip6_rcv" Date: Tue, 10 Jul 2018 20:24:41 +0200 Message-Id: <20180710182450.817080523@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180710182449.285532226@linuxfoundation.org> References: <20180710182449.285532226@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.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: David S. Miller commit f4eb17e1efe538d4da7d574bedb00a8dafcc26b7 upstream. This reverts commit b699d0035836f6712917a41e7ae58d84359b8ff9. As per Eric Dumazet, the pskb_may_pull() is a NOP in this particular case, so the 'iph' reload is unnecessary. Signed-off-by: David S. Miller Cc: Luca Boccassi Signed-off-by: Greg Kroah-Hartman --- net/ipv6/sit.c | 1 - 1 file changed, 1 deletion(-) --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c @@ -659,7 +659,6 @@ static int ipip6_rcv(struct sk_buff *skb if (iptunnel_pull_header(skb, 0, htons(ETH_P_IPV6), !net_eq(tunnel->net, dev_net(tunnel->dev)))) goto out; - iph = ip_hdr(skb); err = IP_ECN_decapsulate(iph, skb); if (unlikely(err)) {