mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 23:52:49 +00:00
Synchronize with sys/i386/i386/machdep.c revision 1.223 (clean-up of
useracc call).
This commit is contained in:
parent
18926d84a6
commit
cbecba19cc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21011
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.21 1996/12/17 13:26:17 kato Exp $
|
||||
* $Id: machdep.c,v 1.22 1996/12/18 20:50:44 kato Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
@ -572,7 +572,7 @@ sigreturn(p, uap, retval)
|
||||
fp = (struct sigframe *)
|
||||
((caddr_t)scp - offsetof(struct sigframe, sf_sc));
|
||||
|
||||
if (useracc((caddr_t)fp, sizeof (*fp), 0) == 0)
|
||||
if (useracc((caddr_t)fp, sizeof (*fp), B_WRITE) == 0)
|
||||
return(EINVAL);
|
||||
|
||||
/*
|
||||
@ -624,7 +624,7 @@ sigreturn(p, uap, retval)
|
||||
regs[tSS] = scp->sc_ss;
|
||||
regs[tISP] = scp->sc_isp;
|
||||
|
||||
if (useracc((caddr_t)scp, sizeof (*scp), 0) == 0)
|
||||
if (useracc((caddr_t)scp, sizeof (*scp), B_WRITE) == 0)
|
||||
return(EINVAL);
|
||||
|
||||
if (scp->sc_onstack & 01)
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.21 1996/12/17 13:26:17 kato Exp $
|
||||
* $Id: machdep.c,v 1.22 1996/12/18 20:50:44 kato Exp $
|
||||
*/
|
||||
|
||||
#include "npx.h"
|
||||
@ -572,7 +572,7 @@ sigreturn(p, uap, retval)
|
||||
fp = (struct sigframe *)
|
||||
((caddr_t)scp - offsetof(struct sigframe, sf_sc));
|
||||
|
||||
if (useracc((caddr_t)fp, sizeof (*fp), 0) == 0)
|
||||
if (useracc((caddr_t)fp, sizeof (*fp), B_WRITE) == 0)
|
||||
return(EINVAL);
|
||||
|
||||
/*
|
||||
@ -624,7 +624,7 @@ sigreturn(p, uap, retval)
|
||||
regs[tSS] = scp->sc_ss;
|
||||
regs[tISP] = scp->sc_isp;
|
||||
|
||||
if (useracc((caddr_t)scp, sizeof (*scp), 0) == 0)
|
||||
if (useracc((caddr_t)scp, sizeof (*scp), B_WRITE) == 0)
|
||||
return(EINVAL);
|
||||
|
||||
if (scp->sc_onstack & 01)
|
||||
|
Loading…
Reference in New Issue
Block a user