Missing part of dillon's coredump commit. cpu_coredump() was still

passing IO_NODELOCKED to vn_rdwr(), this would cause operations on the
unlocked core vnode and softupdates nastiness if an a.out binary cored.
This commit is contained in:
Peter Wemm 2001-09-08 22:18:58 +00:00
parent 06ae1e91c4
commit 660c5377fd
6 changed files with 8 additions and 16 deletions

View File

@ -288,8 +288,7 @@ cpu_coredump(p, vp, cred)
{
return (vn_rdwr(UIO_WRITE, vp, (caddr_t) p->p_addr, ctob(UPAGES),
(off_t)0, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred, (int *)NULL,
p));
(off_t)0, UIO_SYSSPACE, IO_UNIT, cred, (int *)NULL, p));
}
/*

View File

@ -323,10 +323,8 @@ cpu_coredump(p, vp, cred)
tempuser + ((caddr_t) p->p_frame - (caddr_t) p->p_addr),
sizeof(struct trapframe));
error = vn_rdwr(UIO_WRITE, vp, (caddr_t) tempuser,
ctob(UPAGES),
(off_t)0, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT,
cred, (int *)NULL, p);
error = vn_rdwr(UIO_WRITE, vp, (caddr_t) tempuser, ctob(UPAGES),
(off_t)0, UIO_SYSSPACE, IO_UNIT, cred, (int *)NULL, p);
free(tempuser, M_TEMP);

View File

@ -323,10 +323,8 @@ cpu_coredump(p, vp, cred)
tempuser + ((caddr_t) p->p_frame - (caddr_t) p->p_addr),
sizeof(struct trapframe));
error = vn_rdwr(UIO_WRITE, vp, (caddr_t) tempuser,
ctob(UPAGES),
(off_t)0, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT,
cred, (int *)NULL, p);
error = vn_rdwr(UIO_WRITE, vp, (caddr_t) tempuser, ctob(UPAGES),
(off_t)0, UIO_SYSSPACE, IO_UNIT, cred, (int *)NULL, p);
free(tempuser, M_TEMP);

View File

@ -331,8 +331,7 @@ cpu_coredump(p, vp, cred)
{
return (vn_rdwr(UIO_WRITE, vp, (caddr_t) p->p_addr, ctob(UPAGES),
(off_t)0, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred, (int *)NULL,
p));
(off_t)0, UIO_SYSSPACE, IO_UNIT, cred, (int *)NULL, p));
}
/*

View File

@ -204,8 +204,7 @@ cpu_coredump(p, vp, cred)
{
return (vn_rdwr(UIO_WRITE, vp, (caddr_t) p->p_addr, ctob(UPAGES),
(off_t)0, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred, (int *)NULL,
p));
(off_t)0, UIO_SYSSPACE, IO_UNIT, cred, (int *)NULL, p));
}
/*

View File

@ -204,8 +204,7 @@ cpu_coredump(p, vp, cred)
{
return (vn_rdwr(UIO_WRITE, vp, (caddr_t) p->p_addr, ctob(UPAGES),
(off_t)0, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred, (int *)NULL,
p));
(off_t)0, UIO_SYSSPACE, IO_UNIT, cred, (int *)NULL, p));
}
/*