Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/perf: More robust perf map parsing #1994

Merged
merged 1 commit into from
Sep 7, 2023
Merged

pkg/perf: More robust perf map parsing #1994

merged 1 commit into from
Sep 7, 2023

Conversation

brancz
Copy link
Member

@brancz brancz commented Sep 7, 2023

Perf map files have fundamental race conditions between the producer and consumer and it's never guaranteed for lines to be complete or correct. Therefore we need to be more rigorous about validating lines and expecting the worst. This patch was originally triggered by a customer seeing panics with out of bounds accesses, which have been simulated in the added regression tests.

Perf map files have fundamental race conditions between the producer and
consumer and it's never guaranteed for lines to be complete or correct.
Therefore we need to be more rigorous about validating lines and
expecting the worst. This patch was originally triggered by a customer
seeing panics with out of bounds accesses, which have been simulated in
the added regression tests.
@brancz brancz requested a review from a team as a code owner September 7, 2023 14:56
@kakkoyun kakkoyun merged commit 4f8cb66 into main Sep 7, 2023
21 checks passed
@brancz brancz deleted the perf-map-panic branch September 7, 2023 15:17
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.

None yet

2 participants