Date: Mon, 18 Jul 2005 14:29:37 -0500 From: Harry Coin <harrycoin@qconline.com> To: freebsd-current@freebsd.org Subject: resource_xxx lookups fail to find dyanmic kernel environment changes due to subr_hints bug Message-ID: <4.3.2.7.2.20050718142506.01ef94f8@mail.qconline.com>
next in thread | raw e-mail | index | archive | help
When the kernel environment goes to dynamic from static hints mode, the a bug in the resource_xxx lookup routines prevent them from using the dynamic environment. So they only report as of the static environment, while the kenv related routines report what's in the new environment. This can lead to very messy symptoms. The subr_hints.c file tries to detect when the kernel environment changes state. But there's a bug in that. Update below has been tested. --- /usr/src/sys/kern/subr_hints.c Sun Mar 13 12:05:26 2005 +++ /mnt/server1/usr/src/sys/kern/subr_hints.c Mon Jul 18 13:53:02 2005 @@ -61,6 +61,7 @@ char *p; if (checkmethod) { + hintp=NULL; switch (hintmode) { case 0: /* loader hints in environment only */ break; Harry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.2.7.2.20050718142506.01ef94f8>