Searched hist:"7 c04952c760bb2a1200b3c7048773d2a774cfbc4" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/mm/ |
| H A D | mobj_dyn_shm.c | 7c04952c760bb2a1200b3c7048773d2a774cfbc4 Tue Oct 29 06:25:14 UTC 2024 Jens Wiklander <jens.wiklander@linaro.org> core: fix race in mobj_reg_shm_get_by_cookie()
Until this patch in mobj_reg_shm_get_by_cookie() there's a small window after cpu_spin_unlock_xrestore() before the reference counter is increased with mobj_get(). Fix that by calling mobj_get() before unlocking reg_shm_slist_lock.
Fixes: b96514926b8e ("core: reference count struct mobj") Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
|