From owner-freebsd-current@FreeBSD.ORG Tue Sep 27 21:39:46 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C221516A41F for ; Tue, 27 Sep 2005 21:39:46 +0000 (GMT) (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 50ACB43D73 for ; Tue, 27 Sep 2005 21:39:43 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [70.30.70.180]) by elvis.mu.org (Postfix) with ESMTP id 292C21A3C19; Tue, 27 Sep 2005 14:39:43 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 110AD53D84; Tue, 27 Sep 2005 17:39:42 -0400 (EDT) Date: Tue, 27 Sep 2005 17:39:41 -0400 From: Kris Kennaway To: Pawel Worach Message-ID: <20050927213941.GA30040@xor.obsecurity.org> References: <20050927003401.GE72460@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: current@freebsd.org, Kris Kennaway Subject: Re: [releng_6] mpt(4) Memory modified after free panic 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: Tue, 27 Sep 2005 21:39:46 -0000 --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 27, 2005 at 11:31:03PM +0200, Pawel Worach wrote: > On 9/27/05, Kris Kennaway wrote: > > On Mon, Sep 26, 2005 at 11:55:53PM +0200, Pawel Worach wrote: > > > Trying to use a mpt controller with only one disk attached so it's not > > > possible to configure a RAID-1 volume. > > > Trying to boot 6.0-BETA1 install cd results in this panic. Should it > > > possible to use a single disk behind an mpt(4) with the updated drive= r? This > > > configuration works fine on 5.4. > > > > You should retry with 6.0-BETA5 - dozens of bugs have been fixed since > > then. If it persists, you should set up DEBUG_MEMGUARD to watch the > > M_BUS malloc type..this requires some minor source file editing and a > > kernel recompile (you can build it on e.g. 5.4). >=20 > False alarm, BETA5 with WITNESS and INVARIANTS re-enabled works just fine. > BETA1 was the only thing I had handy the first time and since mpt(4) > was unchanged I thought it would still be broken, I'll try to think > less next time :) > For future reference, how do I get hold of the M_BUS malloc type in > kern_malloc.c ? grep for the MALLOC_DEFINE in some other file and remove the 'static' keyword. You may also need to MALLOC_DECLARE() it in kern_malloc.c if it is not done so in a header already included in that file. Kris --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDObwdWry0BWjoQKURApOYAJ9beR+6px/VSIBPChmbyBs8Dl2mewCgkqk3 uePtBkKVRNqRPE8zeMigVAA= =tcoh -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN--