From 45f4251eac81036e2532b16d13f1ad421813eca9 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 13 Apr 2017 10:13:31 +0200 Subject: [Zesty][PATCH 1/2] UBUNTU: SAUCE: net sched actions: fix access to uninitialized data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1682368 Signed-off-by: Wolfgang Bumiller (cherry-picked from http://marc.info/?l=linux-netdev&m=149200746116365 ) Signed-off-by: Fabian Grünbichler --- net/sched/act_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 501c42d..32f12f5 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -607,7 +607,7 @@ struct tc_action *tcf_action_init_1(struct net *net, struct nlattr *nla, if (err < 0) goto err_mod; - if (tb[TCA_ACT_COOKIE]) { + if (name == NULL && tb[TCA_ACT_COOKIE]) { int cklen = nla_len(tb[TCA_ACT_COOKIE]); if (cklen > TC_COOKIE_MAX_SIZE) { -- 2.1.4