+ x86_64-fix-partial-page-check-to-ensure-unusable-memory-is-not-being-marked-usable.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     x86_64: fix partial page check to ensure unusable memory is not being marked usable.
has been added to the -mm tree.  Its filename is
     x86_64-fix-partial-page-check-to-ensure-unusable-memory-is-not-being-marked-usable.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: x86_64: fix partial page check to ensure unusable memory is not being marked usable.
From: "Aaron Durbin" <adurbin@xxxxxxxxxx>

Fix partial page check in e820_register_active_regions to ensure partial
pages are not being marked as active in the memory pool.

This was causing a machine to reboot w/ an area in the e820 that was less
than the page size because the upper address was being use to mark a hole as
active in the memory pool.

Signed-off-by: Aaron Durbin <adurbin@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/x86_64/kernel/e820.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN arch/x86_64/kernel/e820.c~x86_64-fix-partial-page-check-to-ensure-unusable-memory-is-not-being-marked-usable arch/x86_64/kernel/e820.c
--- a/arch/x86_64/kernel/e820.c~x86_64-fix-partial-page-check-to-ensure-unusable-memory-is-not-being-marked-usable
+++ a/arch/x86_64/kernel/e820.c
@@ -278,7 +278,7 @@ e820_register_active_regions(int nid, un
 								>> PAGE_SHIFT;
 
 		/* Skip map entries smaller than a page */
-		if (ei_startpfn > ei_endpfn)
+		if (ei_startpfn >= ei_endpfn)
 			continue;
 
 		/* Check if end_pfn_map should be updated */
_

Patches currently in -mm which might be from adurbin@xxxxxxxxxx are

x86_64-update-mmconfig-resource-insertion-to-check-against-e820-map.patch
x86_64-fix-partial-page-check-to-ensure-unusable-memory-is-not-being-marked-usable.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux