Re: [PATCH v1] blk-mq: free hctx->ctxs in queue's release handler

From: Ming Lei
Date: Tue Jun 09 2015 - 05:28:58 EST


Hi Jens,

Could you consider this patch for v4.1?

http://marc.info/?l=linux-kernel&m=143342792910832&w=2

The issue is one obvious use-after-free and can be reproduced easily
via 'sudo modprobe loop;sleep 1;sudo rmmod loop' on linus tree:

http://kernel.ubuntu.com/~ming/block/bug/4.1-rc7-blk-mq-oops.txt


Thanks,
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/