David Ahern
8bda81a4d4
lwtunnel: Validate RTA_ENCAP_TYPE attribute length
...
lwtunnel_valid_encap_type_attr is used to validate encap attributes
within a multipath route. Add length validation checking to the type.
lwtunnel_valid_encap_type_attr is called converting attributes to
fib{6,}_config struct which means it is used before fib_get_nhs,
ip6_route_multipath_add, and ip6_route_multipath_del - other
locations that use rtnh_ok and then nla_get_u16 on RTA_ENCAP_TYPE
attribute.
Fixes: 9ed59592e3 ("lwtunnel: fix autoload of lwt modules")
Signed-off-by: David Ahern <dsahern@kernel.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2021-12-31 14:31:59 +00:00
..
2020-08-10 12:06:44 -07:00
2021-10-18 14:05:25 +01:00
2021-12-29 17:46:43 -08:00
2021-06-30 15:51:09 -07:00
2021-11-01 19:57:14 -07:00
2021-11-15 20:35:58 -08:00
2021-09-19 12:43:56 +01:00
2021-09-29 11:39:33 +01:00
2021-11-15 14:22:12 +00:00
2021-06-09 09:38:52 +02:00
2021-07-20 16:14:23 +02:00
2021-12-02 11:56:04 +00:00
2021-06-07 14:08:30 -07:00
2021-09-28 17:32:56 -07:00
2021-12-02 11:56:04 +00:00
2021-12-31 14:31:59 +00:00
2021-07-20 06:00:38 -07:00
2021-08-31 12:03:33 +01:00
2021-05-17 15:29:35 -07:00
2021-01-29 20:39:14 -08:00
2021-10-14 07:54:47 -07:00
2021-08-13 06:41:22 -07:00
2021-12-03 14:15:07 +00:00
2021-12-10 21:14:49 -08:00
2020-12-12 15:08:54 -08:00
2021-10-15 11:28:34 +01:00
2020-08-19 14:06:36 +02:00
2021-03-01 13:32:12 -08:00
2021-10-13 09:41:37 -07:00
2021-02-03 14:51:39 -08:00
2020-08-25 06:28:02 -07:00
2021-08-30 12:47:09 +01:00
2021-10-25 18:02:14 -07:00
2021-01-08 19:25:35 -08:00
2021-10-13 09:41:37 -07:00
2021-10-13 09:41:37 -07:00
2021-06-30 15:51:09 -07:00
2021-10-28 14:36:41 +01:00
2021-10-13 09:41:37 -07:00
2021-07-07 20:52:25 -07:00
2020-08-18 16:02:16 -07:00
2021-02-26 12:28:03 -08:00
2020-11-16 08:08:54 -08:00
2021-04-18 22:04:16 +02:00
2021-11-23 11:39:53 +00:00
2021-09-14 14:24:31 +01:00
2021-10-15 11:28:34 +01:00
2021-05-17 15:29:35 -07:00
2021-07-13 09:28:29 -07:00
2021-09-14 14:24:31 +01:00
2021-09-20 13:09:06 +01:00
2021-09-21 10:48:47 +01:00
2021-09-23 12:50:26 +01:00
2021-10-05 17:07:41 -07:00
2021-11-09 00:58:26 +01:00
2021-05-04 11:58:28 -07:00
2021-11-24 17:26:05 -08:00
2021-10-05 17:07:41 -07:00
2021-09-20 13:09:06 +01:00
2020-07-06 13:23:03 -07:00
2020-07-06 13:23:03 -07:00
2021-12-20 18:46:43 -08:00
2021-12-20 18:46:43 -08:00
2021-03-28 17:31:13 -07:00
2020-12-14 16:40:27 -08:00
2021-12-03 14:15:49 +00:00
2021-09-27 12:47:39 +01:00
2021-08-02 10:20:56 +01:00
2021-11-04 11:26:15 +00:00
2021-09-24 14:16:40 +01:00
2021-07-27 20:07:21 +01:00
2020-08-24 17:31:20 -07:00
2021-06-29 11:28:21 -07:00
2020-10-13 17:11:52 -07:00
2020-07-06 13:23:03 -07:00
2021-06-29 11:54:36 -07:00
2021-12-20 18:46:43 -08:00
2021-05-17 15:29:35 -07:00
2021-10-26 12:29:33 -07:00
2021-07-13 09:28:29 -07:00
2020-07-24 15:41:54 -07:00
2021-08-31 12:03:33 +01:00
2021-09-21 10:17:20 +01:00
2021-09-13 12:38:45 +01:00
2020-07-10 13:54:00 -07:00
2021-12-27 14:47:14 +00:00
2021-05-17 15:29:35 -07:00
2020-05-11 15:12:27 +02:00
2021-05-17 15:29:35 -07:00
2021-09-23 10:10:00 +02:00