From: Vinod Koul <vkoul@kernel.org>
To: Dave Jiang <dave.jiang@intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>,
Naresh Kamboju <naresh.kamboju@linaro.org>,
linux-serial@vger.kernel.org,
open list <linux-kernel@vger.kernel.org>,
Jiri Slaby <jslaby@suse.com>,
linux-arm-msm <linux-arm-msm@vger.kernel.org>,
linux-tegra <linux-tegra@vger.kernel.org>,
jirislaby@kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
ldewangan@nvidia.com, Thierry Reding <thierry.reding@gmail.com>,
Jon Hunter <jonathanh@nvidia.com>, Qian Cai <cai@lca.pw>,
lkft-triage@lists.linaro.org
Subject: Re: [qemu] boot failed: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
Date: Mon, 6 Jul 2020 20:40:41 +0530 [thread overview]
Message-ID: <20200706151041.GL633187@vkoul-mobl> (raw)
In-Reply-To: <8c50799e-d0ba-626a-5627-5ff4e5825f6a@intel.com>
On 06-07-20, 07:33, Dave Jiang wrote:
> > I don't see anything suspicious in dmaengine drivers, but there is a
> > recent series
> > from Dave Jiang that might explain it. Could you try reverting commit
> > deb9541f5052 ("dmaengine: check device and channel list for empty")?
> >
> > I think the broken change is this one:
> >
> > @@ -819,6 +850,11 @@ struct dma_chan *dma_request_chan(struct device
> > *dev, const char *name)
> >
> > /* Try to find the channel via the DMA filter map(s) */
> > mutex_lock(&dma_list_mutex);
> > + if (list_empty(&dma_device_list)) {
> > + mutex_unlock(&dma_list_mutex);
> > + return NULL;
> > + }
> > +
> > list_for_each_entry_safe(d, _d, &dma_device_list, global_node) {
> > dma_cap_mask_t mask;
> > const struct dma_slave_map *map = dma_filter_match(d,
> > name, dev);
> >
> > which needs to return an error code like -ENODEV instead of NULL. There
> > may be other changes in the same patch that introduce the same bug
> > elsewhere.
> >
> > Arnd
> >
>
> Vinod,
> Do you want a diff fix or a revision of the patch for the fix?
Diff fix please
--
~Vinod
next prev parent reply other threads:[~2020-07-06 15:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-06 11:03 [qemu] boot failed: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 Naresh Kamboju
2020-07-06 12:53 ` Arnd Bergmann
2020-07-06 14:33 ` Dave Jiang
2020-07-06 15:10 ` Vinod Koul [this message]
2020-07-06 15:01 ` Dave Jiang
2020-07-06 15:24 ` Arnd Bergmann
2020-07-06 15:26 ` Dave Jiang
2020-07-06 17:36 ` Naresh Kamboju
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200706151041.GL633187@vkoul-mobl \
--to=vkoul@kernel.org \
--cc=agross@kernel.org \
--cc=arnd@arndb.de \
--cc=bjorn.andersson@linaro.org \
--cc=cai@lca.pw \
--cc=dave.jiang@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=jonathanh@nvidia.com \
--cc=jslaby@suse.com \
--cc=ldewangan@nvidia.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=lkft-triage@lists.linaro.org \
--cc=naresh.kamboju@linaro.org \
--cc=thierry.reding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox