aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* add veccomex2015-03-016-9/+181
|
* Add extra argument to substitute_hook_functions and interpose_imports for ↵comex2015-02-287-15/+73
| | | | | | | | | | use with unhooking. I think we'll need to explicitly record trampoline locations to avoid the possibility of stomping on someone else's stuff if the function was re-patched... Also, document substitute_hook_functions.
* fix accidental usage of panic() from mach/mach.h instead of substitute_paniccomex2015-02-282-7/+9
|
* add substituted launchd plist; move helpers to separate directorycomex2015-02-284-5/+26
|
* Add substituted and fix things up to use it. Still untested.comex2015-02-289-195/+630
|
* Rename ios-bootstrap to darwin-bootstrap; cleanup posixspawn-hook and ↵comex2015-02-2813-318/+352
| | | | | | unrestrict. Not tested yet.
* remove deprecated property usage in safety-dancecomex2015-02-281-1/+1
|
* fix (and make more robust) strerror.ccomex2015-02-243-14/+20
|
* Add unaligned read/write functions.comex2015-02-247-8/+34
| | | | | | | I thought I could get away without since I wasn't (presently) targeting systems without hardware support for unaligned accesses, but on armv7 clang insists on optimizing into the one ARM instruction that requires alignment anyway - LDM/STM. Oops. Damnit, clang.
* fix armv7 syscall registers :ocomex2015-02-242-2/+7
|
* fix "panic" in substrate-compat.ccomex2015-02-241-4/+4
|
* fix arm64/armv7 ishcomex2015-02-247-8/+15
|
* Add transform-dis-cases-arm64.S and fix a serious bug thus discovered.comex2015-02-233-3/+51
| | | | Commit transform-dis-cases-x86_64.S, which I forgot to earlier.
* Ban calls within transform regions in threadsafe mode.comex2015-02-2321-1035/+2104
|
* fix some i386 stuffcomex2015-02-233-43/+56
|
* fix i386 manual syscall, mmap return checkcomex2015-02-233-6/+10
|
* Fix vm_remap, of trouble with which the previous diagnosis was completely ↵comex2015-02-234-13/+26
| | | | | | | | | | | incorrect. It's actually the fact that no vm_map_server actually exists on the kernel side - even though the otherwise useless function vm_remap exists in the kernel source, and mig generates server code for it, apparently that server code isn't built or linked into the kobject table. Bizarre. Anyway, switch to mach_vm_remap, which is what vm_remap in userspace calls into.
* remove old commentcomex2015-02-231-5/+0
|
* and avoid call to pthreadscomex2015-02-231-1/+5
|
* Redo manual syscalls, and use them for hooking.. And fix mmap, which now ↵comex2015-02-238-97/+711
| | | | makes the whole thing slightly broken, because vm_remap into the middle of the shared region apparently silently does nothing.
* various fixescomex2015-02-187-56/+62
|
* er, don't unnecessarily spam thread start/resume.comex2015-02-181-27/+34
|
* Fix hook-function:comex2015-02-1812-325/+488
| | | | | | | | | | - Thread stoppage is now complemented by sigaction to catch injected threads (sigaction is not used exclusively because the rest of the program could be trying to use sigaction itself in the meantime - this is a real thing, ask Dolphin) - mprotect is no longer used due to max_protection possibly getting in the way; instead, a copy is created and mapped onto the original.
* more fixescomex2015-02-155-23/+54
|
* fix test casescomex2015-02-144-6/+14
|
* Trampoline fixes.comex2015-02-1412-59/+111
| | | | | | | | | | | | | The transformed code was incorrect because it assumed the pointer it was writing to was where the code would execute, but it was actually 'rewritten_temp'. Changed transform_dis_main to take a pc_trampoline pointer, which also helps the test harness. However, this means that it has to be called after the trampoline has been allocated, while before the trampoline allocation depended on the generated size; this change doesn't bother to use two passes or anything, but just allocates a new code buffer if the maximum possible size isn't available - not the end of the world, since trampoline_ptr will still only be increased by the actual size before the next hook in the series (if any).
* test harnesscomex2015-02-093-15/+154
|
* theoretically support x86 PICcomex2015-02-091-14/+46
|
* call vs. branch fixes on ARM (though really I should just ignore calls)comex2015-02-092-4/+2
|
* add transform-dis-{i386,x86_64} to makefile - fix a missing UNUSEDcomex2015-02-092-0/+3
|
* Fix a broken bit test.comex2015-02-091-1/+3
|
* morecomex2015-02-097-43/+54
|
* Fix other architectures compiling - haven't tried *running* anything..comex2015-02-087-79/+90
|
* Refactor disassembly so x86 works, and add x86 transform-dis.comex2015-02-0822-229/+317
| | | | | | | | | | This patch is a monolithic mess, because I was too lazy to do the refactor first (that would require some stash fun, since I wasn't actually sure before doing x86 transform-dis what would be needed). Anyway, the resulting code should be cleaner - less duplication. This breaks ARM/ARM64.
* formattingcomex2015-02-081-11/+17
|
* starting x86 supportcomex2015-02-0812-161/+410
|
* right, going to bedcomex2015-02-052-18/+78
|
* starting dis-tables.hcomex2015-02-051-0/+79
|
* Make the ARM branches actually go to the right place. I need automated ↵comex2015-02-032-3/+4
| | | | tests before stable.
* fix ARM64 too, theoreticallycomex2015-02-0311-43/+117
|
* whoops, don't mean to always jump to thumb modecomex2015-02-011-1/+1
|
* formattingcomex2015-02-012-11/+19
|
* fix my utter failure to handle branches/conditionals correctly (on ARM)comex2015-02-0122-152/+363
|
* trivial wording tweakcomex2015-01-301-1/+1
|
* correct thinko in the readmecomex2015-01-301-1/+1
|
* improve readmecomex2015-01-301-23/+23
|
* remove GNU-isms from cbitcomex2015-01-302-11/+46
|
* not even alpha yetcomex2015-01-301-0/+10
|
* add README (and note to self to fix something)comex2015-01-302-0/+225
|
* Make logging less verbose.comex2015-01-303-12/+21
|