From owner-freebsd-security Fri Jan 21 22:25:43 2000 Delivered-To: freebsd-security@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 30244155B0 for ; Fri, 21 Jan 2000 22:25:41 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) id WAA03860; Fri, 21 Jan 2000 22:49:24 -0800 (PST) Date: Fri, 21 Jan 2000 22:49:24 -0800 From: Alfred Perlstein To: Brett Glass Cc: security@freebsd.org Subject: Re: stream.c worst-case kernel paths Message-ID: <20000121224924.B3730@fw.wintelcom.net> References: <200001212353.PAA64927@apollo.backplane.com> <7263.948497709@critter.freebsd.dk> <200001212353.PAA64927@apollo.backplane.com> <20000121194609.A19536@fw.wintelcom.net> <4.2.2.20000121205951.01a58bb0@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <4.2.2.20000121205951.01a58bb0@localhost>; from brett@lariat.org on Fri, Jan 21, 2000 at 09:02:11PM -0700 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * Brett Glass [000121 20:31] wrote: > At 08:46 PM 1/21/2000 , Alfred Perlstein wrote: > > >Please look at tcp_input, notice the "goto drop" and "goto > >dropwithreset" jumps, they are scattered throught and after some > >pretty close examination (no tests yet) I've been able to see that > >we can signifigantly move the tcp checksum farther into the path. > > One of the first things the routine does is look for a socket that > matches the TCP header. This relies on the port numbers and control > bits, which are covered by the checksum. This is the hard limit > on how long you can defer the checksum. You're wrong, many combinations of tcp header flags are invalid depending on the tcp connection's state, as well as other factors i'm sure exist, but have yet to examine. If we are under attack and not sending ICMP or RST back then why checksum instead of just dropping it? Either way it's an invalid packet. Btw, i'm not totally sold on the checksum idea, i'd just like to see the results of the change in cpu workload once I accomplish this. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message