From owner-freebsd-bugs@FreeBSD.ORG Tue Apr 14 21:10:03 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 099871065670 for ; Tue, 14 Apr 2009 21:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C13B68FC13 for ; Tue, 14 Apr 2009 21:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3ELA2Kw081352 for ; Tue, 14 Apr 2009 21:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3ELA2D0081351; Tue, 14 Apr 2009 21:10:02 GMT (envelope-from gnats) Resent-Date: Tue, 14 Apr 2009 21:10:02 GMT Resent-Message-Id: <200904142110.n3ELA2D0081351@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ernest Hua Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80ECC106566B for ; Tue, 14 Apr 2009 21:00:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 6FB0F8FC0A for ; Tue, 14 Apr 2009 21:00:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n3EL0jbx077413 for ; Tue, 14 Apr 2009 21:00:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n3EL0jCr077308; Tue, 14 Apr 2009 21:00:45 GMT (envelope-from nobody) Message-Id: <200904142100.n3EL0jCr077308@www.freebsd.org> Date: Tue, 14 Apr 2009 21:00:45 GMT From: Ernest Hua To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/133736: ip_id not protected ... X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Apr 2009 21:10:03 -0000 >Number: 133736 >Category: kern >Synopsis: ip_id not protected ... >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 14 21:10:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Ernest Hua >Release: 7.0-RELEASE >Organization: MaxiScale, Inc. >Environment: FreeBSD r01s18 7.0-RELEASE FreeBSD 7.0-RELEASE #0: ... amd64 This is our own compiled kernel that is based on 7.0-RELEASE with the dump/snapshot patch applied. >Description: We have evidence of IP fragments from different UDP transactions being stamped with the same 16-bit id. >How-To-Repeat: Using a multi-threaded application, transmit lots of large (much greater than MTU) UDP packets of the same size with known but distinctive content to a single destination port using a multi-core system as the transmitter. There will be occasional data corruption found at the destination where data from one transaction is found in the payload of another transaction. >Fix: ip_id needs some atomic protection. The same can probably be said of the random id generator. >Release-Note: >Audit-Trail: >Unformatted: