Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3426439imu; Sun, 11 Nov 2018 14:50:22 -0800 (PST) X-Google-Smtp-Source: AJdET5cDtvmfKBPqMRMSvXk2ihY/pUVp/uWoGQHnRmYBXeRuIwf89YcPlHRI95rkaYe3Ys2rj+0p X-Received: by 2002:a63:8e43:: with SMTP id k64mr15238522pge.346.1541976622259; Sun, 11 Nov 2018 14:50:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541976622; cv=none; d=google.com; s=arc-20160816; b=KdizJhZ0yLadqPRBSE+ZwHJq5/BhnRBgpUfl36dHHUNo/v2C3ivZo/GVb2T8MwVxTD IDrhanBjmbOuxGrqwmmxVE5nma3rKupfpNQNuCNzV39stKdTXyGRfu2qMnzDtJJ+EEh3 Et6/By79SYIy7EFxeJih8dlYyf/oTOrP2gmILb8kctkiuIlheAisJ6GZ+sEuhH4cbu4+ Qysq91ogDhA/bm5mEGWjtEHPERus88hemYxboWz13e9nOFC4kjHD23VCUMF0RrCSrRjz XUZurXlFIM21olBIP2WxPe3b1zhwHwDyeQHq9RThwxyexhEjbSWRRhapUk7TrwZaYI4f 6z7Q== 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=huvFBlXDza9Ol3/pvWjHr0FoNvlqK8H5+EsdHFTJhis=; b=E1i48vmL0z8Cwjf4rKxKmL4XgAd/+ChyHnsEnGRoRm4LUVlCFh9m7aBdQQUsE1EOu/ wm4bhRklcqWSx3CAA8xPTNyNVS5LZk+A4Puwg/Zral6aGUhW3dYS5WlU6MCUacYUUSWh VcWc3iC2q8+Se3SQCnSQ0/3QWBDK3Um1i4Cq2RVjyMf/7N/GA5XIFENCXytMo/gmA8dO gW+eQDSXqx+lgktoM6EAJs9XemzsAWMz5XQuHDHExQA878jViG7eMnGjWZ6qOV09f1vF ll8Y6CHFtL5r/p6t60y3pHjv61uvbOeEMudJmaKFkM3twv3aAYiLOABsz5BGneP0kNwd TYuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ai4IOLmv; 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 p3si14514495pgi.0.2018.11.11.14.50.07; Sun, 11 Nov 2018 14:50:22 -0800 (PST) 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=ai4IOLmv; 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 S2390868AbeKLIik (ORCPT + 99 others); Mon, 12 Nov 2018 03:38:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:56460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404230AbeKLIXU (ORCPT ); Mon, 12 Nov 2018 03:23:20 -0500 Received: from localhost (unknown [206.108.79.134]) (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 41D15223C7; Sun, 11 Nov 2018 22:33:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975603; bh=jE/myxS7bNNyGW7SzxyUQ1IfdmeOHaLS/ScwnxOWYKc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ai4IOLmvS+T1eyMRaHNZQ39N/v1ecsPkp+5IYlHffdSr9LGBLZxLdbT3UJ925vAnD goHdCGR4++A66PLV4Kc+Za/qUFhT3xo7fhkA9pY/Yj9NgXI2J2VgeBMmdBcJf1yaDA T5+BcBnKQgoznPNypsRmMIHGO2az2qPTA5hszPx4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marco Berizzi , David Ahern , "David S. Miller" Subject: [PATCH 4.14 221/222] net: sched: Remove TCA_OPTIONS from policy Date: Sun, 11 Nov 2018 14:25:18 -0800 Message-Id: <20181111221705.978144339@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221647.665769131@linuxfoundation.org> References: <20181111221647.665769131@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Ahern commit e72bde6b66299602087c8c2350d36a525e75d06e upstream. Marco reported an error with hfsc: root@Calimero:~# tc qdisc add dev eth0 root handle 1:0 hfsc default 1 Error: Attribute failed policy validation. Apparently a few implementations pass TCA_OPTIONS as a binary instead of nested attribute, so drop TCA_OPTIONS from the policy. Fixes: 8b4c3cdd9dd8 ("net: sched: Add policy validation for tc attributes") Reported-by: Marco Berizzi Signed-off-by: David Ahern Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/sched/sch_api.c | 1 - 1 file changed, 1 deletion(-) --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -1218,7 +1218,6 @@ check_loop_fn(struct Qdisc *q, unsigned const struct nla_policy rtm_tca_policy[TCA_MAX + 1] = { [TCA_KIND] = { .type = NLA_STRING }, - [TCA_OPTIONS] = { .type = NLA_NESTED }, [TCA_RATE] = { .type = NLA_BINARY, .len = sizeof(struct tc_estimator) }, [TCA_STAB] = { .type = NLA_NESTED },