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
| ||
|
Date: Tue, 12 Jan 2010 11:39:03 +0900 From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com> To: Wu Fengguang <fengguang.wu@...el.com> Cc: "Zheng, Shaohui" <shaohui.zheng@...el.com>, "linux-mm@...ck.org" <linux-mm@...ck.org>, "akpm@...ux-foundation.org" <akpm@...ux-foundation.org>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "ak@...ux.intel.com" <ak@...ux.intel.com>, "y-goto@...fujitsu.com" <y-goto@...fujitsu.com>, Dave Hansen <haveblue@...ibm.com>, "x86@...nel.org" <x86@...nel.org> Subject: Re: [PATCH - resend] Memory-Hotplug: Fix the bug on interface /dev/mem for 64-bit kernel(v1) On Tue, 12 Jan 2010 10:33:08 +0800 Wu Fengguang <fengguang.wu@...el.com> wrote: > Sure, here it is :) > --- > x86: use the generic page_is_ram() > > The generic resource based page_is_ram() works better with memory > hotplug/hotremove. So switch the x86 e820map based code to it. > > CC: Andi Kleen <andi@...stfloor.org> > CC: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com> > Signed-off-by: Wu Fengguang <fengguang.wu@...el.com> Ack. > +#ifdef CONFIG_X86 > + /* > + * A special case is the first 4Kb of memory; > + * This is a BIOS owned area, not kernel ram, but generally > + * not listed as such in the E820 table. > + */ > + if (pfn == 0) > + return 0; > + > + /* > + * Second special case: Some BIOSen report the PC BIOS > + * area (640->1Mb) as ram even though it is not. > + */ > + if (pfn >= (BIOS_BEGIN >> PAGE_SHIFT) && > + pfn < (BIOS_END >> PAGE_SHIFT)) > + return 0; > +#endif I'm glad if this part is sorted out in clean way ;) Thanks, -Kame -- 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