Re: Memory corruption & SCSI in 2.6.15

From: Linus Torvalds
Date: Mon Dec 12 2005 - 12:17:40 EST




On Mon, 12 Dec 2005, Benjamin Herrenschmidt wrote:
>
> Current -git as of today (that is 2.6.15-rc5 + the batch of fixes Linus
> pulled after his return) was dying in weird ways for me on POWER5. I had
> the good idea to activate slab debugging, and I now see it detecting
> slab corruption as soon as the IPR driver initializes.
>
> Since I remember seeing a discussion somewhere on a list between Brian
> King and Jens Axboe about use-after-free problems in SCSI and possible
> other niceties of that sort, I though it might be related...
>
> Anything I can do to help track this down ?

If it's easily repeatable, doing a "git bisect" to see when it starts
happening is the obvious big sledge-hammer thing to try. Even if you don't
bisect all the way, just narrowing it down a bit more might help.

Also, enabling DEBUG_PAGEALLOC might help, but that's not available on
powerpc.

There's a raid1 use-after-free bugfix that I just merged and pushed out,
but I doubt that one is relevant. But you might try to update.

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/