On Mon, 7 Oct 2019 13:26:29 -0700, Cong Wang wrote: > For TCA_ACT_KIND, we have to keep the backward compatibility too, > and rely on nla_strlcpy() to check and terminate the string with > a NUL. > > Note for TC actions, nla_strcmp() is already used to compare kind > strings, so we don't need to fix other places. > > Fixes: 199ce850ce11 ("net_sched: add policy validation for action attributes") > Reported-by: Marcelo Ricardo Leitner <marcelo.leit...@gmail.com> > Cc: Jamal Hadi Salim <j...@mojatatu.com> > Cc: Jiri Pirko <j...@resnulli.us> > Signed-off-by: Cong Wang <xiyou.wangc...@gmail.com>
Applied, queued for 4.14+ as well.