mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: ming.lei@redhat.com, Yu Kuai <yukuai1@huaweicloud.com>,
	john.garry@huawei.com, hare@suse.de
Cc: linux-block@vger.kernel.org, yukuai3@huawei.com,
	linux-kernel@vger.kernel.org, yi.zhang@huawei.com
Subject: Re: [PATCH v2] blk-mq: fix null pointer dereference in blk_mq_clear_rq_mapping()
Date: Sun, 16 Oct 2022 17:23:01 -0600	[thread overview]
Message-ID: <166596258175.7979.3302811091883290568.b4-ty@kernel.dk> (raw)
In-Reply-To: <20221011142253.4015966-1-yukuai1@huaweicloud.com>

On Tue, 11 Oct 2022 22:22:53 +0800, Yu Kuai wrote:
> From: Yu Kuai <yukuai3@huawei.com>
> 
> Our syzkaller report a null pointer dereference, root cause is
> following:
> 
> __blk_mq_alloc_map_and_rqs
>  set->tags[hctx_idx] = blk_mq_alloc_map_and_rqs
>   blk_mq_alloc_map_and_rqs
>    blk_mq_alloc_rqs
>     // failed due to oom
>     alloc_pages_node
>     // set->tags[hctx_idx] is still NULL
>     blk_mq_free_rqs
>      drv_tags = set->tags[hctx_idx];
>      // null pointer dereference is triggered
>      blk_mq_clear_rq_mapping(drv_tags, ...)
> 
> [...]

Applied, thanks!

[1/1] blk-mq: fix null pointer dereference in blk_mq_clear_rq_mapping()
      commit: 76dd298094f484c6250ebd076fa53287477b2328

Best regards,
-- 
Jens Axboe



      parent reply	other threads:[~2022-10-16 23:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-11 14:22 Yu Kuai
2022-10-15  3:58 ` Yu Kuai
2022-10-16 23:23 ` Jens Axboe [this message]

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=166596258175.7979.3302811091883290568.b4-ty@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=hare@suse.de \
    --cc=john.garry@huawei.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ming.lei@redhat.com \
    --cc=yi.zhang@huawei.com \
    --cc=yukuai1@huaweicloud.com \
    --cc=yukuai3@huawei.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

all inboxes | Powered by JetHome®