summaryrefslogtreecommitdiff
path: root/block/blk-mq-tag.h
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2021-05-11 23:22:36 +0800
committerJens Axboe <axboe@kernel.dk>2021-05-24 06:47:22 -0600
commit364b61818f65045479e42e76ed8dd6f051778280 (patch)
tree0457d1bbba7f4e9f8d0077974c580b84b7d3d2bf /block/blk-mq-tag.h
parentbd63141d585bef14f4caf111f6d0e27fe2300ec6 (diff)
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>
Diffstat (limited to 'block/blk-mq-tag.h')
0 files changed, 0 insertions, 0 deletions