Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Liping Zhang and committed by
David S. Miller
3b45a410 8c171d6c

+2
+1
net/ipv4/fib_frontend.c
··· 622 622 [RTA_ENCAP_TYPE] = { .type = NLA_U16 }, 623 623 [RTA_ENCAP] = { .type = NLA_NESTED }, 624 624 [RTA_UID] = { .type = NLA_U32 }, 625 + [RTA_MARK] = { .type = NLA_U32 }, 625 626 }; 626 627 627 628 static int rtm_to_fib_config(struct net *net, struct sk_buff *skb,
+1
net/ipv6/route.c
··· 2891 2891 [RTA_ENCAP] = { .type = NLA_NESTED }, 2892 2892 [RTA_EXPIRES] = { .type = NLA_U32 }, 2893 2893 [RTA_UID] = { .type = NLA_U32 }, 2894 + [RTA_MARK] = { .type = NLA_U32 }, 2894 2895 }; 2895 2896 2896 2897 static int rtm_to_fib6_config(struct sk_buff *skb, struct nlmsghdr *nlh,