Skip to content

chore: cherry-pick cf64617c1cc5 from chromium#34054

Merged
jkleinsc merged 2 commits into16-x-yfrom
cherry-pick/16-x-y/chromium/cf64617c1cc5
May 6, 2022
Merged

chore: cherry-pick cf64617c1cc5 from chromium#34054
jkleinsc merged 2 commits into16-x-yfrom
cherry-pick/16-x-y/chromium/cf64617c1cc5

Conversation

@ppontes
Copy link
Copy Markdown
Member

@ppontes ppontes commented May 3, 2022

FSA: Pass File ownership to worker for async FSARFD file operations

We cannot access the backing file as a member of the
FileSystemAccessRegularFileDelegate since WrapCrossThreadPersistent
does NOT cancel the task posted to the worker pool if delegate is
destroyed. Passing ownership to the worker task ensures the file must
be alive when used. After the operation, ownership of the file is
passed back to the delegate.

This pattern was already used for the SetLength operation on old Macs.

Bug: 1299743
Change-Id: Ie00c09e8f77dc353f280af726a68ed6c572b750b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3498864
Reviewed-by: Marijn Kruisselbrink [email protected]
Commit-Queue: Austin Sullivan [email protected]
Cr-Commit-Position: refs/heads/main@{#980167}

Notes: Backported fix for CVE-2022-1485.

@ppontes ppontes requested review from a team as code owners May 3, 2022 16:42
@ppontes ppontes added 16-x-y backport-check-skip Skip trop's backport validity checking semver/patch backwards-compatible bug fixes labels May 3, 2022
@electron-cation electron-cation Bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels May 3, 2022
@ppontes ppontes force-pushed the cherry-pick/16-x-y/chromium/cf64617c1cc5 branch from f4b699e to f94f25e Compare May 5, 2022 14:27
@jkleinsc jkleinsc merged commit 2e73773 into 16-x-y May 6, 2022
@jkleinsc jkleinsc deleted the cherry-pick/16-x-y/chromium/cf64617c1cc5 branch May 6, 2022 01:24
@release-clerk
Copy link
Copy Markdown

release-clerk Bot commented May 6, 2022

Release Notes Persisted

Backported fix for CVE-2022-1485.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

16-x-y backport-check-skip Skip trop's backport validity checking security 🔒 semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants