From owner-freebsd-arch Tue Feb 27 11:41: 9 2001 Delivered-To: freebsd-arch@freebsd.org Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (Postfix) with ESMTP id 54A5C37B719 for ; Tue, 27 Feb 2001 11:41:07 -0800 (PST) (envelope-from tlambert@usr05.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.9.3/8.9.3) id MAA15754; Tue, 27 Feb 2001 12:37:57 -0700 (MST) Received: from usr05.primenet.com(206.165.6.205) via SMTP by smtp03.primenet.com, id smtpdAAAvXaOME; Tue Feb 27 12:37:47 2001 Received: (from tlambert@localhost) by usr05.primenet.com (8.8.5/8.8.5) id MAA28715; Tue, 27 Feb 2001 12:40:49 -0700 (MST) From: Terry Lambert Message-Id: <200102271940.MAA28715@usr05.primenet.com> Subject: Re: sbufs in userland To: phk@critter.freebsd.dk (Poul-Henning Kamp) Date: Tue, 27 Feb 2001 19:40:49 +0000 (GMT) Cc: bde@zeta.org.au (Bruce Evans), ken@kdm.org (Kenneth D. Merry), arch@FreeBSD.ORG In-Reply-To: <26415.983257037@critter> from "Poul-Henning Kamp" at Feb 27, 2001 07:57:17 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ ... 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