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-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20061031150612.GA14272@srv.junsun.net>
Date:	Tue, 31 Oct 2006 07:06:12 -0800
From:	Jun Sun <jsun@...sun.net>
To:	Paul Mundt <lethal@...ux-sh.org>, linux-kernel@...r.kernel.org
Subject: Re: reserve memory in low physical address - possible?

On Tue, Oct 31, 2006 at 05:12:39PM +0900, Paul Mundt wrote:
> On Mon, Oct 30, 2006 at 11:22:03PM -0800, Jun Sun wrote:
> > I understand it is possible to reserve some memory at the end by
> > specifying "mem=xxxM" option in kernel command line.  I looked into
> > "memmap=xxxM" option but it appears not helpful for what I want.
> > 
> memmap takes multiple arguments, including the start address for the
> memory map. You could also bump min_low_pfn manually if memmap= isn't
> suitable for you, something like:
> 
> 	magic_space = PFN_UP(init_pg_tables_end);
> 	min_low_pfn = magic_space + magic_size;
> 
> (assuming magic_size is rounded up already), should work fine. Though
> memmap= already takes care of most of this for you, could you explain why
> it's unsuitable?

That is fair question. I got that conclusion by a quick test with
"memmap=" and kernel did not boot. :)

Now think about it, it could be because the loader  (or the real-mode
part of kernel) has not been modified to deal with the initial gap.
Can someone confirm that and give some hints on how to do this?

Thanks.

Jun
-
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