Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2004 20:24:33 -0500
From:      Mike Meyer <mwm@mired.org>
To:        gerarra@tin.it
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: FreeBSD Kernel buffer overflow
Message-ID:  <16714.15569.122973.367346@guru.mired.org>
In-Reply-To: <4146316C00007823@ims3a.cp.tin.it>
References:  <20040917002301.GB73372@hub.freebsd.org> <4146316C00007823@ims3a.cp.tin.it>

next in thread | previous in thread | raw e-mail | index | archive | help
> Nobody can write a syscall with more than 8 arguments and this is conceptually
> wrong. In my opinion this is a mistake, no assumptions might be done on

I'd argue that a syscall with 9 or more arguments is conceptually
wrong in the first place. Anything with that many knobs needs to be an
object, not a simple list of parameters. In other words, you should
bundle the parameters up into a struct, and pass a pointer to the
struct.

Take a look at namei (which used to have a very long argument list)
for an example of what I mean.

	<mike
-- 
Mike Meyer <mwm@mired.org>		http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16714.15569.122973.367346>