Date: Sun, 04 May 2003 21:08:04 +0200 From: "Philippe Charnier" <charnier@xp11.frmug.org> To: Robert Watson <rwatson@FreeBSD.org> Cc: jhb@FreeBSD.org Subject: Re: panic: mutex process lock not owned at ../../../kern/sys_process.c:97 Message-ID: <200305041908.h44J84wu000743@xp11.frmug.org> In-Reply-To: Message from Robert Watson <rwatson@FreeBSD.org> <Pine.NEB.3.96L.1030504124255.24722E-100000@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Salut, Robert Watson <rwatson@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 ------ ------ Philippe Charnier charnier@{xp11.frmug.org,free.fr,FreeBSD.org} ``a PC not running FreeBSD is like a venusian with no tentacles'' ------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305041908.h44J84wu000743>