Message ID | 20200310123612.459015874@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=QSPG=43=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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 20A52C10F27 for <stable@archiver.kernel.org>; Tue, 10 Mar 2020 12:44:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EC488246A2 for <stable@archiver.kernel.org>; Tue, 10 Mar 2020 12:44:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583844291; bh=6f4CC+7DtzfHuMV7HiHoLiTh2Xkc0Zf5JXFBByFdpKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=H4QOX/DPxeXD9vKLN0HxGgd6UXI9KlqwfTBiUITWWnxcxxyiQq8QI3zBHoMxQu6Qu gafhi5A3DCeTnwWNq5yJ0ix79RvkxkE5tYVoKPFMdvW3xtagZC/vgtw3vxLcrAYiJu gyUgWG4Ig72eUmE1Aw5dFBMrUkDQS3gfF7Vkj440= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727816AbgCJMou (ORCPT <rfc822;stable@archiver.kernel.org>); Tue, 10 Mar 2020 08:44:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:47216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727510AbgCJMou (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 10 Mar 2020 08:44:50 -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 4AB052469C; Tue, 10 Mar 2020 12:44:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583844289; bh=6f4CC+7DtzfHuMV7HiHoLiTh2Xkc0Zf5JXFBByFdpKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SzhdjOwj5rMdmaO1rGZ0SiQmnBlPACSIYM9IOxCs4rg0aqIDbVyK5uN8S2fMvFno7 VGAhu/CIlLOJBrRZfYl88BJs9KMozhhBr/61Qz50LwLjZjWk9798fvS76N+bU45Tur qq761qnJtuyI+cYG5i6JFFV6WTLJPYlC+58b8Uh8= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Eric Dumazet <edumazet@google.com>, Cong Wang <xiyou.wangcong@gmail.com>, Jason Baron <jbaron@akamai.com>, "David S. Miller" <davem@davemloft.net> Subject: [PATCH 4.9 27/88] net: sched: correct flower port blocking Date: Tue, 10 Mar 2020 13:38:35 +0100 Message-Id: <20200310123612.459015874@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200310123606.543939933@linuxfoundation.org> References: <20200310123606.543939933@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 |
None
|
expand
|
--- a/include/net/flow_dissector.h +++ b/include/net/flow_dissector.h @@ -4,6 +4,7 @@ #include <linux/types.h> #include <linux/in6.h> #include <linux/siphash.h> +#include <linux/string.h> #include <uapi/linux/if_ether.h> /** @@ -204,4 +205,12 @@ static inline void *skb_flow_dissector_t return ((char *)target_container) + flow_dissector->offset[key_id]; } +static inline void +flow_dissector_init_keys(struct flow_dissector_key_control *key_control, + struct flow_dissector_key_basic *key_basic) +{ + memset(key_control, 0, sizeof(*key_control)); + memset(key_basic, 0, sizeof(*key_basic)); +} + #endif --- a/net/sched/cls_flower.c +++ b/net/sched/cls_flower.c @@ -141,6 +141,7 @@ static int fl_classify(struct sk_buff *s if (!atomic_read(&head->ht.nelems)) return -1; + flow_dissector_init_keys(&skb_key.control, &skb_key.basic); fl_clear_masked_range(&skb_key, &head->mask); info = skb_tunnel_info(skb);