From owner-freebsd-current@FreeBSD.ORG Fri Mar 2 18:59:31 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 743A916A515; Fri, 2 Mar 2007 18:59:31 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 6281213C467; Fri, 2 Mar 2007 18:59:31 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 43ACB1A4D80; Fri, 2 Mar 2007 10:59:31 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 9015951C41; Fri, 2 Mar 2007 13:59:30 -0500 (EST) Date: Fri, 2 Mar 2007 13:59:30 -0500 From: Kris Kennaway To: Kris Kennaway , jhb@FreeBSD.org Message-ID: <20070302185930.GA30505@xor.obsecurity.org> References: <20070225233333.GA80065@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DocE+STaALJfprDB" Content-Disposition: inline In-Reply-To: <20070225233333.GA80065@xor.obsecurity.org> User-Agent: Mutt/1.4.2.2i 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 18:59:31 -0000 --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >=20 > 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 >=20 > Kris >=20 --DocE+STaALJfprDB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF6HQSWry0BWjoQKURArTEAJ9J4FOwpGpma+rmcrnBPbEme83TgACgm+5n L6yoWfwa/xCFY0/6IYJmbzI= =U6Ef -----END PGP SIGNATURE----- --DocE+STaALJfprDB--