Files
android_kernel_xiaomi_sm8450/drivers
Michael S. Tsirkin c38e39c378 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 1280c27f8e
    "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 <asias@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2013-07-07 14:06:22 +03:00
..
2013-05-17 14:31:05 -04:00
2013-04-26 22:30:25 +02:00
2013-05-20 13:38:14 -07:00
2013-05-15 10:58:22 -07:00
2013-06-13 22:12:14 +01:00
2013-06-26 23:08:22 -07:00
2013-06-05 08:54:16 -06:00