Commit Graph

325 Commits

Author SHA1 Message Date
Lubos Dolezel
baa82b68df Fix 'lsmp' crashing the LKM 2018-08-21 16:32:13 +02:00
Lubos Dolezel
aa02c97c36 Fix some LKM crashes 2018-08-21 16:24:30 +02:00
Lubos Dolezel
96b6b1ae49 Fix float state getting messed up in LLDB 2018-08-14 21:22:13 +02:00
Lubos Dolezel
caac0c23a0 Make host_statistics64 return some useful info (instead of crashing) 2018-08-13 23:39:29 +02:00
Lubos Dolezel
1512a1a212 Provide a better thread_handle in thread_info() 2018-07-31 17:20:01 +02:00
Lubos Dolezel
a446701c14 Provide some kind of thread_handle when requesting thread identifiers 2018-07-31 16:06:29 +02:00
Lubos Dolezel
8e232d5c78 Adapt Mach-O loader's memory layout even more to LLDB's liking 2018-07-31 13:33:24 +02:00
Lubos Dolezel
ca46453539 Memory layout changes for LLDB 2018-07-30 16:50:57 +02:00
Lubos Dolezel
596145436a Support for memory watchpoints 2018-07-26 21:54:05 +02:00
Lubos Dolezel
7c7d6a740a Add missing include 2018-07-26 16:30:14 +02:00
Lubos Dolezel
e110192f3b Compat fix for Linux < 4.9 (darlinghq/darling#409) 2018-07-26 16:27:32 +02:00
Lubos Dolezel
edad150e6b Major stability fixes around LLDB and target process termination 2018-07-26 15:57:57 +02:00
Lubos Dolezel
5fc5c9886f Task/thread suspend handling changes for LLDB 2018-07-26 13:23:35 +02:00
Andrew Hyatt
da7604a784
Add more to gitignore 2018-07-25 00:21:57 -04:00
Lubos Dolezel
f89923234a Possibly fix a deadlock I've seen 2018-07-22 14:18:02 +02:00
Lubos Dolezel
dec66cb581 Provide correct TASK_DYLD_INFO version/format information 2018-07-22 00:02:07 +02:00
Lubos Dolezel
45ce6a4cdf Fix the task_threads hang (hopefully) (darlinghq/darling#405) 2018-07-21 21:59:33 +02:00
Lubos Dolezel
a4cdea9e1f Add mach_vm_read_overwrite() impl (for LLDB) 2018-07-21 21:58:49 +02:00
Lubos Dolezel
316feeb736 Linux 4.16 compat fix 2018-07-20 17:17:01 +02:00
Luboš Doležel
736f96675e
Merge pull request #2 from andyneff/fix_dkms
Add KERNELVERSION so that dmks builds against the right kernel version
2018-07-19 00:32:12 +02:00
Lubos Dolezel
cf1c0163c5 Support (de)allocating memory in another process 2018-07-18 16:36:39 +02:00
Lubos Dolezel
50f3253ab5 Fix crash in task_64bit_entry() on zombie processes 2018-07-17 18:34:51 +02:00
Lubos Dolezel
bc5489987d Mark mach_vm_protect() as no-op and allow mach_vm_write() to overwrite R/O pages (like what ptrace(POKE_DATA) does) 2018-07-17 17:26:03 +02:00
Lubos Dolezel
c4d4be00a5 Attempt to fix darlinghq/darling#400 2018-07-16 20:56:29 +02:00
Lubos Dolezel
58d3775ffe Provide non-zero suspend_count for suspended tasks/threads 2018-06-18 23:31:54 +02:00
Lubos Dolezel
de186a82d9 Fix crashes around examining zombie processes 2018-06-04 09:46:57 +02:00
Lubos Dolezel
fe33dd11f8 Add TASK_VM_INFO support, fix a kernel Oops 2018-06-04 09:15:49 +02:00
Lubos Dolezel
dae43c0ff2 Implement thread_info(THREAD_BASIC_INFO) 2018-06-03 18:41:29 +02:00
Lubos Dolezel
24b4f5862d Add a LKM call for detecting 64-bit processes 2018-06-03 18:25:04 +02:00
Lubos Dolezel
964ea1a17c Print real error for binfmt mmap failures 2018-06-03 17:25:04 +02:00
Lubos Dolezel
874f1105d1 Fix task_threads() duplicates 2018-06-03 17:24:19 +02:00
Lubos Dolezel
35a691ac95 Merge remote-tracking branch 'origin/kernel_macho_loading' 2018-05-29 20:44:38 +02:00
Lubos Dolezel
3ed1a3ac0b Merge branch 'kernel_macho_loading' 2018-05-29 19:43:35 +02:00
Lubos Dolezel
155ea67b15 Merge remote-tracking branch 'origin/master' into HEAD 2018-05-28 09:19:20 +02:00
Lubos Dolezel
c0dd508a4d Extend permission to allow running 32-bit apps by ordinary users 2018-05-27 23:09:16 +02:00
Lubos Dolezel
e6c329c953 Self-grant CAP_SYS_RAWIO temporarily when mapping __PAGEZERO 2018-05-27 22:19:04 +02:00
Lubos Dolezel
9e261dff1c Remove the use of int 0x83, getting this to work after Meltdown is a nightmare 2018-05-27 21:18:25 +02:00
Andrew Hyatt
9533d8cd7c
Put .cache.mk in .gitignore 2018-05-17 10:04:38 -04:00
Andy Neff
cb98b3f0d4 Add KERNELVERSION so that dmks builds against the right kernel version 2018-02-16 12:37:42 -05:00
Lubos Dolezel
2a6a92dc45 Part one of dealing with KPTI 2018-01-27 22:29:51 +01:00
Lubos Dolezel
23f17caae0 Linux 4.14 build fix 2018-01-27 21:50:16 +01:00
Lubos Dolezel
b92613a712 Fix LKM freeze (darlinghq/darling#370) 2018-01-13 21:30:40 +01:00
Lubos Dolezel
0ae2b09080 Merge branch 'master' into kernel_macho_loading 2018-01-12 20:52:17 +01:00
Lubos Dolezel
1a43783d1a Fix LKM deadlock (darlinghq/darling#367) 2018-01-12 20:51:28 +01:00
Lubos Dolezel
56f0a2d847 Fix crashes 2018-01-08 22:12:30 +01:00
Lubos Dolezel
6ff3af7fc3 Support Linux 4.14.0+ 2018-01-08 20:16:35 +01:00
Lubos Dolezel
dbede9ecaa Block RT signals used internally by Darling when loading Mach-Os 2018-01-02 22:50:48 +01:00
Lubos Dolezel
7c05b9d333 Setup the new XNU task earlier during exec() 2018-01-02 22:21:24 +01:00
Lubos Dolezel
9648becf4a Support loading i386 binaries 2017-12-20 19:20:45 +01:00
Lubos Dolezel
3833c377ff Correct entry point selection 2017-12-19 23:41:08 +01:00