summaryrefslogtreecommitdiffstats
path: root/block/deadline-iosched.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-07-07 13:26:53 +0200
committerDavid S. Miller <davem@davemloft.net>2013-07-09 21:55:48 +0200
commitdd7633ecd553a5e304d349aa6f8eb8a0417098c5 (patch)
treeb78a356c1a5bef54e7ce20ca440e9c9159d818ac /block/deadline-iosched.c
parentnet: mv643xx_eth: do not use port number as platform device id (diff)
downloadlinux-dd7633ecd553a5e304d349aa6f8eb8a0417098c5.tar.xz
linux-dd7633ecd553a5e304d349aa6f8eb8a0417098c5.zip
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 1280c27f8e29acf4af2da914e80ec27c3dbd5c01 "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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block/deadline-iosched.c')
0 files changed, 0 insertions, 0 deletions