kern/84034: Never getting dynamic hints

Anish Mistry amistry at am-productions.biz
Mon Jul 25 05:40:13 GMT 2005


>Number:         84034
>Category:       kern
>Synopsis:       Never getting dynamic hints
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 25 05:40:11 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Anish Mistry
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
AM Productions 
>Environment:


FreeBSD littleguy.am-productions.biz 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Jul 23 17:27:32 EDT 2005     amistry at littleguy.am-productions.biz:/usr/obj/usr/src/sys/LITTLEGUY  i386


>Description:


Quoting Harry Coin
"Otherwise if resource_xxx lookups get called while still in static hints mode, and hintmode is 0, then after going to dynamic hints mode hintp_ is not reset, and so the res_xxx routines only still look at the static hints, they don't get any of the dynamic hints that are new or changed."


>How-To-Repeat:





>Fix:


--- subr_hints.c.patch begins here ---
--- /sys/kern/subr_hints.c.orig	Sat Jul 23 16:47:59 2005
+++ /sys/kern/subr_hints.c	Sat Jul 23 16:48:28 2005
@@ -61,6 +61,7 @@
 	char *p;
 
 	if (checkmethod) {
+		hintp = NULL;
 		switch (hintmode) {
 		case 0:		/* loader hints in environment only */
 			break;
--- subr_hints.c.patch ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list