Message ID | 20200317232734.6127-15-sven@narfation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=f8y2=5C=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02B8FC5ACD7 for <stable@archiver.kernel.org>; Tue, 17 Mar 2020 23:27:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C8B2F20767 for <stable@archiver.kernel.org>; Tue, 17 Mar 2020 23:27:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=narfation.org header.i=@narfation.org header.b="QmcOobwd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727041AbgCQX15 (ORCPT <rfc822;stable@archiver.kernel.org>); Tue, 17 Mar 2020 19:27:57 -0400 Received: from dvalin.narfation.org ([213.160.73.56]:53462 "EHLO dvalin.narfation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727071AbgCQX15 (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 17 Mar 2020 19:27:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1584487675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WcbmGSw7WB1b41TJZabUwjeq0nf5LD8jfGcXChn7OxA=; b=QmcOobwdg/hurfPfQYVRAzZZBC+fMKybKF333VfH1t3i02il/W15wffIP5xT4DG7vkATZD gC+MVKBPyR6IpOGtUtv8A/VWpCU4zofmizqq5J2zutNIRXkiO8wmEXk4NicjL8PWVpg7b1 2ydO66Fw04YCBlEgdACSbeAyjVCs8cw= From: Sven Eckelmann <sven@narfation.org> To: stable@vger.kernel.org Cc: Sven Eckelmann <sven@narfation.org>, Marek Lindner <mareklindner@neomailbox.ch>, "David S . Miller" <davem@davemloft.net> Subject: [PATCH 4.4 14/48] batman-adv: Fix ICMP RR ethernet access after skb_linearize Date: Wed, 18 Mar 2020 00:27:00 +0100 Message-Id: <20200317232734.6127-15-sven@narfation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200317232734.6127-1-sven@narfation.org> References: <20200317232734.6127-1-sven@narfation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
batman-adv: Pending fixes
|
expand
|
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c index de24ab1cf67f..477899ba7616 100644 --- a/net/batman-adv/routing.c +++ b/net/batman-adv/routing.c @@ -359,6 +359,7 @@ int batadv_recv_icmp_packet(struct sk_buff *skb, if (skb_cow(skb, ETH_HLEN) < 0) goto out; + ethhdr = eth_hdr(skb); icmph = (struct batadv_icmp_header *)skb->data; icmp_packet_rr = (struct batadv_icmp_packet_rr *)icmph; if (icmp_packet_rr->rr_cur >= BATADV_RR_LEN)