From owner-freebsd-hackers Tue Jan 13 18:54:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA24538 for hackers-outgoing; Tue, 13 Jan 1998 18:54:41 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA12508 for ; Tue, 13 Jan 1998 17:17:55 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id RAA09412; Tue, 13 Jan 1998 17:17:21 -0800 (PST) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma009410; Tue Jan 13 17:16:56 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id RAA06492; Tue, 13 Jan 1998 17:16:52 -0800 (PST) From: Archie Cobbs Message-Id: <199801140116.RAA06492@bubba.whistle.com> Subject: Re: FreeBSD Netcards In-Reply-To: <86iurpz82n.fsf@bitbox.follo.net> from Eivind Eklund at "Jan 12, 98 10:38:40 pm" To: perhaps@yes.no (Eivind Eklund) Date: Tue, 13 Jan 1998 17:16:52 -0800 (PST) Cc: dennis@etinc.com, tom@sdf.com, jamie@itribe.net, hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk Eivind Eklund writes: > > > This is raw socket stuff is interesting. Example source please. I > > >don't believe this problem exists anymore. I know that Julian fixed > > >problems with routing sockets. As a side point, routing sockets and raw > > >sockets can only be accessed by root processes. > > > > Just look in raw_usrreq(). the default case is a panic. > > Fixed in revision 1.12 as of April 27, 1997. > > Do you have anything else? (I don't think any of us want panic()s to > occur for userland errors, though I think they often are the correct > path for a kernel error.) I don't know if this one still exists, but it used to be that you could set the MTU of an interface to zero, and then cause a kernel divide-by-zero panic by sending a packet out of it. In the case I saw, it was using the TUNSIFINFO ioctl() on the tunnel interface. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com