From: "Joel Soete" <jsoe0708@tiscali.be>
To: "James Bottomley" <James.Bottomley@steeleye.com>,
parisc-linux@parisc-linux.org
Subject: RE: [parisc-linux] [PATCH] fix arbitrary limits on stack size
Date: Mon, 14 Jul 2003 12:48:56 +0200 [thread overview]
Message-ID: <3F0BEA8300001164@ocpmta1.freegates.net> (raw)
In-Reply-To: <1058030142.2314.23.camel@fuzzy>
>One of the problems with the PA linux implementation is the upward
>growing stack. On most architectures, the virtual process space is
>divided into
>
>
>| unmapped | exec and heap | mappings and stack | TASK_UNMAPPED_BASE
>TASK_SIZE
>
>
>The mappings grow up from the start and the stack grows down from the
>end of the area. If they ever meet, the process segfaults.
>
>On palinux, we have an upward growing stack, so we have to size the
>stack so when it reaches its ulimit, it hits the top of the area. This
>means that large stack limits cut into the mappable area (and also that
>we have to impose a hard limit of 1GB on the stack size otherwise the
>user could remove the ability to map processes entirely by setting the
>stack limit too high).
>
>The proposal to fix this is to start the stack growing upwards from
>TASK_UNMAPPED_BASE and have the mappings grow downwards from TASK_SIZE.
>This should allow us to behave in exactly the same manner as x86 and not
>have an arbitrary limit on the stack size.
>
>The attached patch (against 2.5.70-pa1) does this, if you'd like to
>comment on it or try it out.
I don' t remember the historical reason of this choice but do you think it
is possible to back-port it into 2.4 (it will facilitate so much the merge
with upstream?)
Thanks in advance for advise,
Joel
------------------------------------------------------
Soldes Tiscali ADSL : 27,50 euros/mois jusque fin 2003.
On s'habitue vite à payer son ADSL moins cher!
Plus d'info? Cliquez ici... http://reg.tiscali.be/default.asp?lg=fr
next prev parent reply other threads:[~2003-07-14 10:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-12 17:15 [parisc-linux] [PATCH] fix arbitrary limits on stack size James Bottomley
2003-07-14 10:48 ` Joel Soete [this message]
2003-07-14 11:58 ` Matthew Wilcox
2003-07-14 19:47 ` James Bottomley
2003-07-16 17:30 ` Joel Soete
2003-07-16 17:36 ` Matthew Wilcox
2003-07-17 9:52 ` Joel Soete
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F0BEA8300001164@ocpmta1.freegates.net \
--to=jsoe0708@tiscali.be \
--cc=James.Bottomley@steeleye.com \
--cc=parisc-linux@parisc-linux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.