Subject: Re: kern/36969: locking cleanup patches for limit structures
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: David Holland <dholland@eecs.harvard.edu>
List: netbsd-bugs
Date: 09/11/2007 23:45:03
The following reply was made to PR kern/36969; it has been noted by GNATS.

From: David Holland <dholland@eecs.harvard.edu>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/36969: locking cleanup patches for limit structures
Date: Tue, 11 Sep 2007 19:40:01 -0400

 On Tue, Sep 11, 2007 at 08:45:00PM +0000, gnats-admin@netbsd.org wrote:
  > >Synopsis:       locking cleanup patches for limit structures
 
 Er. I goofed slightly - apply the following on top of the patch I sent
 before. Or remove the KASSERT in kern_resource.c that mentions limit0,
 which may be a more desirable approach in the long run.
 
 diff -r 29198b442d4b sys/sys/resourcevar.h
 --- a/sys/sys/resourcevar.h	Mon Sep 10 20:12:12 2007 -0400
 +++ b/sys/sys/resourcevar.h	Tue Sep 11 19:13:12 2007 -0400
 @@ -113,6 +113,7 @@ void	uid_init(void);
  void	uid_init(void);
  
  extern char defcorename[];
 +extern struct plimit limit0;  /* for KASSERTing only */
  
  extern int security_setidcore_dump;
  extern char security_setidcore_path[];
 
 
 -- 
    - David A. Holland / dholland@eecs.harvard.edu