Open Bug 2083650 Opened 1 month ago Updated 1 month ago

MF Media Engine CDM utility process never starts under LPAC on some Windows 10 machines

Categories

(Core :: Security: Process Sandboxing, defect)

Unspecified
Windows
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 DllLoad markers:
    • 158 from C:\Users\<user>\bghunt\r158-portable
    • Nightly from C:\Users\<user>\bghunt\nightly-portable\firefox
  • 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 async for sandboxingKind=2 and 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

Hypotheses (unverified)

  1. 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".
  2. Something else the LPAC child needs at startup is denied on this configuration.
  3. 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,sync with MOZ_LOG_FILE=%TEMP%\fx-lpac.log. Look for:
    • ++PROCESS for the CDM pid,
    • SandboxBroker permission messages and launch errors,
    • NodeController Dropping Peer for the CDM pid.
  • icacls output for the install directory and for xul.dll.
  • Whether a regular install under C:\Program Files reproduces.
See Also: → 2082990

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?

Flags: needinfo?(apehrson)

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.

Flags: needinfo?(apehrson) → needinfo?(alwu)
You need to log in before you can comment on or make changes to this bug.