lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 6 Mar 2011 17:04:31 +0200
From:	"Haim D." <haimdaniel@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: x86_32 machine with 4G - possible wrong last_pfn value ?

Hi,
I'm running  a x86_32 bit 4G machine with 2.4.33 and 2.6.34, I've
noticed the difference between max_pfn values
2.4.33 shows 0x100000
2.4.34 shows  0xdffe0

The issue seems to be in
--- 2.6.34/arch/x86/kernel/e820.c       17 Jun 2010 12:00:26 -0000      1.1.2.1
+++ 2.6.34/arch/x86/kernel/e820.c       6 Mar 2011 14:56:44 -0000
@@ -869,7 +869,7 @@ static unsigned long __init e820_end_pfn
               start_pfn = ei->addr >> PAGE_SHIFT;
               end_pfn = (ei->addr + ei->size) >> PAGE_SHIFT;

-               if (start_pfn >= limit_pfn)
+               if (start_pfn > limit_pfn)
                       continue;
               if (end_pfn > limit_pfn) {
                       last_pfn = limit_pfn;

=======2.4=======
Mar  3 09:22:32 accelerator kernel: Linux version 2.4.33
(root@...md-ubuntu) (gcc version 3.2.3 20030502 (Red Hat Linux
3.2.3-53)) #3 Wed Mar 2 18:36:10 IST
Mar  6 13:27:17 localhost kernel: BIOS-provided physical RAM map:
Mar  6 13:27:17 localhost kernel:  BIOS-e820: 0000000000000000 -
000000000009fc00 (usable)
Mar  6 13:27:17 localhost kernel:  BIOS-e820: 000000000009fc00 -
00000000000a0000 (reserved)
Mar  6 13:27:17 localhost kernel:  BIOS-e820: 00000000000e0000 -
0000000000100000 (reserved)
Mar  6 13:27:17 localhost kernel:  BIOS-e820: 0000000000100000 -
00000000dffe0000 (usable)
Mar  6 13:27:17 localhost kernel:  BIOS-e820: 00000000dffe0000 -
00000000dffee000 (ACPI data)
Mar  6 13:27:17 localhost kernel:  BIOS-e820: 00000000dffee000 -
00000000e0000000 (ACPI NVS)
Mar  6 13:27:17 localhost kernel:  BIOS-e820: 00000000fee00000 -
00000000fee01000 (reserved)
Mar  6 13:27:17 localhost kernel:  BIOS-e820: 00000000ffb00000 -
0000000100000000 (reserved)
Mar  6 13:27:17 localhost kernel:  BIOS-e820: 0000000100000000 -
0000000120000000 (usable)
Mar  6 13:27:17 localhost kernel: Warning only 4GB will be used.
Mar  6 13:27:17 localhost kernel: Use a PAE enabled kernel.
Mar  6 13:27:17 localhost kernel: (find_max_low_pfn:1003) max_low_pfn to 753664
Mar  6 13:27:17 localhost kernel: 1152MB HIGHMEM available.
Mar  6 13:27:17 localhost kernel: 2944MB LOWMEM available.
Mar  6 13:27:17 localhost kernel: found SMP MP-table at 000ff780
Mar  6 13:27:17 localhost kernel: hm, page 000ff000 reserved twice.
Mar  6 13:27:17 localhost kernel: hm, page 00100000 reserved twice.
Mar  6 13:27:17 localhost kernel: hm, page 000fd000 reserved twice.
Mar  6 13:27:17 localhost kernel: hm, page 000fe000 reserved twice.
Mar  6 13:27:17 localhost kernel: On node 0 totalpages: 1048576

============2.6 ==========
Mar  6 08:19:06 localhost kernel: [    0.000000] Linux version
2.6.34.aos (root@...lder) (gcc version 4.1.2 20080704 (Red Hat
4.1.2-48)) #1 Thu Mar 3 17:54:29 IST 2011
Mar  6 08:19:06 localhost kernel: [    0.000000] BIOS-provided physical RAM map:
Mar  6 08:19:06 localhost kernel: [    0.000000]  BIOS-e820:
0000000000000000 - 000000000009fc00 (usable)
Mar  6 08:19:06 localhost kernel: [    0.000000]  BIOS-e820:
000000000009fc00 - 00000000000a0000 (reserved)
Mar  6 08:19:06 localhost kernel: [    0.000000]  BIOS-e820:
00000000000e0000 - 0000000000100000 (reserved)
Mar  6 08:19:06 localhost kernel: [    0.000000]  BIOS-e820:
0000000000100000 - 00000000dffe0000 (usable)
Mar  6 08:19:06 localhost kernel: [    0.000000]  BIOS-e820:
00000000dffe0000 - 00000000dffee000 (ACPI data)
Mar  6 08:19:06 localhost kernel: [    0.000000]  BIOS-e820:
00000000dffee000 - 00000000e0000000 (ACPI NVS)
Mar  6 08:19:06 localhost kernel: [    0.000000]  BIOS-e820:
00000000fee00000 - 00000000fee01000 (reserved)
Mar  6 08:19:06 localhost kernel: [    0.000000]  BIOS-e820:
00000000ffb00000 - 0000000100000000 (reserved)
Mar  6 08:19:06 localhost kernel: [    0.000000]  BIOS-e820:
0000000100000000 - 0000000120000000 (usable)
Mar  6 08:19:06 localhost kernel: [    0.000000] Notice: NX (Execute
Disable) protection cannot be enabled: non-PAE kernel!
Mar  6 08:19:06 localhost kernel: [    0.000000] DMI present.
Mar  6 08:19:06 localhost kernel: [    0.000000] AMI BIOS detected:
BIOS may corrupt low RAM, working around it.
Mar  6 08:19:06 localhost kernel: [    0.000000] e820 update range:
0000000000000000 - 0000000000010000 (usable) ==> (reserved)
Mar  6 08:19:06 localhost kernel: [    0.000000] e820 update range:
0000000000000000 - 0000000000001000 (usable) ==> (reserved)
Mar  6 08:19:06 localhost kernel: [    0.000000] e820 remove range:
00000000000a0000 - 0000000000100000 (usable)
Mar  6 08:19:06 localhost kernel: [    0.000000] last_pfn = 0xdffe0
max_arch_pfn = 0x100000

please advise,
-haim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ