Skip to content

Commit c70458f

Browse files
author
James Hogan
committed
metag: Remove _STK_LIM_MAX override
Meta overrode _STK_LIM_MAX (the default RLIMIT_STACK hard limit) to 256MB, apparently in an attempt to prevent setup_arg_pages's STACK_GROWSUP code from choosing the maximum stack size of 1GB, which is far too large for Meta's limited virtual address space and hits a BUG_ON (stack_top is usually 0x3ffff000). However the commit "metag: Reduce maximum stack size to 256MB" reduces the absolute stack size limit to a safe value for metag. This allows the default _STK_LIM_MAX override to be removed, bringing the default behaviour in line with all other architectures. Parisc in particular recently removed their override of _STK_LIMT_MAX in commit e0d8898 (parisc: remove _STK_LIM_MAX override) since it subtly affects stack allocation semantics in userland. Meta's uapi/asm/resource.h can now be removed and switch to using generic-y. Suggested-by: Helge Deller <deller@gmx.de> Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: linux-metag@vger.kernel.org Cc: John David Anglin <dave.anglin@bell.net>
1 parent 042d27a commit c70458f

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

‎arch/metag/include/uapi/asm/Kbuild‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ include include/uapi/asm-generic/Kbuild.asm
44
header-y += byteorder.h
55
header-y += ech.h
66
header-y += ptrace.h
7-
header-y += resource.h
87
header-y += sigcontext.h
98
header-y += siginfo.h
109
header-y += swab.h
1110
header-y += unistd.h
1211

1312
generic-y += mman.h
13+
generic-y += resource.h
1414
generic-y += setup.h

‎arch/metag/include/uapi/asm/resource.h‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)