[IPv4]: Convert route get to new netlink api
Fixes various unvalidated netlink attributes causing memory corruptions when left empty by userspace applications. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
be403ea185
commit
d889ce3b29
@@ -453,7 +453,7 @@ int ip_rt_ioctl(unsigned int cmd, void *arg)
|
||||
|
||||
#endif
|
||||
|
||||
static struct nla_policy rtm_ipv4_policy[RTA_MAX+1] __read_mostly = {
|
||||
struct nla_policy rtm_ipv4_policy[RTA_MAX+1] __read_mostly = {
|
||||
[RTA_DST] = { .type = NLA_U32 },
|
||||
[RTA_SRC] = { .type = NLA_U32 },
|
||||
[RTA_IIF] = { .type = NLA_U32 },
|
||||
|
Reference in New Issue
Block a user