[ovs-git] [openvswitch/ovs] 942769: dpif-netdev: Fix crash when PACKET_OUT is metered.

Tony van der Peet noreply at github.com
Wed Sep 8 18:31:35 UTC 2021


  Branch: refs/heads/branch-2.14
  Home:   https://github.com/openvswitch/ovs
  Commit: 9427690c062e008bf166398dd79d2a5ce4869dc9
      https://github.com/openvswitch/ovs/commit/9427690c062e008bf166398dd79d2a5ce4869dc9
  Author: Tony van der Peet <tony.vanderpeet at alliedtelesis.co.nz>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

  Changed paths:
    M lib/dp-packet.h
    M lib/dpif-netdev.c
    M tests/ofproto-dpif.at
    M tests/tunnel-push-pop.at

  Log Message:
  -----------
  dpif-netdev: Fix crash when PACKET_OUT is metered.

When a PACKET_OUT has output port of OFPP_TABLE, and the rule
table includes a meter and this causes the packet to be deleted,
execute with a clone of the packet, restoring the original packet
if it is changed by the execution.

Add tests to verify the original issue is fixed, and that the fix
doesn't break tunnel processing.

Reported-by: Tony van der Peet <tony.vanderpeet at alliedtelesis.co.nz>
Signed-off-by: Tony van der Peet <tony.vanderpeet at alliedtelesis.co.nz>
Signed-off-by: Ilya Maximets <i.maximets at ovn.org>




More information about the git mailing list