[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <169470755284.1974464.819655197479037967.b4-ty@kernel.dk>
Date:   Thu, 14 Sep 2023 10:05:52 -0600
From:   Jens Axboe <axboe@...nel.dk>
To:     ming.lei@...hat.com, chengming.zhou@...ux.dev
Cc:     linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
        Chengming Zhou <zhouchengming@...edance.com>,
        Yi Zhang <yi.zhang@...hat.com>
Subject: Re: [PATCH] blk-mq: fix tags UAF when shrink nr_hw_queues
On Fri, 08 Sep 2023 08:57:02 +0800, chengming.zhou@...ux.dev wrote:
> When nr_hw_queues shrink, we free the excess tags before realloc
> hw_ctxs for each queue, during that we may need to access those
> tags, like blk_mq_tag_idle(hctx) will access queue shared tags.
> 
> So slab-use-after-free caused and reported by KASAN. Fix it by
> moving the releasing of excess tags to the end.
> 
> [...]
Applied, thanks!
[1/1] blk-mq: fix tags UAF when shrink nr_hw_queues
      (no commit info)
Best regards,
-- 
Jens Axboe
Powered by blists - more mailing lists