Skip to content

Conversation

@adamsitnik
Copy link
Member

@adamsitnik adamsitnik commented Jan 12, 2023

Backport of #80432 to release/6.0

Customer Impact

Customers who are using FileStream.ReadAsync with buffering enabled (the default) might read incorrect data. It's a silent error, but the "good thing" about this bug is that it's really hard to reproduce (a very specific sequence of reads and backward seeks need to be performed).

Testing

Automated tests were added, and they are passing. Additional local validation against repro provided by the customer has confirmed that the bug is gone.

Risk

Very low, the change simply invalidates the cache at the right time.

No OOB changes needed for System.IO.FileSystem or System.Private.CoreLib.

@adamsitnik adamsitnik added this to the 6.0.x milestone Jan 12, 2023
@ghost ghost assigned adamsitnik Jan 12, 2023
@ghost
Copy link

ghost commented Jan 12, 2023

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

Issue Details

Backport of #80432 to release/6.0

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: adamsitnik
Assignees: -
Labels:

area-System.IO

Milestone: 6.0.x

@carlossanlop carlossanlop requested a review from jozkee January 12, 2023 15:46
@carlossanlop
Copy link
Contributor

Approved by Tactics (6.0.14).
Signed-off by area owner.
No OOB changes required for FileStream (System.IO.FileSystem or System.Private.CoreLib).
CI failures unrelated:

Ready to merge. :shipit:

@carlossanlop carlossanlop merged commit 7b189c8 into dotnet:release/6.0 Jan 12, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Feb 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.IO Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants