diff options
author | Ming Lei <ming.lei@redhat.com> | 2021-05-11 23:22:36 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-12 08:58:27 +0200 |
commit | 798679af7978bf4d9df1a907fd4100d4c1f90c03 (patch) | |
tree | 5992628d38d8afba319a1d630f117c07305579a2 /block/kyber-iosched.c | |
parent | e51ff3ffc316377cca21de8b80404eed0c37b3c3 (diff) | |
download | linux-stable-798679af7978bf4d9df1a907fd4100d4c1f90c03.tar.gz linux-stable-798679af7978bf4d9df1a907fd4100d4c1f90c03.tar.bz2 linux-stable-798679af7978bf4d9df1a907fd4100d4c1f90c03.zip |
blk-mq: clearing flush request reference in tags->rqs[]
commit 364b61818f65045479e42e76ed8dd6f051778280 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block/kyber-iosched.c')
0 files changed, 0 insertions, 0 deletions