diff options
| author | Alan Cox <alc@FreeBSD.org> | 1999-10-31 19:39:51 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 1999-10-31 19:39:51 +0000 |
| commit | 0d4d02ecf22e769239ac48fca787a330fbea6e0d (patch) | |
| tree | c4b48dfb370f47e318328863565b1b1343a7f8c4 /sys/amd64 | |
| parent | 96a9a981cc0a9de4d89afbdb571c3a2cad584a45 (diff) | |
Notes
Diffstat (limited to 'sys/amd64')
| -rw-r--r-- | sys/amd64/amd64/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index c96546656a32..7bd9188b40ee 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -769,7 +769,7 @@ osigreturn(p, uap) scp = uap->sigcntxp; - if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_WRITE)) + if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_READ)) return(EFAULT); eflags = scp->sc_ps; @@ -880,7 +880,7 @@ sigreturn(p, uap) ucp = uap->sigcntxp; eflags = ucp->uc_mcontext.mc_eflags; - if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_WRITE)) + if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_READ)) return(EFAULT); if (eflags & PSL_VM) { |
