From: Andy Zhou Date: Thu, 17 Jul 2014 22:17:44 +0000 (-0700) Subject: openvswitch: Avoid memory corruption in queue_userspace_packet() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~91^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f53e38317d581399eb67809d6b6b6c2c107db50c;p=pandora-kernel.git openvswitch: Avoid memory corruption in queue_userspace_packet() In queue_userspace_packet(), the ovs_nla_put_flow return value is not checked. This is fine as long as key_attr_size() returns the correct value. In case it does not, the current code may corrupt buffer memory. Add a run time assertion catch this case to avoid silent failure. Reported-by: Ben Pfaff Signed-off-by: Andy Zhou Signed-off-by: Pravin B Shelar --- Reading git-diff-tree failed