Branch: refs/heads/main Home: https://github.com/OpenAMP/open-amp Commit: b33183fea5dc6954e5928a26049752e6ed9c87df https://github.com/OpenAMP/open-amp/commit/b33183fea5dc6954e5928a26049752e6e... Author: Bowen Wang wangbowen6@xiaomi.com Date: 2023-11-29 (Wed, 29 Nov 2023)
Changed paths: M lib/include/openamp/rpmsg.h M lib/rpmsg/rpmsg.c M lib/rpmsg/rpmsg_internal.h M lib/rpmsg/rpmsg_virtio.c
Log Message: ----------- rpmsg: add release cb and refcnt in endpoint to fix ept used-after-free
if rpmsg service free the ept when has got the ept from the ept list in rpmsg_virtio_rx_callback, there is a used after free about the ept, so add refcnt to end point and call the rpmsg service release callback when ept callback fininshed.
Signed-off-by: Bowen Wang wangbowen6@xiaomi.com
openamp-rp@lists.openampproject.org