David Major
8eb7379db2
Bug 1447742: Understand movups in 32-bit DLL interceptor. r=handyman
2018-03-22 14:20:36 -04:00
David Parks
09802ab3be
Bug 1382251: Part 2 - Allow constructing nsWindowsDllInterceptor from module name; r=aklotz
...
Allow constructor to behave like Init().
2017-11-06 09:51:06 -08:00
David Parks
5930f6821b
Bug 1382251: Part 1 - Add x64 opcodes to nsWindowsDllInterceptor needed for plugin process SSL brokering; r=aklotz
...
Adds "LEA reg, opcode", "mov word ptr [reg+disp8], reg", "and [reg+disp8], imm8" and "MOV r/m8, imm8" to DLLInterceptor.
2017-07-19 09:12:12 -07:00
Sylvestre Ledru
d4bc4b1554
Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj
...
MozReview-Commit-ID: DjDkL20wRg0
2017-10-23 20:59:55 +02:00
David Major
3222d026aa
Bug 1392485: Add REX.R mov to the disassembler. r=handyman
...
To mitigate risk for beta uplift, the logic here is limited to what we need for QueryDosDeviceW on Win7x64. A better long-term fix would be to combine this with the more general mov logic in the REX.W section.
MozReview-Commit-ID: BykQSYY61Ua
2017-08-30 07:16:44 +12:00
Tom Ritter
1a24da90a0
Bug 1392618 Fix comparison between signed and unsigned integer expressions r=dmajor
...
MozReview-Commit-ID: JCfPClnoe2H
2017-08-22 08:57:35 -05:00
Stephen Fewer
837beccbe6
Bug 1372849 - Improve the security of WindowsDllDetourPatcher. r=dmajor
2017-06-14 14:46:39 -05:00
Arthur Edelstein
0d3409db44
Bug 1344034 - Auto-enforce W^X for WindowsDllInterceptor hook pages. r=dmajor
2017-06-09 14:44:00 -04:00
Carl Corcoran
7efa2260d6
Bug 1367899: Add handling for call reg opcode; r=dmajor
...
MozReview-Commit-ID: 2ncXsGf2H95
2017-05-25 19:39:43 +02:00
Carl Corcoran
1234844319
Bug 1367899: Add handling for test r/m32, r32 and jne rel8 opcodes; r=dmajor
...
MozReview-Commit-ID: 3Cnx5tYrqMT
2017-05-26 01:56:07 +02:00
Carl Corcoran
73815d62d4
Bug 1343149: Add handling for movups opcode; r=dmajor
...
MozReview-Commit-ID: 3fDrr2FkfD
2017-05-25 22:52:16 +02:00
David Parks
442f859e37
Bug 1363290 - Part 4: Extend DLL interceptor to handle mov r32, imm32. r=dmajor
...
The code already handles this if the r32 is eax. This allows it to use the other 32-bit registers.
2017-05-16 14:48:56 -07:00
David Parks
675ebb0ac7
Bug 1363290 - Part 2: Add movxsd instruction to WindowsDllInterceptor. r=dmajor
...
movxsd moves 32-bit register values to 64-bit registers, sign-extending them. It is used by SetCursorPos.
2017-05-16 14:42:58 -07:00
Cervantes Yu
990e698dfa
Bug 1348747 - Part 2: Support stub functions starting with jmp rel8 in WindowsDllDetourPatcher. r=handyman
...
MozReview-Commit-ID: 5hPBmxtBCnu
2017-05-19 15:53:54 +08:00
Cervantes Yu
da9ce61ada
Bug 1348747 - Part 1: Fix WindowsDllDetourPatcher that generates extra 0xff byte when generating a x64 jmp instruction. r=handyman
...
MozReview-Commit-ID: 8TfcwXh6GUN
2017-05-19 15:53:44 +08:00
David Major
781174ba40
Bug 1349444: Teach the disassembler about "cmp byte ptr [relative], imm8". r=handyman
2017-05-03 17:11:59 -04:00
Phil Ringnalda
eea14233dd
Backed out changeset a50a4f9e972b (bug 1322554) for near-permaorange in Win8 debug updater xpcshell tests
2017-04-06 21:00:26 -07:00
Carl Corcoran
58e0c77274
Bug 1322554: Interpose kernel32!BaseThreadInitThunk to add verification of thread start addresses; r=dmajor
...
MozReview-Commit-ID: CvqZ3gXJyvo
2017-03-29 17:07:37 +02:00
Daniel Holbert
9b5b144d07
Bug 1343975: Get rid of all dos/windows linebreaks in Mozilla C++ code. r=ehsan
...
This is an automated patch, generated by the following command:
find . -name "*.h" -exec fromdos {} \; && \
find . -name "*.cpp" -exec fromdos {} \; && \
hg revert -C gfx/angle \
gfx/sfntly \
media/webrtc \
media/libstagefright \
media/openmax_il \
other-licenses
MozReview-Commit-ID: Gunlz3vE3h6
2017-03-02 13:08:29 -08:00
David Parks
433eeec78e
Bug 1328996 - Add ability for 64-bit MOV instructions (those with REX.W bit set) to be patched in the DLL interceptor harness. r=aklotz
...
Also adds some ASSERTs to catch failures in the DLL interceptor.
2017-02-03 11:58:20 -08:00
David Parks
436a5c6417
Bug 1284897 - Add missing hooked methods to TestDllInterceptor. r=aklotz
...
Added ASSERTions to nsWindowsDllInterceptor in case of a failed detour hook, with an exception for the RET opcode that appears in ImmReleaseContext. Added documentation about TestDllInterceptor.
2017-02-07 12:00:45 -08:00
David Parks
9383caad88
Bug 1284897 - Add opcodes to nsWindowsDllInterceptor for GetSaveFileNameW, GetOpenFileNameW and ImmReleaseContext. r=aklotz
...
This includes a near-jump CALL instruction in x64, which expands to a far-jump CALL with a 64-bit address as inline data. This requires us to abandon the method where we memcpy the code block into the trampoline and, instead, build the trampoline function as we go.
2017-01-20 16:03:44 -08:00
Sebastian Hengst
a73e872d71
Backed out changeset a176abd99d2b (bug 1284897) for "Unknown sync IPC message PPluginModule::GetFileName"; needs review from an IPC peer now. r=backout on a CLOSED TREE
2017-02-21 23:15:11 +01:00
Sebastian Hengst
2e7a11784b
Backed out changeset 4e81ec8850dc (bug 1284897)
2017-02-21 23:13:34 +01:00
David Parks
35ba6a651f
Bug 1284897 - Add missing hooked methods to TestDllInterceptor. r=aklotz
...
Added ASSERTions to nsWindowsDllInterceptor in case of a failed detour hook, with an exception for the RET opcode that appears in ImmReleaseContext. Added documentation about TestDllInterceptor.
2017-02-07 12:00:45 -08:00
David Parks
6d3ee3fe72
Bug 1284897 - Add opcodes to nsWindowsDllInterceptor for GetSaveFileNameW, GetOpenFileNameW and ImmReleaseContext. r=aklotz
...
This includes a near-jump CALL instruction in x64, which expands to a far-jump CALL with a 64-bit address as inline data. This requires us to abandon the method where we memcpy the code block into the trampoline and, instead, build the trampoline function as we go.
2017-01-20 16:03:44 -08:00
Phil Ringnalda
f72d4e4b61
Backed out 5 changesets (bug 1284897) for mozilla::SandboxPermissions::RemovePermissionsForProcess crashes
...
Backed out changeset 19b2fcee13a9 (bug 1284897)
Backed out changeset a5171791437f (bug 1284897)
Backed out changeset 3ea8b8a18515 (bug 1284897)
Backed out changeset 21497a4e3bde (bug 1284897)
Backed out changeset 12e17d5f0fa9 (bug 1284897)
2017-02-16 22:14:15 -08:00
David Parks
e117791446
Bug 1284897 - Add missing hooked methods to TestDllInterceptor. r=aklotz
...
Added ASSERTions to nsWindowsDllInterceptor in case of a failed detour hook, with an exception for the RET opcode that appears in ImmReleaseContext. Added documentation about TestDllInterceptor.
2017-02-07 12:00:45 -08:00
David Parks
01941e80ef
Bug 1284897 - Add opcodes to nsWindowsDllInterceptor for GetSaveFileNameW, GetOpenFileNameW and ImmReleaseContext. r=aklotz
...
This includes a near-jump CALL instruction in x64, which expands to a far-jump CALL with a 64-bit address as inline data. This requires us to abandon the method where we memcpy the code block into the trampoline and, instead, build the trampoline function as we go.
2017-01-20 16:03:44 -08:00
David Major
6d1b01c771
Bug 1335896 - Shrink maxPatchedFns in WindowsDllInterceptor. r=aklotz
...
MozReview-Commit-ID: HLHC2l9ElA0
2017-02-10 14:20:43 +13:00
Aaron Klotz
aa4e77f925
Bug 1314183: Ensure that nsWindowsDllInterceptor does not accept RIP-relative displacements on amd64; r=dmajor
...
MozReview-Commit-ID: DNf3h9UiRkG
2016-11-02 10:42:07 -06:00
Aaron Klotz
fddc52e71e
Bug 1310056: Part 2 - Additional DLL interceptor enhancements; r=m_kato
...
MozReview-Commit-ID: 6fFbGjqTHzg
2016-10-25 17:57:16 -06:00
Aaron Klotz
305fd02737
Bug 1310056: Part 1 - DllInterceptor improvements to support InSendMessageEx; r=m_kato
...
MozReview-Commit-ID: 2I1AHqKGfQi
2016-10-13 15:04:48 -06:00
Aaron Klotz
b03fe65e19
Bug 1218473: Add check for presence of NVIDIA Optimus drivers to WindowsNopSpacePatcher; r=ehsan
...
MozReview-Commit-ID: 7WhWWbRHOw7
2016-10-13 17:10:52 -06:00
Aaron Klotz
300573d01c
Bug 1240848: Adds additional instructions to x64 detour patcher and prevents register clobbering in jmp from trampoline; r=ehsan
...
MozReview-Commit-ID: 7DCQZc9eoQI
2016-10-13 14:56:23 -06:00
Aaron Klotz
fd0efcc191
Bug 1240977: DLL interceptor improvements for Windows 10 x64 ntdll APIs; r=ehsan
...
MozReview-Commit-ID: rM8XWK5y2n
2016-10-13 15:15:22 -06:00
Makoto Kato
82d9cd1d80
Bug 1180684 - Part 1. Analyze MOV with GS. r=aklotz
...
Allow MOV with GS prefix on x64. Windows 10 uses this opcode on GetKeyState().
MozReview-Commit-ID: CqDSxmWdkiH
2016-09-07 16:15:58 +09:00
Ryan VanderMeulen
c0b58d0f0c
Backed out changeset e135879cff29 (bug 1218473) to fix various Windows startup issues being experienced by some users. a=sledru
2016-02-11 13:35:48 -05:00
Carsten "Tomcat" Book
c6b7f22393
Backed out changeset 6e4e5e584c32 (bug 1240848) for causing bug 1241921 to reappear
2016-02-11 15:12:51 +01:00
Aaron Klotz
bb4c2aefb8
Bug 1240848: Adds additional instructions to x64 detour patcher and prevents register clobbering in jmp from trampoline; r=ehsan
2016-02-03 16:21:17 -07:00
Ryan VanderMeulen
f540169261
Backed out changeset 9f34b95fa1d0 (bug 1240977) and changeset a786af9186eb (bug 1240848) for suspicion of causing the topcrashes in bug 1241921. a=topcrash
2016-01-22 18:27:10 -05:00
Aaron Klotz
a0af97acee
Bug 1240977 - DLL interceptor improvements for Windows 10 x64 ntdll APIs; r=ehsan
2016-01-20 10:44:17 -07:00
Aaron Klotz
37194a4457
Bug 1240848: Adds additional instructions to x64 detour patcher; r=ehsan
2016-01-19 15:14:24 -07:00
Aaron Klotz
bc56cbc653
Bug 1218473: Add check for presence of NVIDIA Optimus drivers to WindowsNopSpacePatcher; r=ehsan
2016-01-06 12:54:48 -07:00
Makoto Kato
383ab62a88
Bug 1208944 - Part 4. nsWindowsDllInterceptor supports IMM32 API hook. r=ehsan
2015-12-29 22:57:38 +09:00
Sebastian Hengst
e8bb1c660e
Backed out 15 changesets (bug 1208944) for failing tests M(2,5) on OSX. r=backout
...
Backed out changeset c29de223de2f (bug 1208944)
Backed out changeset 3d99da255be1 (bug 1209844)
Backed out changeset 3c915942af38 (bug 1209844)
Backed out changeset 759b425b5503 (bug 1208944)
Backed out changeset bf73cf8f0fda (bug 1208944)
Backed out changeset 0e337d912b7d (bug 1208944)
Backed out changeset 31c47f2980b5 (bug 1208944)
Backed out changeset 3e0d70a6e809 (bug 1208944)
Backed out changeset 7685dcb63e5f (bug 1208944)
Backed out changeset 3c2b9372dd36 (bug 1208944)
Backed out changeset 18160d306493 (bug 1208944)
Backed out changeset 4974e397b655 (bug 1208944)
Backed out changeset fde7e439844d (bug 1208944)
Backed out changeset 4213a355fbdc (bug 1208944)
Backed out changeset 33cfddbbf5f2 (bug 1208944)
2015-12-29 17:42:02 +01:00
Makoto Kato
3f5f27d634
Bug 1208944 - Part 4. nsWindowsDllInterceptor supports IMM32 API hook. r=ehsan
2015-12-29 22:57:38 +09:00
Phil Ringnalda
005574c1c7
Back out a25efba616ac (bug 1218473) on suspicion of causing Windows 8 shutdown crashes "with exit code 3221225477"
2015-11-29 12:38:30 -08:00
Aaron Klotz
f2edb81933
Bug 1218473: Add check for presence of NVIDIA Optimus drivers to WindowsNopSpacePatcher; r=ehsan
2015-11-27 13:01:23 -07:00
David Major
b1218b64cb
Bug 1201205 part 2: Restore protection on the nop space separately from the function. r=m_kato
2015-09-04 14:24:05 -04:00