]> git.baikalelectronics.ru Git - kernel.git/commit
lwtunnel: be STRICT to validate the new LWTUNNEL_IP(6)_OPTS
authorXin Long <lucien.xin@gmail.com>
Thu, 21 Nov 2019 10:11:27 +0000 (18:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Nov 2019 19:47:23 +0000 (11:47 -0800)
commit980ebf0665d2f631e07416104734128a194273e8
tree2340c6f5aae6d06cd4315ef268e9c8cf4d2c397b
parent83017e8f065872707cf6cf8835e9bf82251a4dc7
lwtunnel: be STRICT to validate the new LWTUNNEL_IP(6)_OPTS

LWTUNNEL_IP(6)_OPTS are the new items in ip(6)_tun_policy, which
are parsed by nla_parse_nested_deprecated(). We should check it
strictly by setting .strict_start_type = LWTUNNEL_IP(6)_OPTS.

This patch also adds missing LWTUNNEL_IP6_OPTS in ip6_tun_policy.

Fixes: 7b5d58b41f9e ("lwtunnel: add options setting and dumping for geneve")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel_core.c