Subject: Re: kern/35351 (Re: CVS commit: src/sys/kern)
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Elad Efrat <e@murder.org>
List: tech-kern
Date: 04/07/2007 19:48:25
YAMAMOTO Takashi wrote:

> the lack of locking in fileassoc.  are you kidding?
>
> 
> as you know, veriexec is not only user of fileassoc.
> do you mean you have investigated all of users and know fileassoc
> doesn't need to have locking on netbsd-4?  otherwise, why do you claim
> it isn't a problem?  to me, these users seem to work basically independently,
> so i think nothing serializes users and thus fileassoc itself needs to
> have locking internally.
> am i missing something obvious?  (i guess i am, given that you are
> an author of all of these fileassoc users.)

(interesting use of the word "all". :)

besides veriexec there's only segvguard, for which the implementation
needs to change - it's unsafe even if locking was in place. I pointed
this out at least two times, and this is why it's disabled by default.

-e.