Re: [PATCH net] rtnetlink: reject non-IFLA_VF_PORT attributes inside IFLA_VF_PORTS

2015-07-15 Thread David Miller
From: Daniel Borkmann dan...@iogearbox.net Date: Mon, 13 Jul 2015 00:06:02 +0200 Similarly as in commit 4f7d2cdfdde7 (rtnetlink: verify IFLA_VF_INFO attributes before passing them to driver), we have a double nesting of netlink attributes, i.e. IFLA_VF_PORTS only contains IFLA_VF_PORT that is

Re: [PATCH net] rtnetlink: reject non-IFLA_VF_PORT attributes inside IFLA_VF_PORTS

2015-07-14 Thread roopa
On 7/12/15, 3:06 PM, Daniel Borkmann wrote: Similarly as in commit 4f7d2cdfdde7 (rtnetlink: verify IFLA_VF_INFO attributes before passing them to driver), we have a double nesting of netlink attributes, i.e. IFLA_VF_PORTS only contains IFLA_VF_PORT that is nested itself. While IFLA_VF_PORTS is a

[PATCH net] rtnetlink: reject non-IFLA_VF_PORT attributes inside IFLA_VF_PORTS

2015-07-12 Thread Daniel Borkmann
Similarly as in commit 4f7d2cdfdde7 (rtnetlink: verify IFLA_VF_INFO attributes before passing them to driver), we have a double nesting of netlink attributes, i.e. IFLA_VF_PORTS only contains IFLA_VF_PORT that is nested itself. While IFLA_VF_PORTS is a verified attribute from ifla_policy[], we