[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190509184234.GA197434@google.com>
Date: Thu, 9 May 2019 12:42:34 -0600
From: Raul Rangel <rrangel@...omium.org>
To: Christoph Hellwig <hch@...radead.org>
Cc: linux-mmc@...r.kernel.org, djkurtz@...gle.com,
adrian.hunter@...el.com, zwisler@...omium.org,
linux-kernel@...r.kernel.org, Ulf Hansson <ulf.hansson@...aro.org>
Subject: Re: [PATCH 1/2] mmc: v4.14: Fix null pointer dereference in
mmc_init_request
On Wed, May 08, 2019 at 11:04:56PM -0700, Christoph Hellwig wrote:
> On Wed, May 08, 2019 at 12:58:32PM -0600, Raul E Rangel wrote:
> > It is possible for queuedata to be cleared in mmc_cleanup_queue before
> > the request has been started.
>
> Errm. I think we need to fix that problem instead of working around it.
So mmc_request_fn already has a null check, it was just missing on
mmc_init_request.
I could move `blk_cleanup_queue(q)` above `q->queuedata = NULL` and the
lock. So that would mean cherry-picking
https://lore.kernel.org/patchwork/patch/856512/ and then a patch with
moving blk_cleanup_queue.
Should I do that instead?
Thanks,
Raul
Powered by blists - more mailing lists