Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Sep 2005 17:39:41 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        Pawel Worach <pawel.worach@gmail.com>
Cc:        current@freebsd.org, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: [releng_6] mpt(4) Memory modified after free panic
Message-ID:  <20050927213941.GA30040@xor.obsecurity.org>
In-Reply-To: <d227e09e05092714314174d7c7@mail.gmail.com>
References:  <d227e09e0509261455347a9aca@mail.gmail.com> <20050927003401.GE72460@xor.obsecurity.org> <d227e09e05092714314174d7c7@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <kris@obsecurity.org> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050927213941.GA30040>