memif: contention between memif_disconnect and memif RX/TX threads 57/39957/2
authorSteven Luong <sluong@cisco.com>
Thu, 5 Oct 2023 22:33:40 +0000 (15:33 -0700)
committerDave Wallace <dwallacelf@gmail.com>
Fri, 1 Dec 2023 16:36:09 +0000 (16:36 +0000)
commit6c2464d0327f6d3fcaae67d209ae99e1c3069592
tree5b9a10c26401c42469bc53dae1483e62f7b0e7fa
parent6d83dddeb142b9e44bb1e0e8f266629706c4fdc3
memif: contention between memif_disconnect and memif RX/TX threads

memif_disconect may be called without barrier sync. It removes stuff in mq
without protection which may cause troubles for memif RX/TX worker threads.

The fix is to protect mq removal in memif_disconnect.

Type: fix

Change-Id: I368c466d1f13df98980dfa87e8442fbcd822a428
Signed-off-by: Steven Luong <sluong@cisco.com>
(cherry picked from commit 34c721fb47155135bf2173ca7b9a31aaacfde190)
src/plugins/memif/memif.c