+ 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 |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -puN arch/i386/kernel/setup.c~i386-fix-overflow-in-e820_all_mapped arch/i386/kernel/setup.c
--- devel/arch/i386/kernel/setup.c~i386-fix-overflow-in-e820_all_mapped	2006-04-29 08:36:06.000000000 -0700
+++ devel-akpm/arch/i386/kernel/setup.c	2006-04-29 08:36:06.000000000 -0700
@@ -970,8 +970,10 @@ 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(unsigned long s, unsigned long e, unsigned type)
 {
+	u64 start = s;
+	u64 end = e;
 	int i;
 	for (i = 0; i < e820.nr_map; i++) {
 		struct e820entry *ei = &e820.map[i];
_

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