[patch] Potential inf.loop in bootmem.c ...

Davide Libenzi (davidel@xmailserver.org)
Wed, 2 Jul 2003 16:04:01 -0700 (PDT)


If __alloc_bootmem_core() fails with a goal and unaligned node_boot_start
it'll loop fovever.

- Davide

--- linux-2.5.73/mm/bootmem.c.orig 2003-07-02 14:55:47.000000000 -0700
+++ linux-2.5.73/mm/bootmem.c 2003-07-02 15:31:44.000000000 -0700
@@ -202,7 +201,7 @@
;
}

- if (preferred) {
+ if (preferred > offset) {
preferred = offset;
goto restart_scan;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/