panic: mutex process lock not owned at
../../../kern/sys_process.c:97
Robert Watson
rwatson at FreeBSD.org
Mon May 5 08:14:31 PDT 2003
On Sun, 4 May 2003, Philippe Charnier wrote:
> Robert Watson <rwatson at FreeBSD.org> wrote:
>
> >> 80 if (kl < 0)
> >> 81 error = EINVAL;
> >> 82 else
> >> 83 /* XXXKSE: */
> >> 84 error = proc_read_regs(FIRST_THREAD_IN_PROC(p), &r);
> >> 85 if (error == 0)
> >> 86 error = uiomove(kv, kl, uio);
> >> 87 PROC_LOCK(p);
> >> 88 if (error == 0 && uio->uio_rw == UIO_WRITE) {
> >
> >Try moving the PROC_UNLOCK() call from line 79 to just after line 84
> >(i.e., before the error check and possible uiomove()). It looks like some
> >similar bugs might exist in other bits of procfs.
>
> With your patch applied, the kernel does not panic anymore.
> Thanks
Ok, I've committed the fix following John's review. Please let us know if
anything else like this turns up.
Thanks!
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert at fledge.watson.org Network Associates Laboratories
More information about the freebsd-current
mailing list