diff options
author | alc <alc@FreeBSD.org> | 1999-10-31 19:39:51 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 1999-10-31 19:39:51 +0000 |
commit | 61bba49fd721f3de05bfc559ec08f25119e385bc (patch) | |
tree | c4b48dfb370f47e318328863565b1b1343a7f8c4 /sys/pc98 | |
parent | 5053068e49e09371e54195e07b760601c40d6caa (diff) | |
download | FreeBSD-src-61bba49fd721f3de05bfc559ec08f25119e385bc.zip FreeBSD-src-61bba49fd721f3de05bfc559ec08f25119e385bc.tar.gz |
The useracc() calls in osigreturn() and sigreturn() should specify
VM_PROT_READ rather than VM_PROT_WRITE. (This mistake predates
the B_READ/B_WRITE -> VM_PROT_READ/VM_PROT_WRITE change.)
Submitted by: bde
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/i386/machdep.c | 4 | ||||
-rw-r--r-- | sys/pc98/pc98/machdep.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index ed1e1a2..7f49b9b 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -782,7 +782,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; @@ -893,7 +893,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) { diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index ed1e1a2..7f49b9b 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -782,7 +782,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; @@ -893,7 +893,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) { |