From owner-freebsd-current Sat Nov 23 1:15:28 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 F2CDE37B401; Sat, 23 Nov 2002 01:15:26 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1FFF43E91; Sat, 23 Nov 2002 01:15:25 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id UAA09036; Sat, 23 Nov 2002 20:15:04 +1100 Date: Sat, 23 Nov 2002 20:28:16 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Mitsuru IWASAKI Cc: kris@obsecurity.org, , Subject: Re: Lots of swapping from 'kldload acpi' In-Reply-To: <20021123.105846.06278793.iwasaki@jp.FreeBSD.org> Message-ID: <20021123201910.R48944-100000@gamplex.bde.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 Sat, 23 Nov 2002, Mitsuru IWASAKI wrote: > > On Fri, Nov 22, 2002 at 04:08:05PM -0500, John Baldwin wrote: > > > > > > Can something be done to guard against this? > > > > > > It's supposed to do that already: > > > > > If that isn't working then there is a bug. > > > > There's a bug :-) > > Ah, Yes. > The function is called via SYSINIT. We need more `if (!cold)' checkings. > I'll take this one. The existence of SYSINIT is a bug, but shouldn't the order of SYSINITs be such that they are run before MOD_LOAD events? SYSINITs have no way to communicate failure, so they are especially broken when they are used to allocate resources. Users of the resources have no way to tell whether the SYSINITs worked except to check for the existence of the resources before using them, but if they can do that properly then they can just call the resource allocation functions. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message