summaryrefslogtreecommitdiff
path: root/net/sched/act_api.c
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2019-10-07 23:26:28 +0300
committerJakub Kicinski <jakub.kicinski@netronome.com>2019-10-09 02:21:58 +0300
commit6f96c3c6904c26cea9ca2726d5d8a9b0b8205b3c (patch)
tree9f626d3ab135a6964b4c96699694db5a1891d91d /net/sched/act_api.c
parent0041412694eca70387aee4076254fbed8222700a (diff)
downloadlinux-6f96c3c6904c26cea9ca2726d5d8a9b0b8205b3c.tar.xz
net_sched: fix backward compatibility for TCA_KIND
Marcelo noticed a backward compatibility issue of TCA_KIND after we move from NLA_STRING to NLA_NUL_STRING, so it is probably too late to change it. Instead, to make everyone happy, we can just insert a NUL to terminate the string with nla_strlcpy() like we do for TC actions. Fixes: 62794fc4fbf5 ("net_sched: add max len check for TCA_KIND") Reported-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Cc: Jamal Hadi Salim <jhs@mojatatu.com> Cc: Jiri Pirko <jiri@resnulli.us> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'net/sched/act_api.c')
0 files changed, 0 insertions, 0 deletions