Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/sched: act_simple: fix parsing of TCA_DEF_DATA
[ Upstream commit 8d49953 ] use nla_strlcpy() to avoid copying data beyond the length of TCA_DEF_DATA netlink attribute, in case it is less than SIMP_MAX_DATA and it does not end with '\0' character. v2: fix errors in the commit message, thanks Hangbin Liu Fixes: fa1b1cf ("net_cls_act: Make act_simple use of netlink policy.") Signed-off-by: Davide Caratti <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information