aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorXiubo Li <[email protected]>2020-07-01 01:52:48 -0400
committerIlya Dryomov <[email protected]>2020-08-03 11:05:21 +0200
commitfa9967734227b44acb1b6918033f9122dc7825b9 (patch)
treed2a14f96f81667795bbafdd02e7ad4bd162412b9 /tools/perf/scripts/python/bin/stackcollapse-record
parentb682c6d41bc23353b5d80e02ca4961ac67624f4c (diff)
ceph: fix potential mdsc use-after-free crash
Make sure the delayed work stopped before releasing the resources. cancel_delayed_work_sync() will only guarantee that the work finishes executing if the work is already in the ->worklist. That means after the cancel_delayed_work_sync() returns, it will leave the work requeued if it was rearmed at the end. That can lead to a use after free once the work struct is freed. Fix it by flushing the delayed work instead of trying to cancel it, and ensure that the work doesn't rearm if the mdsc is stopping. URL: https://tracker.ceph.com/issues/46293 Signed-off-by: Xiubo Li <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions