+ i386-fix-overflow-in-e820_all_mapped.patch added to -mm tree

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

 



The patch titled

     i386: Fix overflow in e820_all_mapped

has been added to the -mm tree.  Its filename is

     i386-fix-overflow-in-e820_all_mapped.patch

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


From: "Andi Kleen" <ak@xxxxxxx>

The 32bit version of e820_all_mapped() needs to use u64 to avoid overflows on
PAE systems.  Pointed out by Jan Beulich

Signed-off-by: Andi Kleen <ak@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/i386/kernel/setup.c |    2 +-
 include/asm-i386/e820.h  |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff -puN arch/i386/kernel/setup.c~i386-fix-overflow-in-e820_all_mapped arch/i386/kernel/setup.c
--- 25/arch/i386/kernel/setup.c~i386-fix-overflow-in-e820_all_mapped	Fri Apr 28 16:43:24 2006
+++ 25-akpm/arch/i386/kernel/setup.c	Fri Apr 28 16:43:24 2006
@@ -970,7 +970,7 @@ efi_memory_present_wrapper(unsigned long
   * not-overlapping, which is the case
   */
 int __init
-e820_all_mapped(unsigned long start, unsigned long end, unsigned type)
+e820_all_mapped(u64 start, u64 end, unsigned type)
 {
 	int i;
 	for (i = 0; i < e820.nr_map; i++) {
diff -puN include/asm-i386/e820.h~i386-fix-overflow-in-e820_all_mapped include/asm-i386/e820.h
--- 25/include/asm-i386/e820.h~i386-fix-overflow-in-e820_all_mapped	Fri Apr 28 16:43:24 2006
+++ 25-akpm/include/asm-i386/e820.h	Fri Apr 28 16:43:24 2006
@@ -36,8 +36,7 @@ struct e820map {
 
 extern struct e820map e820;
 
-extern int e820_all_mapped(unsigned long start, unsigned long end,
-			   unsigned type);
+extern int e820_all_mapped(u64 start, u64 end, unsigned type);
 
 #endif/*!__ASSEMBLY__*/
 
_

Patches currently in -mm which might be from ak@xxxxxxx are

origin.patch
x86_64-add-compat_sys_vmsplice-and-use-it-in.patch
i386-x86-64-fix-acpi-disabled-lapic-handling.patch
i386-fix-overflow-in-e820_all_mapped.patch
i386-remove-apic=-warning.patch
git-acpi.patch
git-agpgart.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