Skip to content

Commit ffe6902

Browse files
author
James Hogan
committed
asm-generic: remove _STK_LIM_MAX
_STK_LIM_MAX could be used to override the RLIMIT_STACK hard limit from an arch's include/uapi/asm-generic/resource.h file, but is no longer used since both parisc and metag removed the override. Therefore remove it entirely, setting the hard RLIMIT_STACK limit to RLIM_INFINITY directly in include/asm-generic/resource.h. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: linux-arch@vger.kernel.org Cc: Helge Deller <deller@gmx.de> Cc: John David Anglin <dave.anglin@bell.net>
1 parent c70458f commit ffe6902

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

‎include/asm-generic/resource.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[RLIMIT_CPU] = { RLIM_INFINITY, RLIM_INFINITY }, \
1313
[RLIMIT_FSIZE] = { RLIM_INFINITY, RLIM_INFINITY }, \
1414
[RLIMIT_DATA] = { RLIM_INFINITY, RLIM_INFINITY }, \
15-
[RLIMIT_STACK] = { _STK_LIM, _STK_LIM_MAX }, \
15+
[RLIMIT_STACK] = { _STK_LIM, RLIM_INFINITY }, \
1616
[RLIMIT_CORE] = { 0, RLIM_INFINITY }, \
1717
[RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \
1818
[RLIMIT_NPROC] = { 0, 0 }, \

‎include/uapi/asm-generic/resource.h‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,5 @@
5757
# define RLIM_INFINITY (~0UL)
5858
#endif
5959

60-
/*
61-
* RLIMIT_STACK default maximum - some architectures override it:
62-
*/
63-
#ifndef _STK_LIM_MAX
64-
# define _STK_LIM_MAX RLIM_INFINITY
65-
#endif
66-
6760

6861
#endif /* _UAPI_ASM_GENERIC_RESOURCE_H */

0 commit comments

Comments
 (0)