Message ID | 20210208145806.421469570@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <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=-19.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, 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 F1F13C433DB for <stable@archiver.kernel.org>; Mon, 8 Feb 2021 15:08:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AE6AF64EF5 for <stable@archiver.kernel.org>; Mon, 8 Feb 2021 15:08:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232383AbhBHPIn (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 8 Feb 2021 10:08:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:52606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231929AbhBHPF6 (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 8 Feb 2021 10:05:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0611064ED3; Mon, 8 Feb 2021 15:04:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612796669; bh=N9Eqn0l5ZRmlnndfynirlS5F+CtRRs3NmT7NYOisCjU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t9vRUKyITtDzYC+4r6rA4OYr6M1iDmK7RnyO90UiOem3pv4Cy0EivxzEeKMQA839g uH7Hddc5cfvHMlLj3Mdhars26WCRqUfNRbJG4mLMFdFNbbrTYE/WRJXMQTibbP17Y6 HZYPr46x+ZgV/DrUV/8LXMw6fy/SLf2dTjOSq9K0= 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>, syzbot <syzkaller@googlegroups.com>, Cong Wang <cong.wang@bytedance.com>, Jakub Kicinski <kuba@kernel.org>, Sudip Mukherjee <sudipm.mukherjee@gmail.com> Subject: [PATCH 4.9 03/43] net_sched: reject silly cell_log in qdisc_get_rtab() Date: Mon, 8 Feb 2021 16:00:29 +0100 Message-Id: <20210208145806.421469570@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210208145806.281758651@linuxfoundation.org> References: <20210208145806.281758651@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -393,7 +393,8 @@ struct qdisc_rate_table *qdisc_get_rtab( { struct qdisc_rate_table *rtab; - if (tab == NULL || r->rate == 0 || r->cell_log == 0 || + if (tab == NULL || r->rate == 0 || + r->cell_log == 0 || r->cell_log >= 32 || nla_len(tab) != TC_RTAB_SIZE) return NULL;