Commit Graph

8 Commits

Author SHA1 Message Date
chs
5131193704 add copyin_pid(), to copyin from a different user address space. 2018-05-28 21:04:41 +00:00
christos
19ea743456 Introduce security.pax.mprotect.ptrace sysctl which can be used to bypass
mprotect settings so that debuggers can write to the text segment of traced
processes so that they can insert breakpoints. Turned off by default.
Ok: chuq (for now)
2016-05-25 17:43:58 +00:00
riastradh
a6d56fa756 #ifdef DIAGNOSTIC panic -> KASSERT 2015-04-21 13:17:25 +00:00
riastradh
353f549b36 Back this out, per pooka's request. 2015-03-29 17:38:31 +00:00
riastradh
fb59c30429 Use #ifdef _RUMPKERNEL for now to prefer copyout over kcopy in tests.
Gross -- please fix me if you have a better approach.
2015-03-29 15:08:03 +00:00
riastradh
a1afb93b8e Back out previous.
It appears to be causing anita install to fail.  Evidently
VM_SPACE_IS_KERNEL_P(vm) is not mutually exclusive with `vm ==
curproc->p_vmspace' -- in particular, proc0's VM space is kernel.

Making this work in rump for tests will require another approach.
2015-03-29 15:05:34 +00:00
riastradh
c287e76ea3 Swap kernel/curproc tests in copy*_vmspace so rump can catch EFAULT. 2015-03-28 16:13:38 +00:00
pooka
fcc20a4ba1 Split uiomove() and high-level copy routines out of the crowded
kern_subr and into their own cozy home in subr_copy.
2009-11-04 16:54:00 +00:00