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

fix: multiple data race issues #5

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

smira
Copy link
Member

@smira smira commented Oct 15, 2024

See siderolabs/talos#9466

There were multiple issues:

  • a pointer to a slice element might point to a different element if the slice contents change (chunks are recycled)
  • compression buffer can't be reused, as it might be still used in the reader doing decompression
  • incorrect handling of growing initial buffer in streaming reads

See siderolabs/talos#9466

There were multiple issues:

* a pointer to a slice element might point to a different element if the
  slice contents change (chunks are recycled)
* compression buffer can't be reused, as it might be still used in the
  reader doing decompression
* incorrect handling of growing initial buffer in streaming reads

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@smira
Copy link
Member Author

smira commented Oct 16, 2024

/m

@talos-bot talos-bot merged commit 9a0f7b0 into siderolabs:main Oct 16, 2024
14 checks passed
smira added a commit to smira/talos that referenced this pull request Oct 16, 2024
Fixes siderolabs#9466

There are two fixes:

* fix the actual panic via siderolabs/go-circular#5
* prevent similar issues in the future by installing a panic handler

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Oct 16, 2024
Fixes siderolabs#9466

There are two fixes:

* fix the actual panic via siderolabs/go-circular#5
* prevent similar issues in the future by installing a panic handler

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Oct 25, 2024
Fixes siderolabs#9466

There are two fixes:

* fix the actual panic via siderolabs/go-circular#5
* prevent similar issues in the future by installing a panic handler

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit 5853bb0)
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.

5 participants