[ovs-git] [openvswitch/ovs] 02d1f7: pinctrl: Fix memory leak and use-after-free for NA...

GitHub noreply at github.com
Fri Aug 19 23:33:14 UTC 2016

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 02d1f722d4ade7f61bd99648971ee79f0df318da
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2016-08-19 (Fri, 19 Aug 2016)

  Changed paths:
    M ovn/controller/pinctrl.c

  Log Message:
  pinctrl: Fix memory leak and use-after-free for NAT IPs in send_garp_run().

send_garp_run() allocated and populated a shash of struct lport_addresses,
but it only freed some of the data.  This fixes the problem.

Of the data that send_garp_run() did free, it freed some of it too early,
possibly leading to a use-after-free error.

CC: Chandra S Vejendla <csvejend at us.ibm.com>
Reported-by: Ramu Ramamurthy <ramu.ramamurthy at gmail.com>
Fixes: 8439c2ebd823 ("ovn: Support for GARP for NAT IPs via localnet")
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>

More information about the git mailing list