From: Christoph Hellwig <hch@lst.de>
To: Ming Lei <ming.lei@redhat.com>
Cc: Cheyenne Wills <cheyenne.wills@gmail.com>,
linux-block@vger.kernel.org, Christoph Hellwig <hch@lst.de>
Subject: Re: BUG: NULL pointer dereferenced within __blk_rq_map_sg
Date: Thu, 13 Feb 2025 07:32:14 +0100 [thread overview]
Message-ID: <20250213063214.GA20171@lst.de> (raw)
In-Reply-To: <Z61LEUdHI2Hx3bue@fedora>
On Thu, Feb 13, 2025 at 09:29:53AM +0800, Ming Lei wrote:
> Yeah, turns out oops is triggered in initializing req_iterator for
> discard req, and the following patch should be enough:
How do we end up in blk_rq_map_sg for a discard request here?
dma-mapping doesn't make sense for a non-special pyaload discard
as used by xxen-blkfront, and xen-blkfront also only calls
blk_rq_map_sg from blkif_queue_rw_req and not blkif_queue_discard_req.
next prev parent reply other threads:[~2025-02-13 6:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-08 2:09 BUG: NULL pointer dereferenced within __blk_rq_map_sg Cheyenne Wills
2025-02-11 12:13 ` Ming Lei
2025-02-11 15:28 ` Ming Lei
2025-02-12 23:24 ` Cheyenne Wills
2025-02-13 1:29 ` Ming Lei
2025-02-13 6:32 ` Christoph Hellwig [this message]
2025-02-13 6:38 ` Christoph Hellwig
2025-02-13 12:39 ` Cheyenne Wills
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=20250213063214.GA20171@lst.de \
--to=hch@lst.de \
--cc=cheyenne.wills@gmail.com \
--cc=linux-block@vger.kernel.org \
--cc=ming.lei@redhat.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;
as well as URLs for NNTP newsgroup(s).