TestDllInterceptor fails on Windows 10 x64 with ntdll functions

RESOLVED FIXED in Firefox 52

Status

()

defect
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: aklotz, Assigned: aklotz)

Tracking

Trunk
mozilla52
x86_64
Windows 10
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox52 fixed)

Details

Attachments

(1 attachment, 3 obsolete attachments)

Assignee

Description

3 years ago
Looks like there are TEST instructions in there that our code does not understand.
Assignee

Updated

3 years ago
OS: Windows → Windows 10
Hardware: Unspecified → x86_64
Assignee

Comment 1

3 years ago
Posted patch Patch (obsolete) — Splinter Review
The DLL interceptor tests fail on Windows 10 without this patch. With this patch, they succeed.

I took the opportunity to add some smarts about modr/m and SIB bytes. Hopefully this will permit us to start taking more advantage of structure in the instruction set in the future.
Assignee: nobody → aklotz
Status: NEW → ASSIGNED
Attachment #8710030 - Flags: review?(ehsan)

Comment 2

3 years ago
Comment on attachment 8710030 [details] [diff] [review]
Patch

Review of attachment 8710030 [details] [diff] [review]:
-----------------------------------------------------------------

::: xpcom/build/nsWindowsDllInterceptor.h
@@ +516,5 @@
> +          numBytes += 4;
> +        }
> +        break;
> +      default:
> +        // This should not be reachable

MOZ_ASSERT_UNREACHABLE please.
Attachment #8710030 - Flags: review?(ehsan) → review+
Assignee

Comment 3

3 years ago
Posted patch Patch (r2) (obsolete) — Splinter Review
Updated as requested. Carrying forward r+.
Attachment #8710030 - Attachment is obsolete: true
Attachment #8710175 - Flags: review+
Assignee

Comment 4

3 years ago
Posted patch Patch (r3) (obsolete) — Splinter Review
For real
Attachment #8710175 - Attachment is obsolete: true
Attachment #8710177 - Flags: review+
Assignee

Updated

3 years ago
Keywords: checkin-needed

Comment 6

3 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/9f34b95fa1d0
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Backed out along with bug 1240848 under the suspicion that bug 1240848 was the cause of bug 1241921.
https://hg.mozilla.org/mozilla-central/rev/5f7c184ccd80
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: mozilla46 → ---
Aaron recommends that this bug block the 64-bit Firefox roll-out.
Assignee

Comment 9

3 years ago
Posted patch Patch (r4)Splinter Review
Newly rebased. Carrying forward r+.
Attachment #8710177 - Attachment is obsolete: true
Attachment #8800894 - Flags: review+
Assignee

Comment 10

3 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/78344bbde6134a8be1c22d159730189c876205af
Bug 1240977: DLL interceptor improvements for Windows 10 x64 ntdll APIs; r=ehsan

Comment 11

3 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/78344bbde613
Status: REOPENED → RESOLVED
Last Resolved: 3 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Depends on: 1314183
You need to log in before you can comment on or make changes to this bug.