Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M90-LTS] Manually post task to bind FileUtilitiesHost.
The FileUtilitiesHost binder is posted to a separate sequence, and the ServiceWorkerHost may be destroyed by the time the it runs, causing a UAF. This CL changes it so that, when we try to bind a new receiver, the host's worker_process_id() is obtained first (on the service worker's core thread) and then a task is posted to do the actual binding on a USER_VISIBLE task runner. Credit: This issue was first reported (with analysis) by soulchen8650@gmail.com. (cherry picked from commit e2123a8) Bug: 1229298 Change-Id: I6d5c05a830ba30f6cb98bf2df70a3df3333f3dd9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3041006 Commit-Queue: Tal Pressman <talp@google.com> Cr-Original-Commit-Position: refs/heads/master@{#903832} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3071365 Reviewed-by: Achuith Bhandarkar <achuith@chromium.org> Commit-Queue: Zakhar Voit <voit@google.com> Owners-Override: Achuith Bhandarkar <achuith@chromium.org> Cr-Commit-Position: refs/branch-heads/4430@{#1564} Cr-Branched-From: e5ce7dc-refs/heads/master@{#857950}
- Loading branch information