summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorLiping Zhang <zlpnobody@gmail.com>2017-02-27 13:59:39 +0100
committerDavid S. Miller <davem@davemloft.net>2017-03-01 19:25:56 +0100
commit3b45a4106f146c336cbcaccb9d8d0fa0e5c3dc1d (patch)
tree6cc6357c067cae23b7dfc81d8fc755bdf33a4b3c /net/ipv6
parentnet/ipv6: avoid possible dead locking on addr_gen_mode sysctl (diff)
downloadlinux-3b45a4106f146c336cbcaccb9d8d0fa0e5c3dc1d.tar.xz
linux-3b45a4106f146c336cbcaccb9d8d0fa0e5c3dc1d.zip
net: route: add missing nla_policy entry for RTA_MARK attribute
This will add stricter validating for RTA_MARK attribute. Signed-off-by: Liping Zhang <zlpnobody@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/route.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index f54f4265b37f..d94f1dfa54c8 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -2891,6 +2891,7 @@ static const struct nla_policy rtm_ipv6_policy[RTA_MAX+1] = {
[RTA_ENCAP] = { .type = NLA_NESTED },
[RTA_EXPIRES] = { .type = NLA_U32 },
[RTA_UID] = { .type = NLA_U32 },
+ [RTA_MARK] = { .type = NLA_U32 },
};
static int rtm_to_fib6_config(struct sk_buff *skb, struct nlmsghdr *nlh,