Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1164219ybi; Fri, 2 Aug 2019 10:20:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1f1qVUiUoc1lvtbLlNo0Ei5Ec+8J4pCG8XOaQmaDx55bU3A8OEIkiReVMYKHlsy6biPfY X-Received: by 2002:a63:e54:: with SMTP id 20mr122454994pgo.244.1564766439370; Fri, 02 Aug 2019 10:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564766439; cv=none; d=google.com; s=arc-20160816; b=jazYq5Lx6AEPrLdVaAVzS3VyKvNO4seGzMHEkXitBZ+Un5jhnNZbSbNJvroDmz6Z8+ nVY+Q/b8ZDBpXOCPU7yHD4C3PcTHIE46kD81ATXUEdmkNGnpvCk0dYW+TUtIDjFzTYaR AH1bRL0gdgnNVxqa2FIjyc3uBO5aDRXxaRr3iERZr1imKhmuCk9axtuttyRgeSTadbFW rArsaDEkF0Uj7JHC8+ZHqL5zRmmMoajor64MUS7yIT6FNhCLo9HVhRxTJglN/kPYW4lf zwBMqvrPDSeaVYdfwrafGcXS0oEzb+XqbmDtyMtsP2C9mflEq/zbthYWAf//lD6NI6hk Ew2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5qckglGlEnJ5dy1u9qEEAn+w6r7+B5Lqt1uMwrC6ZcM=; b=Ja+NGIlMFYsBgr8Y8wGCOOcQwiZ3awjUeTTXNchPx7a/SwOrhG3RnSBsFFaxTs5sx/ xSoTWlk4FVJtdSRjoYbMjYkZ2eIBoWiteFDu5C7CWvaubpfqLZxFEBdBszOtE8dSPQ7w QSBszJ9Qo7cD3Duh8ln7lL/Y4u2VgGlzyjPhM8WT6VuzkHPpN9SPI8fbYl/HBtDjoXWT w3TPhTYGO1GD0CN9/6vlcYT2zQtTPN0vwqDfI1c+Ah+4NpK9u6AMJZVyOyol9aDefAUW 7Ikk7hT1h1ShL0TcKczPAVoMubdkgPhb14wlmbHweRFqEXEjl76NQatFtsrcNEwEM3JS iLDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NFn7sf5D; 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 n12si39527132pgi.550.2019.08.02.10.20.24; Fri, 02 Aug 2019 10:20:39 -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; dkim=pass header.i=@kernel.org header.s=default header.b=NFn7sf5D; 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 S2405534AbfHBJqT (ORCPT + 99 others); Fri, 2 Aug 2019 05:46:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:50492 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405507AbfHBJqS (ORCPT ); Fri, 2 Aug 2019 05:46:18 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 8505E206A2; Fri, 2 Aug 2019 09:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564739178; bh=q6j2Oy95N+QPY+zJoAuPKajBTnbLyEzpTRDwFMYELTc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NFn7sf5DpFtW8+YQKB+XXRrISsdw9z4xi0tXNBTPMHKV80dB3r3gI/RuLjdfWAx0P jsSoLh+hUWOnj0yIb306lPKhAI60W02Fuw2kTSstxohjvgzbhFqof7i+GcU7zVZXaU 7uVPRbODcA4eFr/v/GqU3sYnw/aIh/lVzSc12T1E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andreas Steinmetz , "David S. Miller" Subject: [PATCH 4.9 143/223] macsec: fix checksumming after decryption Date: Fri, 2 Aug 2019 11:36:08 +0200 Message-Id: <20190802092247.932551385@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190802092238.692035242@linuxfoundation.org> References: <20190802092238.692035242@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andreas Steinmetz [ Upstream commit 7d8b16b9facb0dd81d1469808dd9a575fa1d525a ] Fix checksumming after decryption. Signed-off-by: Andreas Steinmetz Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/macsec.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/macsec.c +++ b/drivers/net/macsec.c @@ -867,6 +867,7 @@ static void macsec_reset_skb(struct sk_b static void macsec_finalize_skb(struct sk_buff *skb, u8 icv_len, u8 hdr_len) { + skb->ip_summed = CHECKSUM_NONE; memmove(skb->data + hdr_len, skb->data, 2 * ETH_ALEN); skb_pull(skb, hdr_len); pskb_trim_unique(skb, skb->len - icv_len);