diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2019-10-07 13:26:28 -0700 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-08 16:21:58 -0700 |
commit | 6f96c3c6904c26cea9ca2726d5d8a9b0b8205b3c (patch) | |
tree | 9f626d3ab135a6964b4c96699694db5a1891d91d /security/lockdown | |
parent | 0041412694eca70387aee4076254fbed8222700a (diff) |
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 'security/lockdown')
0 files changed, 0 insertions, 0 deletions