Date: Fri, 22 Nov 2002 16:08:05 -0500 (EST) From: John Baldwin <jhb@FreeBSD.org> To: Kris Kennaway <kris@obsecurity.org> Cc: current@FreeBSD.org Subject: RE: Lots of swapping from 'kldload acpi' Message-ID: <XFMail.20021122160805.jhb@FreeBSD.org> In-Reply-To: <20021122195629.GA26958@rot13.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 22-Nov-2002 Kris Kennaway wrote:
> I tried to kldload acpi on a system that has been running for about 3
> days, and the kldload process has been sitting there swapping for
> about an hour now. Breaking into DDB shows that
> acpi_alloc_wakeup_handler() is trying to contigmalloc(), and this is
> swapping around presumably trying to find enough space. The kldload
> process is unkillable from userland because it's working in the
> kernel.
>
> Can something be done to guard against this?
It's supposed to do that already:
acpi_modevent(struct module *mod, int event, void *junk)
{
switch(event) {
case MOD_LOAD:
if (!cold)
return(EPERM);
break;
...
also:
static void
acpi_identify(driver_t *driver, device_t parent)
{
...
if(!cold){
printf("Don't load this driver from userland!!\n");
return ;
}
...
If that isn't working then there is a bug.
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20021122160805.jhb>
