From owner-freebsd-stable@FreeBSD.ORG Thu May 26 10:58:34 2005 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C1AF916A434; Thu, 26 May 2005 10:58:34 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4243243D5E; Thu, 26 May 2005 10:58:30 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.10/8.12.10) with ESMTP id j4QAwL4J080114 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 26 May 2005 12:58:22 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j4QAw7hs048762 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 May 2005 12:58:08 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j4QAw7gR058039; Thu, 26 May 2005 12:58:07 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j4QAw6Xb058038; Thu, 26 May 2005 12:58:06 +0200 (CEST) (envelope-from ticso) Date: Thu, 26 May 2005 12:58:06 +0200 From: Bernd Walter To: Sten Spans Message-ID: <20050526105806.GB80082@cicely12.cicely.de> References: <20050525223355.56551.qmail@web80601.mail.yahoo.com> <20050526010325.02415410.lehmann@ans-netz.de> <20050526085750.GZ80082@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0098] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de Cc: current@freebsd.org, Mohan Srinivasan , stable@freebsd.org, ticso@cicely.de, Oliver Lehmann Subject: Re: problems with nfs+TCP - Resource temporarily unavailable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2005 10:58:35 -0000 On Thu, May 26, 2005 at 12:45:50PM +0200, Sten Spans wrote: > On Thu, 26 May 2005, Bernd Walter wrote: > > >On Thu, May 26, 2005 at 01:03:25AM +0200, Oliver Lehmann wrote: > >>###### > >> > >> > >>I tried the same with an other nfs server (using dill as nfs server this > >>time - system description is in my 1st mail, same mount options like / > >>mnt/files). And guess what? dill rebooted immediate... dd came never > >>back, gave no output > >> > >>dill's dmesg shows me: > >> > >>fatal kernel trap: > >> > >> trap entry = 0x4 (unaligned access fault) > >> faulting va = 0xfffffc0006b6f44d > >> opcode = 0x28 > >> register = 0x5 > >> pc = 0xfffffc0000541e08 > >> ra = 0xfffffc0000541df4 > >> sp = 0xfffffe000a0f9b70 > >> usp = 0x11ffea80 > >> curthread = 0xfffffc000f91ee10 > >> pid = 343, comm = nfsd > > > >This is absolutely known - TCP/nfs has bugs in realigning packets. > >Don't use TCP on strong aligned architectures. > > Still a pr with a proper backtrace would be nice. > Or does one exist already ? Not that I know. I did know exactly when this happens years ago. The backtrace as such will not help you as the panic happens much later than the cause. IIRC the basic problem was that the realignment code only fixes a single missalignment, while theres a chance for more then one. Verify nfs_realign in nfsserver and nfsclient to get an idea. If you are interested - I've found a (non-working) patch that I wrote for it, but the intention of it should be clear. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de