Skip to content

Commit 849ee3d

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
Pull Ceph fix from Sage Weil: "This addresses a refcounting bug that leads to a use-after-free" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: rbd: don't put snap_context twice in rbd_queue_workfn()
2 parents fb39cbd + 70b16db commit 849ee3d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/block/rbd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3442,6 +3442,7 @@ static void rbd_queue_workfn(struct work_struct *work)
34423442
goto err_rq;
34433443
}
34443444
img_request->rq = rq;
3445+
snapc = NULL; /* img_request consumes a ref */
34453446

34463447
if (op_type == OBJ_OP_DISCARD)
34473448
result = rbd_img_request_fill(img_request, OBJ_REQUEST_NODATA,

0 commit comments

Comments
 (0)