Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-1136

Sub-Interface deletion did not cleanup related hash properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • 18.01
    • None
    • None
    • None

      The function vnet_delete_sub_interface() in src/vnet/ethernet/interface.c is missing hash-unset of hi->sub_interface_sw_if_index_by_id which can cause later call of vnet_delete_hw_interface() to corrupt sw_if_index usage or crash as it cleanup sub-interfaces which are already deleted. There is also a memory leak from the hash_unset_mem() call without freeing the key memory.

            Unassigned Unassigned
            lojohn John Lo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: