From owner-freebsd-current Wed Oct 2 23: 8:39 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD7BC37B401 for ; Wed, 2 Oct 2002 23:08:38 -0700 (PDT) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59B1443E4A for ; Wed, 2 Oct 2002 23:08:37 -0700 (PDT) (envelope-from dl-freebsd@catspoiler.org) Received: from mousie.catspoiler.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.5/8.12.5) with ESMTP id g9368QvU017837; Wed, 2 Oct 2002 23:08:30 -0700 (PDT) (envelope-from dl-freebsd@catspoiler.org) Message-Id: <200210030608.g9368QvU017837@gw.catspoiler.org> Date: Wed, 2 Oct 2002 23:08:26 -0700 (PDT) From: Don Lewis Subject: Re: Junior Kernel Hacker page updated... To: e0026813@stud3.tuwien.ac.at Cc: current@FreeBSD.ORG In-Reply-To: <200210030332.g933W1vU017519@gw.catspoiler.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2 Oct, Don Lewis wrote: > On 2 Oct, Stefan Farfeleder wrote: > >> /freebsd/current/src/sys/vm/uma_core.c:1307: could sleep with "filedesc structure" locked from /freebsd/current/src/sys/kern/kern_event.c:959 >> >> at me and freezes badly at some point (no breaking into ddb possible). >> This is totally repeatable. Is anybody able to reproduce (and maybe >> fix) this? > > It looks like the problem is that knote_attach() calls hashinit() while > holding the lock, and that hashinit() calls MALLOC(..., M_WAITOK). > > Try the following patch: > [snip] I went ahead and committed the patch. It survived a "make -j10 buildworld" test with your patched version of make. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message