Closed Bug 1746114 Opened 2 years ago Closed 2 years ago

Collect the third-party modules ping from socket process

Categories

(Core :: DLL Services, enhancement)

Unspecified
Windows
enhancement

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: toshi, Assigned: toshi)

References

Details

Attachments

(2 files)

Before enabling pre-spawn CIG for socket process (bug 1743427), we collect the third-party modules ping from socket process and see what kind of modules are loaded.

Pushed by tkikuchi@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7628f6c5bb8c
Collect the third-party modules ping from socket process.  r=mhowell,necko-reviewers,kershaw

Backed out changeset 7628f6c5bb8c (Bug 1746114) for causing build bustages on SocketProcessParent.obj.
Backout link
Push with failures
Failure Log
Also Mn-swr

Flags: needinfo?(tkikuchi)

While processing third-party module loading events, the process may delayload
shlwapi.dll. This could be a problem if the process is sandboxed and the access
to local files is restricted. Before enabling the third-party modules ping in
socket process, this patch avoids such delayloading.

The first path is ParamTraits<mozilla::ModuleRecord>::Read calls NS_NewLocalFile
that calls PathGetDriveNumberW. This API is simple enough that we define our own
version.

The second path is the ctor of ProcessedModuleLoadEvent that is called from
UntrustedModulesProcessor::CompleteProcessing calls PreparePathForTelemetry
that calls PathFindFileNameW and PathCanonicalizeW. For this path, instead
of sanitizing a requested name in ProcessedModuleLoadEvent's ctor, we sanitize
it when transferring it to the main process.

Attachment #9255428 - Attachment description: Bug 1746114 - Collect the third-party modules ping from socket process. r=mhowell → Bug 1746114 - Part2. Collect the third-party modules ping from socket process. r=mhowell
Pushed by tkikuchi@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/642fde95b945
Part1. Avoid delayloading shlwapi.dll in a sandboxed process.  r=mhowell
https://hg.mozilla.org/integration/autoland/rev/7abf35bcedac
Part2. Collect the third-party modules ping from socket process.  r=mhowell,necko-reviewers,kershaw
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
Flags: needinfo?(tkikuchi)
Depends on: 1747636
Regressions: 1747636
No longer regressions: 1747636
Regressions: 1749555
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: