]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
slob: fix memory corruption
authorNick Piggin <npiggin@suse.de>
Thu, 15 Nov 2007 11:32:04 +0000 (12:32 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 15 Nov 2007 16:36:27 +0000 (08:36 -0800)
commitd32ddd8f20e7d7a49c45c337c2079be03c77dc41
treea56dae80e045a8928bb8da74e6edb3874d297ee2
parenta3474224e6a01924be40a8255636ea5522c1023a
slob: fix memory corruption

Previously, it would be possible for prev->next to point to
&free_slob_pages, and thus we would try to move a list onto itself, and
bad things would happen.

It seems a bit hairy to be doing list operations with the list marker as
an entry, rather than a head, but...

this resolves the following crash:

  http://bugzilla.kernel.org/show_bug.cgi?id=9379

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slob.c