Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
binding.c: update ld->peers when lsp type updated
The local_datapath->peer_ports list contains peers pointers to lsp<-->lrp ports that are supposed to be router end ports, those pointers are added and deleted to the local_datapath->peer_ports when logical switch port of type router are added or deleted from the database. The deletion and creation of those ports are handled very well when the LSP type is a router, but if in any case, the user has changed the LSP type from router port to any other LSP type the ld->peer_ports will keep pointing to this port and if it was deleted it will keep pointing to invalid memory regions and that could lead to invalid memory access in the ovn-controller. To solve the above issue this patch will update the local_dataoath->peer_ports whenever a lport is updated. Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=2077078 Co-authored-by: Xavier Simonart <xsimonar@redhat.com> Signed-off-by: Mohammad Heib <mheib@redhat.com> Signed-off-by: Xavier Simonart <xsimonar@redhat.com> Signed-off-by: Mohammad Heib <mheib@redhat.com> Acked-by: Ales Musil <amusil@redhat.com> Acked-by: Mark Michelson <mmichels@redhat.com> Signed-off-by: Mark Michelson <mmichels@redhat.com>
- Loading branch information