Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2001 19:40:49 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        phk@critter.freebsd.dk (Poul-Henning Kamp)
Cc:        bde@zeta.org.au (Bruce Evans), ken@kdm.org (Kenneth D. Merry), arch@FreeBSD.ORG
Subject:   Re: sbufs in userland
Message-ID:  <200102271940.MAA28715@usr05.primenet.com>
In-Reply-To: <26415.983257037@critter> from "Poul-Henning Kamp" at Feb 27, 2001 07:57:17 AM

next in thread | previous in thread | raw e-mail | index | archive | help
[ ... kernel versus user space API's ... ]

> strlen() comes to mind as an API where it can't use it.  In the
> kernel strlen should return an error code if it tries to access
> non-accessible memory, rather than core-dumping as it does in
> userland.

That's just crazy talk.  That's like saying invalid pointer
dereferences shouldn't be fatal, just because someone was
really, really, very, mucho grande, intolerably sloppy about
calling a function on a pointer, without knowing what it
pointed to before making the call.

I would much rather have a panic, and have the kernel tell me
"Hey moron!  Fix your code, right here!".


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




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