Re: [PATCH 2/4] vhost-user-blk: fix invalid memory access

2020-04-16 Thread Raphael Norwitz
On Wed, Apr 15, 2020 at 11:28:24AM +0800, Li Feng wrote: > > when s->inflight is freed, vhost_dev_free_inflight may try to access > s->inflight->addr, it will retrigger the following issue. > > ==7309==ERROR: AddressSanitizer: heap-use-after-free on address > 0x604001020d18 at pc 0x55ce948a

[PATCH 2/4] vhost-user-blk: fix invalid memory access

2020-04-14 Thread Li Feng
when s->inflight is freed, vhost_dev_free_inflight may try to access s->inflight->addr, it will retrigger the following issue. ==7309==ERROR: AddressSanitizer: heap-use-after-free on address 0x604001020d18 at pc 0x55ce948a bp 0x7fffb170 sp 0x7fffb160 READ of size 8 at 0x604001020d18 t