Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jan 1999 18:24:59 +0600 (NS)
From:      Ustimenko Semen <semen@iclub.nsu.ru>
To:        freebsd-current@FreeBSD.ORG
Subject:   Re: sys/kern/kern_linker.c patch
Message-ID:  <Pine.BSF.3.96.990119181922.15546A-100000@iclub.nsu.ru>
In-Reply-To: <Pine.BSF.3.96.990119172807.14095A-100000@iclub.nsu.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Sorry for self reply.

Patch isn't good enougth:-) becouse linker_file_unload()
deallocates lf structure's memory... so lf->userrefs-- may cause
page fault or whatever else. (I wonder how that didn't happened)

Look at this one:

*** kern_linker.c.orig	Mon Jan 18 17:22:39 1999
--- kern_linker.c	Mon Jan 18 18:14:28 1999
***************
*** 655,660 ****
--- 655,662 ----
  	}
  	lf->userrefs--;
  	error = linker_file_unload(lf);
+ 	if(error)
+ 	    lf->userrefs++;
      } else
  	error = ENOENT;
  



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?Pine.BSF.3.96.990119181922.15546A-100000>