Skip to content

backport 1.17: scaled range timer: guard against queue deletion during timer fire (#…#15006

Merged
antoniovicente merged 2 commits intoenvoyproxy:release/v1.17from
Shikugawa:backport-1.17/14799
Feb 11, 2021
Merged

backport 1.17: scaled range timer: guard against queue deletion during timer fire (#…#15006
antoniovicente merged 2 commits intoenvoyproxy:release/v1.17from
Shikugawa:backport-1.17/14799

Conversation

@Shikugawa
Copy link
Member

…14799)

Fix a potential use-after-free error in ScaledRangeTimerManagerImpl by adding a processing_timers_ flag to the timer queues that is set during onQueueTimerFired processing. This flag is checked when a timer is removed to ensure that the timer's queue isn't deleted while it is in a callback triggered by onQueueTimerFired.

Signed-off-by: Craig Radcliffe craig.radcliffe@broadcom.com
Signed-off-by: Shikugawa rei@tetrate.io

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

…nvoyproxy#14799)

Fix a potential use-after-free error in ScaledRangeTimerManagerImpl by adding a processing_timers_ flag to the timer queues that is set during onQueueTimerFired processing. This flag is checked when a timer is removed to ensure that the timer's queue isn't deleted while it is in a callback triggered by onQueueTimerFired.

Signed-off-by: Craig Radcliffe <craig.radcliffe@broadcom.com>
Signed-off-by: Shikugawa <rei@tetrate.io>
@Shikugawa Shikugawa requested a review from akonradi February 10, 2021 01:55
@akonradi
Copy link
Contributor

Wait, this should definitely go in the release notes.

Copy link
Contributor

@akonradi akonradi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please note the bug fix in the release notes

@antoniovicente
Copy link
Contributor

Please note the bug fix in the release notes

We need a release note in the main branch also. I missed that during the original PR review.

@akonradi
Copy link
Contributor

#15018 adds release notes for main; once that's merged we can add the same thing here.

@antoniovicente
Copy link
Contributor

Waiting for release note to be copied from #15018

/wait

Signed-off-by: Shikugawa <rei@tetrate.io>
Copy link
Contributor

@akonradi akonradi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@antoniovicente antoniovicente merged commit 31bdbef into envoyproxy:release/v1.17 Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants