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

[release/7.0] [wasm] Always allocate when computing temp path #81217

Closed
wants to merge 3 commits into from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 26, 2023

Backport of #81085 to release/7.0

/cc @maraf

Customer Impact

WASM uses emscripten's posix emulation for computing temp file name. It has a slight deviation from musl implementation and it also includes pointer address as another entry into the randomness.

In the #73408 the heap allocation was replaced with stack allocation which causes problems when calling the function multiple times before clock ticks.

This is a simplest change to introduce back the heap allocation on WASM platform. A more optimal solution will be reviewed as part of the WASI file system implementation.

Testing

Unit tests

Risk

None

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

@ghost
Copy link

ghost commented Jan 26, 2023

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #81085 to release/7.0

/cc @maraf

Customer Impact

Testing

Risk

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

Author: github-actions[bot]
Assignees: -
Labels:

area-Infrastructure-libraries

Milestone: -

@jkotas
Copy link
Member

jkotas commented Jan 26, 2023

Customer Impact

Your description does not describe customer impact. What are the customers going to see due to this bug? How likely it is that customers are going to run into this bug? Do we have any instances of this bug reported by customers?

IMHO, this fix does not meet the bar for backport. The problem was identified by our tests that are stressing the API. It is unlikely to be hit by real apps.

@maraf maraf requested a review from pavelsavara January 26, 2023 16:35
@maraf maraf added arch-wasm WebAssembly architecture area-System.IO and removed area-Infrastructure-libraries labels Jan 26, 2023
@maraf maraf added this to the 7.0.x milestone Jan 26, 2023
@maraf maraf self-assigned this Jan 26, 2023
@ghost
Copy link

ghost commented Jan 26, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #81085 to release/7.0

/cc @maraf

Customer Impact

WASM uses emscripten's posix emulation for computing temp file name. It has a slight deviation from musl implementation and it also includes pointer address as another entry into the randomness.

In the #73408 the heap allocation was replaced with stack allocation which causes problems when calling the function multiple times before clock ticks.

This is a simplest change to introduce back the heap allocation on WASM platform. A more optimal solution will be reviewed as part of the WASI file system implementation.

Testing

Unit tests

Risk

None

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

Author: github-actions[bot]
Assignees: -
Labels:

arch-wasm, area-System.IO

Milestone: -

@maraf maraf requested a review from lewing January 26, 2023 16:35
@maraf maraf closed this Jan 26, 2023
@maraf maraf deleted the backport/pr-81085-to-release/7.0 branch January 26, 2023 17:07
@ghost ghost locked as resolved and limited conversation to collaborators Feb 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-System.IO
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants