MF Media Engine CDM utility process never starts under LPAC on some Windows 10 machines
Categories
(Core :: Security: Process Sandboxing, defect)
Tracking
()
People
(Reporter: pehrsons, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
I asked an LLM to investigate based on profiles in bug 2082265 and reasoning about code, why the Media Engine CDM process does not start under LPAC on some machines:
Description
On the reporter's machines, the MF Media Engine CDM utility process (SandboxingKind::MF_MEDIA_ENGINE_CDM) never comes up under its LPAC sandbox. Setting security.sandbox.utility-wmf-cdm.lpac.enabled to false fixes it on 157, 158 and Nightly 160 (bug 2082265 comment 21).
This made every video decodingInfo() call hang (bug 2082265, now worked around). Media engine playback still needs this process: encrypted content with the default media.wmf.media-engine.enabled value of 2, and clear content with 1 or 3.
Environment
- Windows 10 Education 22H2 (19045), x64, Hyper-V active via WSL2.
- Builds run unpacked from under the user profile, per
DllLoadmarkers:- 158 from
C:\Users\<user>\bghunt\r158-portable - Nightly from
C:\Users\<user>\bghunt\nightly-portable\firefox
- 158 from
- Fresh profile, default prefs, no crash dumps (comment 11).
Evidence
Profiles from comment 21, recorded with ChildProcessLifecycle:5,SandboxBroker:5,utilityproc:5:
- 158, LPAC on and Nightly, LPAC on: the parent logs
UtilityProcessHost::Launch launching asyncforsandboxingKind=2and then nothing. No CDM process appears. The WMF utility process launched at the same time connects within about 22 ms. - Nightly, LPAC off: the CDM process connects within about 30 ms and reports its codec support.
There is no SandboxBroker output. It logs from the IPC launch thread, which the profiler doesn't sample.
Relevant code
UtilityMfMediaEngineCdmSandboxPropsholds the LPAC configuration for this process.SandboxBroker::EnsureLpacPermsissionsOnDir()grantslpacFirefoxInstallFileson the bin dir:- It runs once per session.
- It only checks the top-level directory's ACL, and relies on inheritance for the files.
- It logs failures (for example setting the DACL) and continues with the launch.
SandboxBroker::LaunchApp()doesn't check the result ofResumeThread().
Hypotheses (unverified)
- The LPAC can't read the binaries in these portable directories: the grant is missing, or it isn't inherited by the files. The child would then exit in the loader, which fits "no crash dumps".
- Something else the LPAC child needs at startup is denied on this configuration.
- The child is spawned but never resumed.
Data that would help
- A log file, which covers all threads:
MOZ_LOG=ChildProcessLifecycle:5,SandboxBroker:5,utilityproc:5,NodeController:5,timestamp,syncwithMOZ_LOG_FILE=%TEMP%\fx-lpac.log. Look for:++PROCESSfor the CDM pid,SandboxBrokerpermission messages and launch errors,NodeControllerDropping Peerfor the CDM pid.
icaclsoutput for the install directory and forxul.dll.- Whether a regular install under
C:\Program Filesreproduces.
Comment 1•1 month ago
|
||
PlayReady doesn't seem to work for me even on Windows 11 with Firefox Release.
The MF Media Engine CDM utility process starts, even with LPAC and also on Windows 10 VM, but the protected mfpmp.exe process doesn't start under that.
I was using this to test: https://reference.dashif.org/dash.js/v4.4.0/samples/drm/playready.html
Do I have to flip any prefs to get it working?
| Reporter | ||
Comment 2•1 month ago
|
||
I don't think so, but I'll defer your question to Alastor who knows this better. I will add though, that while there's certainly been some reports matching the reported symptoms in bug 2082265, it's far from all Windows users that exhibit that launch promise hang.
Description
•