Closed
Bug 1410073
Opened 6 years ago
Closed 6 years ago
Load user32.dll immediately after the DLL Blocklist is in place.
Categories
(Core :: Security: Process Sandboxing, defect, P1)
Core
Security: Process Sandboxing
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: bobowen, Assigned: bobowen)
References
Details
(Whiteboard: sb+)
Attachments
(1 file)
1.42 KB,
patch
|
bugzilla
:
review+
|
Details | Diff | Splinter Review |
When using an alternate desktop as part of the process sandbox, some anti-virus products are triggering bug 1400637. This happens when the AV injects a thread early on, which causes user32.dll to load on that thread because it has not loaded already. This causes HWND creation later in start-up to fail. To try and mitigate this we will load user32.dll as early as possible just after the DLL blocklist has been put in place I have reproduced the content crash on Nightly with one AV and cannot reproduce it with this change.
Assignee | ||
Comment 1•6 years ago
|
||
This is to reduce the chance of it being loaded on an injected thread.
Attachment #8920139 -
Flags: review?(aklotz)
Assignee | ||
Comment 2•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=173fa31d5c48f77db994c7e1528d7d64f294ec93
Assignee | ||
Updated•6 years ago
|
Whiteboard: sb+
Comment 3•6 years ago
|
||
Could you explain this a bit further to me, please? Why isn't user32.dll loaded during process creation?
Comment 4•6 years ago
|
||
That is perhaps an unfair question. Come to think of it, I have encountered that before as well and even modified some code to expect it! It's probably because of the way we set the subsystem bits on firefox.exe.
Comment 5•6 years ago
|
||
Comment on attachment 8920139 [details] [diff] [review] Load user32.dll immediately after the DLL Blocklist is in place Review of attachment 8920139 [details] [diff] [review]: ----------------------------------------------------------------- OK.
Attachment #8920139 -
Flags: review?(aklotz) → review+
Pushed by bobowencode@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/09bd837dd61e Load user32.dll immediately after the DLL Blocklist is in place. r=aklotz
![]() |
||
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/09bd837dd61e
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•