HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
vhost-net: fix use-after-free in vhost_net_flush
vhost_net_ubuf_put_and_wait has a confusing name: it will actually also free it's argument. Thus since commit 1280c27 "vhost-net: flush outstanding DMAs on memory change" vhost_net_flush tries to use the argument after passing it to vhost_net_ubuf_put_and_wait, this results in use after free. To fix, don't free the argument in vhost_net_ubuf_put_and_wait, add an new API for callers that want to free ubufs. Acked-by: Asias He <firstname.lastname@example.org> Acked-by: Jason Wang <email@example.com> Signed-off-by: Michael S. Tsirkin <firstname.lastname@example.org> Signed-off-by: David S. Miller <email@example.com>
- Loading branch information...