Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755537Ab0BOMbS (ORCPT ); Mon, 15 Feb 2010 07:31:18 -0500 Received: from mail-iw0-f185.google.com ([209.85.223.185]:53484 "EHLO mail-iw0-f185.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755508Ab0BOMbQ (ORCPT ); Mon, 15 Feb 2010 07:31:16 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=JiDGxwv3m/nAtl3490NSnIwjFJbOH9NfzxMM2izij02a6zIjI4m28DRDR8yNLiiy8/ ua/16pVvGPt2tq0uERiJsMpgrEWP7mVUELb+iW9hx8CpEbqHzz+9iCgdVxXXLv7IMx0b w3Rm3Pw6KtXFSppdIwFPr2tqYzeWW2NqJM2v8= Message-ID: <4B793E8F.30208@gmail.com> Date: Mon, 15 Feb 2010 07:31:11 -0500 From: William Allen Simpson User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Linux Kernel Developers CC: Linux Kernel Network Developers , Andrew Morton , David Miller , Andi Kleen Subject: [PATCH v4 4/7] tcp: input header length, prediction, and timestamp bugs References: <4B793CAA.2030902@gmail.com> In-Reply-To: <4B793CAA.2030902@gmail.com> Content-Type: multipart/mixed; boundary="------------090405000805080504050004" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 15639 Lines: 240 This is a multi-part message in MIME format. --------------090405000805080504050004 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Fix incorrect header prediction flags documentation. Relieve register pressure in (the i386) fast path by accessing skb->len directly, instead of carrying a rarely used len parameter. Eliminate unused len parameters in two other functions. Don't use output calculated tp->tcp_header_len for input decisions. While the output header is usually the same as the input (same options in both directions), that's a poor assumption. In particular, Sack will be different. Newer options are not guaranteed. Moreover, in the fast path, that only saved a shift or two. The other efficiencies in this patch more than make up the difference. Instead, use tp->rx_opt.tstamp_ok to accurately predict header length. Likewise, use tp->rx_opt.tstamp_ok for received MSS calculations. Don't use "sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED" to guess that the timestamp is present. This may have been OK in the days with fewer possible options, but various combinations of newer options may yield the same header length. (This bug is in 3 places.) Instead, use tp->rx_opt.saw_tstamp to determine a timestamp is present. There's no need to test buffer length against header length, already checked by tcp_v[4,6]_rcv(). Straighten code for minor efficiency gain. Stand-alone patch, originally developed for TCPCT. Requires: net: tcp_header_len_th and tcp_option_len_th tcp: harmonize tcp_vx_rcv header length assumptions Signed-off-by: William.Allen.Simpson@gmail.com CC: Andi Kleen --------------090405000805080504050004 Content-Type: text/plain; x-mac-type="54455854"; x-mac-creator="0"; name="len_th+2d4+2.6.33-rc8.patch" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="len_th+2d4+2.6.33-rc8.patch" ZGlmZiAtLWdpdCBhL2luY2x1ZGUvbGludXgvdGNwLmggYi9pbmNsdWRlL2xpbnV4L3RjcC5o CmluZGV4IDc0NzI4ZjcuLjI5ODdlZTggMTAwNjQ0Ci0tLSBhL2luY2x1ZGUvbGludXgvdGNw LmgKKysrIGIvaW5jbHVkZS9saW51eC90Y3AuaApAQCAtMzAxLDcgKzMwMSwxMSBAQCBzdHJ1 Y3QgdGNwX3NvY2sgewogCiAvKgogICoJSGVhZGVyIHByZWRpY3Rpb24gZmxhZ3MKLSAqCTB4 NT8xMCA8PCAxNiArIHNuZF93bmQgaW4gbmV0IGJ5dGUgb3JkZXIKKyAqCVMgPDwgMjggKyBU Q1BfRkxBR19BQ0sgKyBzbmRfd25kLCBpbiBuZXQgYnl0ZSBvcmRlcgorICoJCShQU0ggZmxh ZyBpcyBpZ25vcmVkKQorICoJCVMgaXMgNSAobm8gb3B0aW9ucyksIG9yIDggKHRpbWVzdGFt cCBhbGlnbmVkKQorICoJb3RoZXJ3aXNlLCAwIHRv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Uihzayk7CiAJaWYgKG9wdF9za2IpCi0tIAoxLjYuMy4zCgo= --------------090405000805080504050004-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/