aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2015-07-13 00:06:02 +0200
committerDavid S. Miller <[email protected]>2015-07-15 15:53:27 -0700
commit035d210f928ce083435b4fd351a26d126c02c927 (patch)
tree9de66347d7aefe38a10b5a1cb3d859d723627052 /lib/memory-notifier-error-inject.c
parent50c2e4dd6749725338621fff456b26d3a592259f (diff)
rtnetlink: reject non-IFLA_VF_PORT attributes inside IFLA_VF_PORTS
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 only check if the IFLA_VF_PORTS container has IFLA_VF_PORT attributes and then pass the attribute's content itself via nla_parse_nested(). It would be more correct to reject inner types other than IFLA_VF_PORT instead of continuing parsing and also similarly as in commit 4f7d2cdfdde7, to check for a minimum of NLA_HDRLEN. Signed-off-by: Daniel Borkmann <[email protected]> Cc: Roopa Prabhu <[email protected]> Cc: Scott Feldman <[email protected]> Cc: Jason Gunthorpe <[email protected]> Acked-by: Roopa Prabhu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions