Davide Caratti
81d159444d
net/sched: act_simple: fix parsing of TCA_DEF_DATA
...
[ Upstream commit 8d499533e0bc02d44283dbdab03142b599b8ba16 ]
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: fa1b1cff3d06 ("net_cls_act: Make act_simple use of netlink policy.")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-26 08:06:28 +08:00
..
2018-04-12 12:32:23 +02:00
2018-05-30 07:52:18 +02:00
2017-11-09 10:03:09 +09:00
2017-12-17 15:07:58 +01:00
2018-01-17 09:45:22 +01:00
2018-04-29 11:33:13 +02:00
2018-05-30 07:52:18 +02:00
2016-09-19 21:55:28 -04:00
2018-01-17 09:45:22 +01:00
2017-11-09 10:03:09 +09:00
2018-05-30 07:52:18 +02:00
2018-05-30 07:52:18 +02:00
2018-05-30 07:52:16 +02:00
2018-06-26 08:06:28 +08:00
2018-06-21 04:02:57 +09:00
2018-05-30 07:52:18 +02:00
2018-04-12 12:32:26 +02:00
2018-05-25 16:17:23 +02:00
2018-05-19 10:20:26 +02:00
2017-11-09 10:03:09 +09:00
2017-12-17 15:07:59 +01:00
2017-11-09 10:03:09 +09:00
2017-11-09 10:03:09 +09:00
2018-06-11 22:49:22 +02:00
2017-11-09 10:03:09 +09:00
2017-11-09 10:03:10 +09:00
2017-11-09 10:03:10 +09:00
2017-11-09 10:03:10 +09:00
2017-11-09 10:03:10 +09:00
2018-03-08 22:41:16 -08:00
2016-11-03 10:56:21 +01:00
2017-07-01 07:39:08 -07:00
2017-04-13 13:58:22 -04:00
2017-06-05 10:56:36 -04:00
2017-11-02 11:10:55 +01:00
2017-10-29 17:55:03 +09:00
2017-08-25 17:19:10 -07:00
2017-12-17 15:07:58 +01:00
2018-02-25 11:07:59 +01:00
2017-04-13 13:58:22 -04:00
2017-08-25 17:19:10 -07:00
2017-08-25 17:19:10 -07:00
2016-09-19 01:47:18 -04:00
2017-09-01 17:42:05 -07:00
2018-05-19 10:20:24 +02:00
2018-03-19 08:42:54 +01:00
2018-02-25 11:07:59 +01:00
2017-09-21 11:56:32 -07:00
2017-08-30 15:26:11 -07:00
2017-09-01 17:42:05 -07:00
2018-01-02 20:31:12 +01:00
2017-08-25 17:19:10 -07:00
2017-08-25 17:19:10 -07:00
2017-09-01 17:42:05 -07:00
2018-03-31 18:10:40 +02:00
2017-04-13 13:58:22 -04:00
2017-09-06 21:20:07 -07:00
2017-09-06 21:20:07 -07:00
2018-05-25 16:17:23 +02:00
2017-08-25 17:19:10 -07:00
2018-02-25 11:07:59 +01:00
2018-05-25 16:17:23 +02:00
2017-01-08 17:51:44 -05:00