summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/task-analyzer-report
diff options
context:
space:
mode:
authorChengming Zhou <zhouchengming@bytedance.com>2023-09-08 08:57:02 +0800
committerJens Axboe <axboe@kernel.dk>2023-09-11 16:17:34 -0600
commit6be6d112419713334ddd9c01f219ca16adaa4c76 (patch)
tree18d2b39d8bd624ce27fa3779e95860aed42db0b0 /tools/perf/scripts/python/bin/task-analyzer-report
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff)
downloadkernel-6be6d112419713334ddd9c01f219ca16adaa4c76.tar.gz
blk-mq: fix tags UAF when shrinking q->nr_hw_queues
When nr_hw_queues shrink, we free the excess tags before realloc'ing hw_ctxs for each queue. During that resize, we may need to access those tags, like blk_mq_tag_idle(hctx) will access queue shared tags. This can cause a slab use-after-free, as reported by KASAN. Fix it by moving the releasing of excess tags to the end. Fixes: e1dd7bc93029 ("blk-mq: fix tags leak when shrink nr_hw_queues") Reported-by: Yi Zhang <yi.zhang@redhat.com> Closes: https://lore.kernel.org/all/CAHj4cs_CK63uoDpGBGZ6DN4OCTpzkR3UaVgK=LX8Owr8ej2ieQ@mail.gmail.com/ Cc: Ming Lei <ming.lei@redhat.com> Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Link: https://lore.kernel.org/r/20230908005702.2183908-1-chengming.zhou@linux.dev Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-report')
0 files changed, 0 insertions, 0 deletions
accel/qaic: Support for 0 resize slice execution in BOPranjal Ramajor Asha Kanojiya 2023-10-27accel/qaic: Enable 1 MSI fallback modeCarl Vanderlip 2023-09-29Merge tag 'drm-misc-next-2023-09-27' of git://anongit.freedesktop.org/drm/drm...Dave Airlie 2023-09-22accel/qaic: Add QAIC_DETACH_SLICE_BO IOCTLPranjal Ramajor Asha Kanojiya 2023-09-22accel/qaic: Create a function to initialize BOPranjal Ramajor Asha Kanojiya 2023-09-22accel/qaic: Clean up BO during flushing of transfer listPranjal Ramajor Asha Kanojiya 2023-09-22accel/qaic: Undo slicing setup done in qaic_attach_slicing_bo()Pranjal Ramajor Asha Kanojiya 2023-09-22accel/qaic: Declare BO 'sliced' after all the operations are completePranjal Ramajor Asha Kanojiya 2023-09-22accel/qaic: Update BO metadata in a central locationPranjal Ramajor Asha Kanojiya 2023-09-22accel/qaic: Remove ->size field from struct qaic_boPranjal Ramajor Asha Kanojiya 2023-08-24BackMerge tag 'v6.5-rc7' into drm-nextDave Airlie 2023-08-15accel/qaic: Fix slicing memory leakPranjal Ramajor Asha Kanojiya 2023-08-02accel/qaic: remove redundant pointer pexecColin Ian King 2023-06-20accel/qaic: Call DRM helper function to destroy prime GEMPranjal Ramajor Asha Kanojiya 2023-05-23accel/qaic: Grab ch_lock during QAIC_ATTACH_SLICE_BOPranjal Ramajor Asha Kanojiya 2023-05-23accel/qaic: Flush the transfer list againPranjal Ramajor Asha Kanojiya 2023-05-23accel/qaic: Validate if BO is sliced before slicingPranjal Ramajor Asha Kanojiya 2023-05-23accel/qaic: Validate user data before grabbing any lockPranjal Ramajor Asha Kanojiya 2023-05-23accel/qaic: initialize ret variable to 0Tom Rix 2023-04-06accel/qaic: Add datapathJeffrey Hugo