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:
parent
06ae1e91c4
commit
660c5377fd
@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user