Subject: Re: kern/35278: veriexec sometimes feeds user va to log(9)
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Elad Efrat <elad@NetBSD.org>
List: netbsd-bugs
Date: 12/20/2006 10:15:05
The following reply was made to PR kern/35278; it has been noted by GNATS.

From: Elad Efrat <elad@NetBSD.org>
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/35278: veriexec sometimes feeds user va to log(9)
Date: Wed, 20 Dec 2006 12:05:05 +0200

 YAMAMOTO Takashi wrote:
 
 > i'm not a fan of adding more functionalities to namei().
 
 "more" :)
 
 > it's better to simplify namei() instead.
 > i'd suggest something like this.
 > 
 > sys_xxx()
 > {
 > 	pathname_t *pn;
 > 
 > 	error = pathname_get(user_pointer, &pn); /* allocate buffer and copyinstr */
 > 	NDINIT(.., pn, ..);
 > 
 > 	pathname_put(pn);
 > }
 
 this just combines the segflg check/allocation/copyinstr. I thought we
 wanted to hide these, but okay.
 
 > how about just disabling pathname logging?
 
 suboptimal...
 
 -e.