memory corruption in recent -current?

John-Mark Gurney gurney_j at
Thu Jan 26 00:21:20 PST 2006

John-Mark Gurney wrote this message on Sun, Jan 22, 2006 at 11:41 -0800:
> I've been working on a BT878 audio driver (first crack is available
> in p4), and with a recent -current (you can sync to my -current as
> it's the one in my workspace, jmg_carbon), I get memory corruption:
> Memory modified after free 0xc2fb1050(12) val=1c @ 0xc2fb1050
> panic: Most recently used by ioctlops
> or:
> Memory modified after free 0xc2ba2b90(12) val=1c @ 0xc2ba2b90
> panic: Most recently used by Unitno
> I went back to a kerenl that is pre-Dec 21st, and I haven't had a single
> panic yet.  I will admit I haven't done a builtworld between the these
> two (the last buildworld matched with the pre-Dec 21st kernel)...  I am
> using kld modules for my testing, so I was building modules against an
> old world, but I don't know of anything that has changed that would
> cause problems..

Well, turns out to be a bug in my driver.. the allocation scheme must
of changed causing it more likely to hit the buffer I had overwritten..

  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."

More information about the freebsd-current mailing list