]> git.baikalelectronics.ru Git - kernel.git/commit
veth: Enforce minimum size of VETH_INFO_PEER
authorThomas Graf <tgraf@suug.ch>
Wed, 15 Feb 2012 04:09:46 +0000 (04:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Feb 2012 19:59:20 +0000 (14:59 -0500)
commit92826e819cd6ae5be496cf3b43417f2540254a14
tree9571ac28f82724a140367ad754b4946a889f2b70
parent8b83535d2a1bd6c6a75f12882598d668631e42bb
veth: Enforce minimum size of VETH_INFO_PEER

VETH_INFO_PEER carries struct ifinfomsg plus optional IFLA
attributes. A minimal size of sizeof(struct ifinfomsg) must be
enforced or we may risk accessing that struct beyond the limits
of the netlink message.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c