From owner-freebsd-current@FreeBSD.ORG Fri Mar 2 20:03:24 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DA94616A400 for ; Fri, 2 Mar 2007 20:03:23 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 67F7A13C48E for ; Fri, 2 Mar 2007 20:03:23 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l22K3I9h079673; Fri, 2 Mar 2007 15:03:21 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Kris Kennaway Date: Fri, 2 Mar 2007 15:03:46 -0500 User-Agent: KMail/1.9.1 References: <20070225233333.GA80065@xor.obsecurity.org> <20070302185930.GA30505@xor.obsecurity.org> In-Reply-To: <20070302185930.GA30505@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703021503.46562.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 02 Mar 2007 15:03:21 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2702/Fri Mar 2 10:04:51 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: current@freebsd.org Subject: Re: Someone broke diskless booting X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2007 20:03:24 -0000 On Friday 02 March 2007 13:59, Kris Kennaway wrote: > It's not obvious to me how this happened, but binary searching narrows > down the cause to the following commit: > > jhb 2007-02-23 19:46:59 UTC > > FreeBSD src repository > > Modified files: > sys/kern kern_linker.c > Log: > Drop the global kernel linker lock while executing the sysinit's for a > freshly-loaded kernel module. To avoid various unload races, hide linker > files whose sysinit's are being run from userland so that they can't be > kldunloaded until after all the sysinit's have finished. > > Tested by: gallatin > > Revision Changes Path > 1.145 +21 -15 src/sys/kern/kern_linker.c > > Kris > > On Sun, Feb 25, 2007 at 06:33:33PM -0500, Kris Kennaway wrote: > > Some time in the past week or so someone committed a change to the > > kernel that broke diskless booting: > > > > Trying to mount root from nfs: > > fxp0: link state changed to UP > > NFS ROOT: 69.147.83.43:/a/nfs/7.dir1 > > Interface fxp0 IP-Address 69.147.83.96 Broadcast 69.147.83.127 > > mdmfs: mdconfig (attach) exited with error code 1 > > cp: /etc/gss/mech: Read-only file system > > cp: /etc/gss/qop: Read-only file system > > cp: utimes: /etc/gss: Read-only file system > > cp: /etc/ppp/ppp.conf: Read-only file system > > ... > > nfs server 69.147.83.43:/a/nfs/7.dir1: not responding > > nfs server 69.147.83.43:/a/nfs/7.dir1: not responding > > nfs server 69.147.83.43:/a/nfs/7.dir1: not responding > > > > Kris > > Do you have the later fix to kern/link_elf.c to mark the kernel as linked so modstat(2) and kldnext(2) work on the kernel again? If mdconfig tries to see if 'device md' is in the kernel and fails if not, then it the fix to kern/link_elf.c should fix it. -- John Baldwin