From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DE115138334 for ; Sun, 11 Nov 2018 01:19:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E3A8BE09C2; Sun, 11 Nov 2018 01:19:11 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A42EAE09C2 for ; Sun, 11 Nov 2018 01:19:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DC4A7335C08 for ; Sun, 11 Nov 2018 01:19:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 289C03DA for ; Sun, 11 Nov 2018 01:19:08 +0000 (UTC) From: "Mike Pagano" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Pagano" Message-ID: <1541899131.94d964b804d59f085940e75cde09ce404772ba32.mpagano@gentoo> Subject: [gentoo-commits] proj/linux-patches:4.14 commit in: / X-VCS-Repository: proj/linux-patches X-VCS-Files: 0000_README 1800_TCA-OPTIONS-sched-fix.patch X-VCS-Directories: / X-VCS-Committer: mpagano X-VCS-Committer-Name: Mike Pagano X-VCS-Revision: 94d964b804d59f085940e75cde09ce404772ba32 X-VCS-Branch: 4.14 Date: Sun, 11 Nov 2018 01:19:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 20777429-9eb5-4057-b1cf-b48ac18ba1fa X-Archives-Hash: 880facc526ae8549c169ff5f5fc43c4a commit: 94d964b804d59f085940e75cde09ce404772ba32 Author: Mike Pagano gentoo org> AuthorDate: Sun Nov 11 01:18:51 2018 +0000 Commit: Mike Pagano gentoo org> CommitDate: Sun Nov 11 01:18:51 2018 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=94d964b8 net: sched: Remove TCA_OPTIONS from policy Signed-off-by: Mike Pagano gentoo.org> 0000_README | 4 ++++ 1800_TCA-OPTIONS-sched-fix.patch | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/0000_README b/0000_README index 9993aba..28ef8f2 100644 --- a/0000_README +++ b/0000_README @@ -375,6 +375,10 @@ Patch: 1700_ia64_fix_ptrace.patch From: https://patchwork.kernel.org/patch/10198159/ Desc: ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb). +Patch: 1800_TCA-OPTIONS-sched-fix.patch +From: https://git.kernel.org +Desc: net: sched: Remove TCA_OPTIONS from policy + Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch From: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6 Desc: bio: ensure __bio_clone_fast copies bi_partno. diff --git a/1800_TCA-OPTIONS-sched-fix.patch b/1800_TCA-OPTIONS-sched-fix.patch new file mode 100644 index 0000000..f960fac --- /dev/null +++ b/1800_TCA-OPTIONS-sched-fix.patch @@ -0,0 +1,35 @@ +From e72bde6b66299602087c8c2350d36a525e75d06e Mon Sep 17 00:00:00 2001 +From: David Ahern +Date: Wed, 24 Oct 2018 08:32:49 -0700 +Subject: net: sched: Remove TCA_OPTIONS from policy + +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 +--- + net/sched/sch_api.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c +index 022bca98bde6..ca3b0f46de53 100644 +--- a/net/sched/sch_api.c ++++ b/net/sched/sch_api.c +@@ -1320,7 +1320,6 @@ check_loop_fn(struct Qdisc *q, unsigned long cl, struct qdisc_walker *w) + + 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 }, +-- +cgit 1.2-0.3.lf.el7 +