Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1240036
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!newsfeed0.kamp.net!newsfeed.kamp.net!fu-berlin.de!bofh.it!news.nic.it!robomod |
|---|---|
| From | Akinobu Mita <akinobu.mita@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 3/7] blk-mq: Fix use after of free q->mq_map |
| Date | Tue, 06 Oct 2015 02:00:02 +0200 |
| Message-ID | <qgnPI-5Rk-5@gated-at.bofh.it> (permalink) |
| References | <qd18Z-6cT-11@gated-at.bofh.it> <qd1iG-6o9-23@gated-at.bofh.it> <qdX3k-7kc-17@gated-at.bofh.it> |
| X-Original-To | Christoph Hellwig <hch@lst.de> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=q5gpqEpXz0ZF92wlKeYqRKck+tCJGbznXnFB4v4l9tA=; b=koOsN+lv35JN1zp8SoFrT9xVQlHkDl+lKgLwJIVkmJn+hd4c5GMgQzAriuxOFHLK04 xm7A1MOnQImf7G/CziAiJdOTblMW0Bxuqt3b3aGUbNCOzR9FKwA0pix4r3BVcvWlHNKV DJOsaTllkfRuIPInqaAW9gDTQOclmMISuL1Z2o89H7OSec/u3hewlcxshzm0BK0WUxvD IxnLqO6cIcFSkAoMHbfK8mKWdn3McfL4LrU4XpgM6UhEaHjuK0EkPBcahJTHBghi57d1 3TqGZoJnXb9HGpnBbVHNc9dFWGg7uiRYmP9neL+aUQ23HFFTAhg8cRlLEqTZZBFIyj1Z swgA== |
| MIME-Version | 1.0 |
| X-Received | by 10.31.8.77 with SMTP id 74mr19285768vki.67.1444089047087; Mon, 05 Oct 2015 16:50:47 -0700 (PDT) |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 33 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | LKML <linux-kernel@vger.kernel.org>, Jens Axboe <axboe@kernel.dk>, Ming Lei <tom.leiming@gmail.com> |
| X-Original-Date | Tue, 6 Oct 2015 08:50:47 +0900 |
| X-Original-Message-ID | <CAC5umygbe7Z4qvKC+rUub8Dfwe8hMnVynYKittO6BNZBmRftsA@mail.gmail.com> |
| X-Original-References | <1443287365-4244-1-git-send-email-akinobu.mita@gmail.com> <1443287365-4244-4-git-send-email-akinobu.mita@gmail.com> <20150929065235.GB14911@lst.de> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1240036 |
Show key headers only | View raw
2015-09-29 15:52 GMT+09:00 Christoph Hellwig <hch@lst.de>: > Looks good, > > Reviewed-by: Christoph Hellwig <hch@lst.de> > > Can you also add a patch that renames blk_mq_free_queue to > blk_mq_cleaup_queue and adds a comment that we should not free any memory > here? We had way too many bugs of this kinds unfortunately. Renaming blk_mq_free_queue to blk_mq_cleaup_queue sounds good because it is called from blk_cleanup_queue(). How about adding comment like below? /* * The resources allocated by blk_mq_init_allocated_queue() are released * by blk_mq_cleanup_queue() and blk_mq_release(). * * blk_mq_cleanup_queue() is called from blk_cleanup_queue(), so * the resources which may be used after blk_cleanup_queue() shouldn't * be released here. Instead, those should be released by blk_mq_release() * which is called from blk_release_queue(). * * For example, loop and md drivers call del_gendisk() after * blk_cleanup_queue(), so the resources used when accessing sysfs entries * for blk-mq shouldn't be released by blk_mq_cleanup_queue() as these sysfs * entries can be accessible before del_gendisk() is called. */ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v4 0/7] blk-mq: fix race conditions on cpu hotplug handling Akinobu Mita <akinobu.mita@gmail.com> - 2015-09-26 19:10 +0200
[PATCH v4 4/7] blk-mq: fix q->mq_usage_counter access race Akinobu Mita <akinobu.mita@gmail.com> - 2015-09-26 19:20 +0200
[PATCH v4 5/7] blk-mq: avoid inserting requests before establishing new mapping Akinobu Mita <akinobu.mita@gmail.com> - 2015-09-26 19:20 +0200
Re: [PATCH v4 5/7] blk-mq: avoid inserting requests before establishing new mapping Christoph Hellwig <hch@lst.de> - 2015-09-29 09:00 +0200
[PATCH v4 2/7] blk-mq: fix sysfs registration/unregistration race Akinobu Mita <akinobu.mita@gmail.com> - 2015-09-26 19:20 +0200
[PATCH v4 1/7] blk-mq: avoid setting hctx->tags->cpumask before allocation Akinobu Mita <akinobu.mita@gmail.com> - 2015-09-26 19:20 +0200
Re: [PATCH v4 1/7] blk-mq: avoid setting hctx->tags->cpumask before allocation Christoph Hellwig <hch@lst.de> - 2015-09-26 20:20 +0200
[PATCH v4 7/7] blk-mq: fix deadlock when reading cpu_list Akinobu Mita <akinobu.mita@gmail.com> - 2015-09-26 19:20 +0200
[PATCH v4 6/7] blk-mq: fix freeze queue race Akinobu Mita <akinobu.mita@gmail.com> - 2015-09-26 19:20 +0200
Re: [PATCH v4 6/7] blk-mq: fix freeze queue race Tejun Heo <tj@kernel.org> - 2015-09-26 19:40 +0200
Re: [PATCH v4 6/7] blk-mq: fix freeze queue race Akinobu Mita <akinobu.mita@gmail.com> - 2015-09-27 15:10 +0200
Re: [PATCH v4 6/7] blk-mq: fix freeze queue race Tejun Heo <tj@kernel.org> - 2015-09-28 16:50 +0200
Re: [PATCH v4 6/7] blk-mq: fix freeze queue race Christoph Hellwig <hch@lst.de> - 2015-09-29 09:00 +0200
Re: [PATCH v4 6/7] blk-mq: fix freeze queue race Tejun Heo <tj@kernel.org> - 2015-09-29 17:10 +0200
Re: [PATCH v4 6/7] blk-mq: fix freeze queue race Tejun Heo <tj@kernel.org> - 2015-09-30 00:00 +0200
Re: [PATCH v4 6/7] blk-mq: fix freeze queue race Akinobu Mita <akinobu.mita@gmail.com> - 2015-09-30 12:40 +0200
Re: [PATCH v4 6/7] blk-mq: fix freeze queue race Jens Axboe <axboe@kernel.dk> - 2015-09-29 17:10 +0200
[PATCH v4 3/7] blk-mq: Fix use after of free q->mq_map Akinobu Mita <akinobu.mita@gmail.com> - 2015-09-26 19:20 +0200
Re: [PATCH v4 3/7] blk-mq: Fix use after of free q->mq_map Christoph Hellwig <hch@lst.de> - 2015-09-29 09:00 +0200
Re: [PATCH v4 3/7] blk-mq: Fix use after of free q->mq_map Akinobu Mita <akinobu.mita@gmail.com> - 2015-10-06 02:00 +0200
Re: [PATCH v4 3/7] blk-mq: Fix use after of free q->mq_map Christoph Hellwig <hch@lst.de> - 2015-10-06 11:50 +0200
Re: [PATCH v4 0/7] blk-mq: fix race conditions on cpu hotplug handling Jens Axboe <axboe@kernel.dk> - 2015-09-29 19:40 +0200
csiph-web