From patchwork Wed Mar 10 00:38:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Borkmann X-Patchwork-Id: 12126781 Return-Path: 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=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,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 6F40EC433E0 for ; Wed, 10 Mar 2021 00:39:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 22FDA65007 for ; Wed, 10 Mar 2021 00:39:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230183AbhCJAiy (ORCPT ); Tue, 9 Mar 2021 19:38:54 -0500 Received: from www62.your-server.de ([213.133.104.62]:43776 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbhCJAi3 (ORCPT ); Tue, 9 Mar 2021 19:38:29 -0500 Received: from 30.101.7.85.dynamic.wline.res.cust.swisscom.ch ([85.7.101.30] helo=localhost) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1lJmrs-0008uO-CS; Wed, 10 Mar 2021 01:38:28 +0100 From: Daniel Borkmann To: davem@davemloft.net Cc: kuba@kernel.org, john.fastabend@gmail.com, ast@kernel.org, willemb@google.com, edumazet@google.com, netdev@vger.kernel.org, bpf@vger.kernel.org, Daniel Borkmann Subject: [PATCH net 0/2] Fix ip6ip6 crash for collect_md skbs Date: Wed, 10 Mar 2021 01:38:08 +0100 Message-Id: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.102.4/26103/Tue Mar 9 13:03:37 2021) Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Fix a NULL pointer deref panic I ran into for regular ip6ip6 tunnel devices when collect_md populated skbs were redirected to them for xmit. See patches for further details, thanks! Daniel Borkmann (2): net: Consolidate common blackhole dst ops net, bpf: Fix ip6ip6 crash with collect_md populated skbs include/net/dst.h | 11 +++++++++ net/core/dst.c | 59 +++++++++++++++++++++++++++++++++-------------- net/ipv4/route.c | 45 +++++++----------------------------- net/ipv6/route.c | 36 ++++++++--------------------- 4 files changed, 70 insertions(+), 81 deletions(-)