From owner-freebsd-stable@FreeBSD.ORG Fri Feb 12 18:57:52 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4EE8E10656EF; Fri, 12 Feb 2010 18:57:52 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id C47388FC15; Fri, 12 Feb 2010 18:57:51 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAJEzdUuDaFvH/2dsb2JhbACbAXS/foRYBIMT X-IronPort-AV: E=Sophos;i="4.49,462,1262581200"; d="scan'208";a="65258207" Received: from danube.cs.uoguelph.ca ([131.104.91.199]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 12 Feb 2010 13:57:50 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by danube.cs.uoguelph.ca (Postfix) with ESMTP id 07E3010842BA; Fri, 12 Feb 2010 13:57:50 -0500 (EST) X-Virus-Scanned: amavisd-new at danube.cs.uoguelph.ca Received: from danube.cs.uoguelph.ca ([127.0.0.1]) by localhost (danube.cs.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 244JsO93KH5u; Fri, 12 Feb 2010 13:57:49 -0500 (EST) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by danube.cs.uoguelph.ca (Postfix) with ESMTP id EBFD6108408E; Fri, 12 Feb 2010 13:57:48 -0500 (EST) Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id o1CJ9EA25479; Fri, 12 Feb 2010 14:09:14 -0500 (EST) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Fri, 12 Feb 2010 14:09:14 -0500 (EST) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: John Baldwin In-Reply-To: <201002111255.46256.jhb@freebsd.org> Message-ID: References: <20100210174338.GC39752@hades.panopticon> <201002111255.46256.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, Dmitry Marakasov , freebsd-stable@freebsd.org Subject: Re: NFS write corruption on 8.0-RELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Feb 2010 18:57:52 -0000 On Thu, 11 Feb 2010, John Baldwin wrote: >> >> Case1: single currupted block 3779CF88-3779FFFF (12408 bytes). >> Data in block is shifted 68 bytes up, loosing first 68 bytes are >> filling last 68 bytes with garbage. Interestingly, among that garbage >> is my hostname. > > Is it the hostname of the server or the client? > Oh, I realized the first 4 bytes of the garbage is the record mark that preceeds the RPC header for TCP, so the garbage is the first part of the RPC after the TCP/IP header. > > Can you reproduce this using a non-FreeBSD server with a FreeBSD client or a > non-FreeBSD client with a FreeBSD server? That would narrow down the breakage > to either the client or the server. > If using a non-FreeBSD client/server isn't convenient, another way would be to do a binary packet capture (something like "tcpdump -s 0 -w ") and then looking at it in wireshark for a failed case and see if the data is corrupted on the wire. rick