aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2023-01-30 01:41:36 +0000
committerJens Axboe <[email protected]>2023-01-30 01:57:01 +0000
commitb600de2d7d3a16f9007fad1bdae82a3951a26af2 (patch)
tree4a676a3d482d0f4e89c2468d341b28895d62d26e /tools/perf/scripts/python/check-perf-trace.py
parentMerge tag 'nvme-6.2-2023-01-26' of git://git.infradead.org/nvme into block-6.2 (diff)
downloadkernel-b600de2d7d3a16f9007fad1bdae82a3951a26af2.tar.gz
kernel-b600de2d7d3a16f9007fad1bdae82a3951a26af2.zip
block, bfq: fix uaf for bfqq in bic_set_bfqq()
After commit 64dc8c732f5c ("block, bfq: fix possible uaf for 'bfqq->bic'"), bic->bfqq will be accessed in bic_set_bfqq(), however, in some context bic->bfqq will be freed, and bic_set_bfqq() is called with the freed bic->bfqq. Fix the problem by always freeing bfqq after bic_set_bfqq(). Fixes: 64dc8c732f5c ("block, bfq: fix possible uaf for 'bfqq->bic'") Reported-and-tested-by: Shinichiro Kawasaki <[email protected]> Signed-off-by: Yu Kuai <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions