alpha stack problem: resource.h

Allan Frank (allan@ostenfeld.dk)
Thu, 26 Apr 2001 08:59:12 +0200


Hi

Yesterday I installed 2.2.19 one of out alpha servers and I found that it
still has the same bug that we patched 2.2.14 to get rid of. In the 2.4 line
it seems to be fixed.
The bug has the affect that a unprev. user cannot increase the stack limit
even if he/she is allowed to.

This mailing list item fom Jun 12 2000 describes the problem:

http://www.uwsg.iu.edu/hypermail/linux/alpha/0006.1/0003.html

<snippit from page>

It is because wrong value in the
/usr/src/linux/include/asm-alpha/resource.h

The INIT_RLIMITS defined the RLIMIT_STACK as

{_STK_LIM, _STK_LIM}

The latter defines hard limit of the stack.
When I pointed the problem, only Intel and PPC people corrected it.
You should change the value as

{_STK_LIM, LONG_MAX}

and recompile your kernel.
It will resolve your problem.

</snippit from page>

I can report that is does resolve the problem here. Is this a bug or is the
kernel supposed to work that way?

/Allan
Outlook stinks.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/