Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3466984imu; Sun, 11 Nov 2018 15:46:06 -0800 (PST) X-Google-Smtp-Source: AJdET5ftNMc0vKR3xqMhglgxIpVvK9O61YFhnRVbi0fCH31Hdv6Np798EzterWz36RzW0JIotbOH X-Received: by 2002:a63:4566:: with SMTP id u38mr15385363pgk.4.1541979966704; Sun, 11 Nov 2018 15:46:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541979966; cv=none; d=google.com; s=arc-20160816; b=SoOWfAmaurV6dd6h2+ilgBRrRWDv1LaiTNaotiy3SI3Yn8mkKo2JdDtTkN7aWunzb6 LgEmep1woiM706rUvH3xPNZJQUh5eUpzcUq0n8L11rLxHv2uyBKlFuf93AVew7HoMdJV 0wNNrgaJpnkaRUv55KWN28kRS4yO7A4TOth4/5sN9PoS0tJFX7E6P4OhHNJyLxOFhgYB FCdp4Oyqru/Locjk0yoNCjDYxCxA4PPBmcB0D+ioypGB8tQlzkhCh8O9ED0fePLy/RdF EqE7it0ocS7m3VBAHLGytNsUdWNZkjlNr90FY/H/yukDE7Zqgp6nZ5f0cPbg195VeDQ0 cp2w== 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=OXt2glHblVrxUumtINgvVj79tq2sXRz+6ViVV9wt4Yg=; b=e90zzeByTIeYCVqwGHUBslWKgJC8WJ7h6uMGPTP++MKK0csff0k7OA+IAlHWPzPtXc a4dspDoxK6CfUKE8G7P7DDBVyqFltrZq/XXyXifM6SMrHIQpbbsfc+ibKqbFet/iIiFr YIGmMb7Lp1ueScPfhGdRQuUS4dc40fwUKNAL/z8Y6r2P4XHJ8UqbSq8Hfvza9wXAaJxo BHxEiskRUDot8mYgohNtNTLow6/7sm1Mf9jGyUxqEL1RxnyeobusjGAEGXVFluhfNLNw jK56RRHaGMrWoJLALUzbTsi6JdVjvTDgW6kaRfKrlzCRmTRKt6S1kHV7mpJCAQfU8Nx+ u+Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ozREihHO; 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 b24-v6si13136996pgb.50.2018.11.11.15.45.51; Sun, 11 Nov 2018 15:46:06 -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=ozREihHO; 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 S2387445AbeKLITG (ORCPT + 99 others); Mon, 12 Nov 2018 03:19:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:39838 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730142AbeKLITE (ORCPT ); Mon, 12 Nov 2018 03:19:04 -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 11129208A3; Sun, 11 Nov 2018 22:29:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975348; bh=V23ibcH2BbTJaaPkTvwvt/JyeKei9/dIxvH4lNU1yoc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ozREihHOziwnyJO18UnK8l+IOYe6uDT+ZKCmJEJbLfM5vvY1HJ+pE/BNvXprsO1RD ZDFP2seMm+ag+L0HUYnlQvK+3IrmGEZBmMTKiUKj175l3XFxl1wbwNSRn8c/7PeNKW 2XUE+E6s5nh28L/4AT1AIZBPd/fVAuP2oE4PiOWQ= 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.19 357/361] net: sched: Remove TCA_OPTIONS from policy Date: Sun, 11 Nov 2018 14:21:44 -0800 Message-Id: <20181111221702.011368856@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@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.19-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 @@ -1309,7 +1309,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 },