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: <49A39489.3090202@zytor.com>
Date:	Mon, 23 Feb 2009 22:32:41 -0800
From:	"H. Peter Anvin" <hpa@...or.com>
To:	Parav Pandit <paravpandit@...oo.com>
CC:	Linux kernel <linux-kernel@...r.kernel.org>
Subject: Re: virtually and physically (page) aligned allocation

Parav Pandit wrote:
> Hi,
> 
> Can user space application allocate memory which is virtually and physically aligned to the system's page boundary in the Linux 2.6.x?
> Such as using posix_memalign().
> 
> In other way,
> If user space application allocates memory which is aligned to page boundary for say 4 pages using posix_memalign(), will is ensure that it corresponds to exactly 4 physical pages in kernel which can be pinned down?
> 

You can use hugetlbfs to allocate a 2 MB page, otherwise no.

	-hpa

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