diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-05-31 22:34:54 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-05-31 22:34:54 +0000 |
commit | 0bb6f0d776d927731ea26c13d6c959ca3bafef0e (patch) | |
tree | 82778ce6c8f51a01cab51e434bc38d50fa89e9ba /sys/kern | |
parent | 10f077b6cd7ffb9247efa24804dff53c15dfde7c (diff) |
Fix ptrace PT_WRITE_D that returned EFAULT.
Broken in r.1.33. After discussion from kettenis@, don't attempt to
make PT_WRITE_D and PT_WRITE_I equivalent again.
From Mathieu (naabed at poolp dot org)
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/sys_process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 60ec50edca2..ca72f119b37 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_process.c,v 1.68 2015/09/24 20:35:18 tedu Exp $ */ +/* $OpenBSD: sys_process.c,v 1.69 2016/05/31 22:34:53 jca Exp $ */ /* $NetBSD: sys_process.c,v 1.55 1996/05/15 06:17:47 tls Exp $ */ /*- @@ -734,7 +734,7 @@ process_domem(struct proc *curp, struct proc *p, struct uio *uio, int req) vm->vm_refcnt++; error = uvm_io(&vm->vm_map, uio, - (req == PT_WRITE_I) ? UVM_IO_FIXPROT : 0); + (uio->uio_rw == UIO_WRITE) ? UVM_IO_FIXPROT : 0); uvmspace_free(vm); |