]> git.proxmox.com Git - ovs.git/commit
ofproto: Fix crash processing malformed Bundle Add message.
authorAnju Thomas <anju.thomas@ericsson.com>
Mon, 7 May 2018 17:28:06 +0000 (22:58 +0530)
committerBen Pfaff <blp@ovn.org>
Thu, 10 May 2018 23:40:52 +0000 (16:40 -0700)
commitd0485f488f68e4a40e9aa7df4ebca853d7264441
tree2d95902b818c19f38ab02959e13fedd3c7970a65
parentfb8635c53853729e64d4f0d9c9e515e11da0ca0e
ofproto: Fix crash processing malformed Bundle Add message.

When an OpenFlow Bundle Add message is received, a bundle entry is
created and the OpenFlow message embedded in the bundle add message is
processed.  If any error is encountered while processing the embedded
message, the bundle entry is freed. The bundle entry free function
assumes that the entry has been populated with a properly formatted
OpenFlow message and performs some message specific cleanup actions .
This assumption does not hold true in the error case and OVS crashes
when performing the cleanup.

The fix is in case of errors, simply free the bundle entry without
attempting to perform any embedded message cleanup

Signed-off-by: Anju Thomas <anju.thomas@ericsson.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ofproto/bundles.h
ofproto/ofproto.c