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

From: Jens Axboe
Date: Tue Jun 09 2015 - 17:32:25 EST


On 06/09/2015 03:28 AM, Ming Lei wrote:
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

I'll pull it in, thanks.

--
Jens Axboe

--
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/