Date: Sat, 08 May 1999 01:11:01 +0800 From: Peter Wemm <peter@netplex.com.au> To: "Jordan K. Hubbard" <jkh@zippy.cdrom.com> Cc: current@FreeBSD.ORG Subject: Re: somebody has broken sysctlbyname() in -current Message-ID: <19990507171102.DFF581F72@spinner.netplex.com.au> In-Reply-To: Your message of "Fri, 07 May 1999 06:49:31 MST." <99200.926084971@zippy.cdrom.com>
index | next in thread | previous in thread | raw e-mail
"Jordan K. Hubbard" wrote:
> > sysctlbyname("machdep.uc_devlist", buf, &len, NULL, NULL);
>
> Sorry for the vague first bug report; I hadn't collected a reasonable
> crashdump yet. It's in sysctl_machdep_uc_devlist(), specifically
> where it copies id->id_driver->name into a temporary stack variable.
> First time through, this thing's NULL and *boom* we're gone. I'm
> looking into it.
Should be fixed as of a few minutes ago in userconfig.c:
----------------------------
revision 1.140
date: 1999/05/07 16:54:50; author: peter; state: Exp; lines: +34 -2
Yet another kludge to maintain the isa_device illusion, this time malloc
an isa_driver and name pointer so the uc_devlist sysctl can get to it.
----------------------------
Cheers,
-Peter
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990507171102.DFF581F72>
