[dpdk-stable] [PATCH v2] examples/vhost_blk: fix the TOCTOU
    Maxime Coquelin 
    maxime.coquelin at redhat.com
       
    Thu Feb 13 17:28:31 CET 2020
    
    
  
On 2/11/20 10:33 AM, Jin Yu wrote:
> Fix the time of check time of use warning in example code.
> Ignore the errno of unlink failure. There are two situations.
> The first one is that file doesn't exist the unlink fails and
> it's ok to ignore. The second one is that unlink fails to remove
> file but the next bind() would fail too.
> 
> Coverity issue: 350589 158663
> Fixes: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Jin Yu <jin.yu at intel.com>
> Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> ---
> V2 - complement the commit message.
> ---
>  examples/vhost_blk/vhost_blk.c | 9 ++-------
>  1 file changed, 2 insertions(+), 7 deletions(-)
Applied to dpdk-next-virtio/master
Thanks,
Maxime
    
    
More information about the stable
mailing list