Mathias Krause 4775cc1f2d rtnl: stats - add missing netlink message size checks
We miss to check if the netlink message is actually big enough to contain
a struct if_stats_msg.

Add a check to prevent userland from sending us short messages that would
make us access memory beyond the end of the message.

Fixes: 10c9ead9f3c6 ("rtnetlink: add new RTM_GETSTATS message to dump...")
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-29 14:05:15 -05:00
..
2016-12-25 17:21:22 +01:00
2016-02-16 20:21:48 -05:00
2016-12-08 11:45:21 -05:00
2015-04-02 14:04:59 -04:00
2015-11-22 11:54:10 -05:00
2016-11-16 18:32:02 -05:00
2016-12-25 17:21:22 +01:00
2016-11-14 13:17:21 -05:00
2016-12-08 13:18:35 -05:00
2015-10-26 22:24:22 -07:00