[ovs-git] [ovn-org/ovn] a9e72d: ovn-sbctl: Prevent core dump from ovn-sbctl lflow-...

Alexey Roytman noreply at github.com
Mon May 10 20:58:58 UTC 2021


  Branch: refs/heads/branch-21.03
  Home:   https://github.com/ovn-org/ovn
  Commit: a9e72daa503a4f31d947aab52e025f168ea0fcdd
      https://github.com/ovn-org/ovn/commit/a9e72daa503a4f31d947aab52e025f168ea0fcdd
  Author: Alexey Roytman <roytman at il.ibm.com>
  Date:   2021-05-10 (Mon, 10 May 2021)

  Changed paths:
    M tests/ovn-sbctl.at
    M utilities/ovn-sbctl.c

  Log Message:
  -----------
  ovn-sbctl: Prevent core dump from ovn-sbctl lflow-list [datpath] 0xflow

When ovn-sbctl lflow-list gets lflow argument with 0x prefix, e.g. 0x8131c8a8,
it prints correct output, but fails with coredump.
For example:
ovn-sbctl --uuid lflow-list sw1 0x8131c8a8

Datapath: "sw1" (4b1e53d8-9f0f-4768-b4a6-6cbc58a4bfda)  Pipeline: egress
    uuid=0x8131c8a8, table=10(ls_out_port_sec_l2 ), priority=100  ,
match=(eth.mcast), action=(output;)
free(): invalid pointer
[2]    616553 abort (core dumped)  ovn-sbctl --uuid dump-flows sw1 0x8131c8a8

 This patch fixes it.

Signed-off-by: Alexey Roytman <roytman at il.ibm.com>
Signed-off-by: Mark Michelson <mmichels at redhat.com>
Acked-by: Mark Michelson <mmichels at redhat.com>




More information about the git mailing list