mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 09:24:37 +07:00
ffe6902b66
_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>
31 lines
1.0 KiB
C
31 lines
1.0 KiB
C
#ifndef _ASM_GENERIC_RESOURCE_H
|
|
#define _ASM_GENERIC_RESOURCE_H
|
|
|
|
#include <uapi/asm-generic/resource.h>
|
|
|
|
|
|
/*
|
|
* boot-time rlimit defaults for the init task:
|
|
*/
|
|
#define INIT_RLIMITS \
|
|
{ \
|
|
[RLIMIT_CPU] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
[RLIMIT_FSIZE] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
[RLIMIT_DATA] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
[RLIMIT_STACK] = { _STK_LIM, RLIM_INFINITY }, \
|
|
[RLIMIT_CORE] = { 0, RLIM_INFINITY }, \
|
|
[RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
[RLIMIT_NPROC] = { 0, 0 }, \
|
|
[RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \
|
|
[RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \
|
|
[RLIMIT_AS] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
[RLIMIT_LOCKS] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
[RLIMIT_SIGPENDING] = { 0, 0 }, \
|
|
[RLIMIT_MSGQUEUE] = { MQ_BYTES_MAX, MQ_BYTES_MAX }, \
|
|
[RLIMIT_NICE] = { 0, 0 }, \
|
|
[RLIMIT_RTPRIO] = { 0, 0 }, \
|
|
[RLIMIT_RTTIME] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
}
|
|
|
|
#endif
|