From owner-freebsd-current Sat May 16 13:13:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA29659 for freebsd-current-outgoing; Sat, 16 May 1998 13:13:46 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp01.primenet.com (daemon@smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA29652; Sat, 16 May 1998 13:13:41 -0700 (PDT) (envelope-from tlambert@usr02.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id NAA22397; Sat, 16 May 1998 13:13:39 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp01.primenet.com, id smtpd022382; Sat May 16 13:13:35 1998 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id NAA08439; Sat, 16 May 1998 13:13:26 -0700 (MST) From: Terry Lambert Message-Id: <199805162013.NAA08439@usr02.primenet.com> Subject: Re: libc corruption To: peter@netplex.com.au (Peter Wemm) Date: Sat, 16 May 1998 20:13:26 +0000 (GMT) Cc: dyson@FreeBSD.ORG, kkennawa@physics.adelaide.edu.au, current@FreeBSD.ORG In-Reply-To: <199805160829.QAA29907@spinner.netplex.com.au> from "Peter Wemm" at May 16, 98 04:29:32 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Those are symbols created from the kernel list of system calls. > > It's times like this that I'd really like to have a *seperate* list of > syscalls and numbers stored in lib/libc explicitly. I've blown holes in > my feet over this so many times that I don't have much of my feet left. :-] [ ... ] > To make it a little easier, perhaps have libc's syscall tables explicitly > generated from the kernel sources and committed. That should make it > a no-brainer to keep them in sync and yet will stop accidental leakage > from the kernel into libc. Consider that with ELF and a dynamically linked binary, you could dlopen the kernel (copy on write, of course), and have a special ELF section whose intent is to provide the libc system call mappings. Similarly, you could provide kernel-specific libkvm routines, so that you never has ps/w/netstat/ifconfig/etc. problems ever again, *without* screwing up the ability to run various programs against a dump image. 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-current" in the body of the message