]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: clearing flush request reference in tags->rqs[]
authorMing Lei <ming.lei@redhat.com>
Tue, 11 May 2021 15:22:36 +0000 (23:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 May 2021 12:47:22 +0000 (06:47 -0600)
commit3ff8e237de5484d1e7b99ebf1dbb081b923ba908
tree0457d1bbba7f4e9f8d0077974c580b84b7d3d2bf
parent9fb4a722bea7bed72a7eb097a5b60b2891d8cdcc
blk-mq: clearing flush request reference in tags->rqs[]

Before we free request queue, clearing flush request reference in
tags->rqs[], so that potential UAF can be avoided.

Based on one patch written by David Jeffery.

Tested-by: John Garry <john.garry@huawei.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: David Jeffery <djeffery@redhat.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20210511152236.763464-5-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c