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: <20111229155836.GB3516@google.com>
Date:	Thu, 29 Dec 2011 07:58:36 -0800
From:	Tejun Heo <tj@...nel.org>
To:	Michal Simek <monstr@...str.eu>
Cc:	Andrew Morton <akpm@...ux-foundation.org>,
	Yinghai Lu <yinghai@...nel.org>,
	Benjamin Herrenschmidt <benh@...nel.crashing.org>,
	Sam Ravnborg <sam@...nborg.org>, linux-mm@...ck.org,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: memblock and bootmem problems if start + size = 4GB

Hello,

On Tue, Dec 20, 2011 at 10:19:18AM +0100, Michal Simek wrote:
> >Yeah, that's an inherent problem in using [) ranges but I think
> >chopping off the last page probably is simpler and more robust
> >solution.  Currently, memblock_add_region() would simply ignore if
> >address range overflows but making it just ignore the last page is
> >several lines of addition.  Wouldn't that be effective enough while
> >staying very simple?
> 
> The main problem is with PFN_DOWN/UP macros and it is in __init section.
> The result will be definitely u32 type (for 32bit archs) anyway and seems to me
> better solution than ignoring the last page.

Other than being able to use one more 4k page, is there any other
benefit?  Maybe others had different experiences but in my exprience
trying to extend range coverages - be it stack top/end pointers,
address ranges or whatnot - using [] ranges or special flag usually
ended up adding complexity while adding almost nothing tangible.  On
extreme cases, people even carry separate valid flag to use %NULL as
valid address, which is pretty silly, IMHO.  So, unless there's some
benefit that I'm missing, I still think it's an overkill.  It's more
complex and difficult to test and verify.  Why bother for a single
page?

Thanks.

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