Re: [PATCH] x86_64: Implement personality ADDR_LIMIT_32BIT

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Monday, October 6, 2008 - 1:42 am

On Mon, Oct 06, 2008 at 11:17:23AM +0300, Kirill A. Shutemov wrote:

This was 2.6.26 (+ some irrelevant patches)


Yes. For 64bit processes you use the method described below for mmap.


MAP_32BIT is just a short form for this, it's internally the same.
But it's actually MAP_31BIT. If you want the full 4GB you should not use it.


"32 bit mode" really has to be set at exec time, otherwise it is not
(e.g. the stack will be beyond).

And personality() is not thread local/safe, so it's not a particularly
good interface to use later. Per system call switches are preferable
and more flexible.

-Andi
-- 
ak@linux.intel.com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86_64: Implement personality ADDR_LIMIT_32BIT, Kirill A. Shutemov, (Fri Oct 3, 12:04 am)
Re: [PATCH] x86_64: Implement personality ADDR_LIMIT_32BIT, Kirill A. Shutemov, (Fri Oct 3, 2:25 am)
[PATCH] x86_64: Implement personality ADDR_LIMIT_32BIT, Kirill A. Shutemov, (Fri Oct 3, 2:33 am)
Re: [PATCH] x86_64: Implement personality ADDR_LIMIT_32BIT, Arjan van de Ven, (Fri Oct 3, 5:44 am)
Re: [PATCH] x86_64: Implement personality ADDR_LIMIT_32BIT, Kirill A. Shutemov, (Fri Oct 3, 5:58 am)
Re: [PATCH] x86_64: Implement personality ADDR_LIMIT_32BIT, Kirill A. Shutemov, (Mon Oct 6, 1:17 am)
Re: [PATCH] x86_64: Implement personality ADDR_LIMIT_32BIT, Andi Kleen, (Mon Oct 6, 1:42 am)
Re: [PATCH] x86_64: Implement personality ADDR_LIMIT_32BIT, Kirill A. Shutemov, (Mon Oct 6, 2:17 am)
Re: [PATCH] x86_64: Implement personality ADDR_LIMIT_32BIT, Kirill A. Shutemov, (Mon Oct 6, 3:12 am)
[PATCH, RFC] shmat: introduce flag SHM_MAP_HINT, Kirill A. Shutemov, (Mon Oct 6, 7:37 am)
Re: [PATCH, RFC] shmat: introduce flag SHM_MAP_HINT, Andi Kleen, (Mon Oct 6, 12:29 pm)
Re: [PATCH, RFC] shmat: introduce flag SHM_MAP_HINT, Kirill A. Shutemov, (Mon Oct 6, 11:57 pm)
[PATCH, RFC, v2] shmat: introduce flag SHM_MAP_HINT, Kirill A. Shutemov, (Mon Oct 6, 11:57 pm)
Re: [PATCH, RFC, v2] shmat: introduce flag SHM_MAP_HINT, Kirill A. Shutemov, (Tue Oct 7, 3:09 am)
Re: [PATCH, RFC] shmat: introduce flag SHM_MAP_HINT, KOSAKI Motohiro, (Tue Oct 7, 4:08 am)
Re: [PATCH, RFC] shmat: introduce flag SHM_MAP_HINT, Andi Kleen, (Tue Oct 7, 4:21 am)
Re: [PATCH, RFC] shmat: introduce flag SHM_MAP_HINT, Kirill A. Shutemov, (Tue Oct 7, 4:21 am)
Re: [PATCH, RFC, v2] shmat: introduce flag SHM_MAP_HINT, Kirill A. Shutemov, (Tue Oct 7, 4:23 am)
Re: [PATCH, RFC] shmat: introduce flag SHM_MAP_HINT, Kirill A. Shutemov, (Tue Oct 7, 4:24 am)
Re: [PATCH, RFC] shmat: introduce flag SHM_MAP_HINT, KOSAKI Motohiro, (Tue Oct 7, 4:26 am)
Re: [PATCH, RFC] shmat: introduce flag SHM_MAP_HINT, Kirill A. Shutemov, (Tue Oct 7, 4:30 am)
Re: [PATCH, RFC] shmat: introduce flag SHM_MAP_HINT, Andi Kleen, (Tue Oct 7, 4:50 am)
Re: [PATCH, RFC] shmat: introduce flag SHM_MAP_HINT, Andi Kleen, (Tue Oct 7, 6:14 am)