Commit Graph

46 Commits

Author SHA1 Message Date
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
David Major
8449c909d2 Bug 1201205 part 1: Add an AutoVirtualProtect helper class to make the next patch easier. r=m_kato 2015-09-04 14:23:33 -04:00
David Major
de6333ff5b Bug 1192844: Accept 0xCC padding in WindowsDllDetourPatcher::CreateTrampoline. r=m_kato 2015-08-12 13:10:04 -04:00
Andrew McCreight
00f75cda98 Bug 1151541, part 2 - Fix mode lines in xpcom/. r=froydnj 2015-04-09 10:25:05 -07:00
Makoto Kato
046b653359 Bug 1131436 - WindowsDllInterceptor is always failure with --disable-optimize and --enable-debug. r=dmajor 2015-02-12 15:07:57 +09:00
Makoto Kato
b9ebf45a1d Bug 1121829 - Support redirection of kernel32.dll for hooking function. r=dmajor 2015-01-16 23:07:09 +09:00
Makoto Kato
fe5467c79e Bug 1112709 - CreateFileW isn't hooking properly on Windows 8/8.1. r=ehsan 2014-12-24 13:23:36 +09:00
David Major
10b77bbdac Bug 1103830: Support 0x40 prefix byte (plain REX). r=m_kato 2014-11-26 15:41:21 +13:00
Birunthan Mohanathas
b241110f15 Bug 1046841 - Convert xpcom/build/ to Gecko style. r=froydnj 2014-08-13 11:45:37 -07:00
David Major
a67a72f2cd Bug 1018477: Fix R/M check in x86 detour code. r=m_kato 2014-06-03 16:47:43 +12:00
Aaron Klotz
d411544c64 Bug 972577: Consolidate IOInterposer initialization code; r=froydnj,BenWa,jimm 2014-03-14 16:35:01 -06:00
Wes Kocher
a5be17bbc4 Backed out changeset 2bdd2d042847 (bug 972577) for non-unified bustage on a CLOSED TREE 2014-03-14 15:27:21 -07:00
Aaron Klotz
0a951fc88b Bug 972577: Consolidate IOInterposer initialization code; r=froydnj,BenWa,jimm 2014-03-14 13:47:24 -06:00