[dpdk-dev] [PATCH 1/2] eal/ipc: fix use-after-free in synchronous requests

Thomas Monjalon thomas at monjalon.net
Tue Apr 17 01:19:35 CEST 2018


13/04/2018 17:33, Tan, Jianfeng:
> 
> On 4/13/2018 7:54 PM, Anatoly Burakov wrote:
> > Previously, we were adding synchronous requests to request list, we
> > were doing it after checking if request existed. However, we only
> > removed the request from the request list if we have succeeded in
> > sending the request. In case of failed request send, we left an
> > invalid pointer in the request list.
> >
> > Fix this by only adding request to the list once we succeed in
> > sending it.
> >
> > Fixes: 783b6e54971d ("eal: add synchronous multi-process communication")
> > Cc: jianfeng.tan at intel.com
> >
> > Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> 
> Nice catch.
> 
> Acked-by: Jianfeng Tan <jianfeng.tan at intel.com>

Series applied, thanks





More information about the dev mailing list