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

From: Davide Libenzi (davidel@xmailserver.org)
Date: Wed Jul 02 2003 - 18:04:01 EST


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/



This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:18 EST