netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net 1/2] net sched actions: fix access to uninitialized data
@ 2017-04-18 10:13 Wolfgang Bumiller
  2017-04-18 10:13 ` [PATCH v2 net 2/2] net sched actions: decrement module refcount earlier Wolfgang Bumiller
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Wolfgang Bumiller @ 2017-04-18 10:13 UTC (permalink / raw)
  To: netdev; +Cc: Jamal Hadi Salim, David S. Miller, Cong Wang

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
---
(same as v1)

 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 b70aa57319ea..8cc883c063f0 100644
--- a/net/sched/act_api.c
+++ b/net/sched/act_api.c
@@ -604,7 +604,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.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-04-20 10:28 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-18 10:13 [PATCH v2 net 1/2] net sched actions: fix access to uninitialized data Wolfgang Bumiller
2017-04-18 10:13 ` [PATCH v2 net 2/2] net sched actions: decrement module refcount earlier Wolfgang Bumiller
2017-04-18 13:03   ` Jamal Hadi Salim
2017-04-18 17:03   ` Cong Wang
2017-04-19  2:21     ` Jamal Hadi Salim
2017-04-19  6:23       ` Cong Wang
2017-04-19  8:09         ` Wolfgang Bumiller
2017-04-19 11:32           ` Jamal Hadi Salim
2017-04-19 15:03             ` Wolfgang Bumiller
2017-04-19 21:32               ` Cong Wang
2017-04-20 10:24               ` Jamal Hadi Salim
2017-04-19 17:25             ` Cong Wang
2017-04-20 10:28               ` Jamal Hadi Salim
2017-04-18 12:51 ` [PATCH v2 net 1/2] net sched actions: fix access to uninitialized data Jamal Hadi Salim
2017-04-19  9:02 ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).