summaryrefslogtreecommitdiff
path: root/drivers/block/xen-blkback/blkback.c
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2017-05-18 18:28:48 +0300
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2017-06-13 23:09:41 +0300
commit71df1d7ccad1c36f7321d6b3b48f2ea42681c363 (patch)
tree3a7679bd60a7d022a8fc9cf72491bb9173abac4e /drivers/block/xen-blkback/blkback.c
parent46464411307746e6297a034a9983a22c9dfc5a0c (diff)
downloadlinux-71df1d7ccad1c36f7321d6b3b48f2ea42681c363.tar.xz
xen/blkback: don't free be structure too early
The be structure must not be freed when freeing the blkif structure isn't done. Otherwise a use-after-free of be when unmapping the ring used for communicating with the frontend will occur in case of a late call of xenblk_disconnect() (e.g. due to an I/O still active when trying to disconnect). Signed-off-by: Juergen Gross <jgross@suse.com> Tested-by: Steven Haigh <netwiz@crc.id.au> Acked-by: Roger Pau Monné <roger.pau@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/block/xen-blkback/blkback.c')
0 files changed, 0 insertions, 0 deletions