Subject: Re: kern/35278: veriexec sometimes feeds user va to log(9)
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 12/23/2006 11:50:02
The following reply was made to PR kern/35278; it has been noted by GNATS.
From: yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
To: elad@NetBSD.org
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/35278: veriexec sometimes feeds user va to log(9)
Date: Sat, 23 Dec 2006 20:47:17 +0900 (JST)
> YAMAMOTO Takashi wrote:
> >> btw: can't we solve the problem for netbsd-4 with SAVENAME?
> >
> > if it's enough for you, it can. i don't know.
>
> it's the same, because namei() can already do this for us.
same as what?
> in check_exec() it's an obvious fix. in sys_unlink() we can add SAVENAME
> and PNBUF_PUT() for error cases. in rename_files() we can do the same,
> but it seems it already passes SAVESTART. are SAVENAME and SAVESTART
> mutually exclusive?
>
> > i still don't understand why you want to feed saved pathname to veriexec.
>
> because otherwise the log messages are meaningless...
>
> -e.
then, you don't care if it's an original pathname or not?
YAMAMOTO Takashi