From: Hanjie Lin Date: Fri, 26 Oct 2018 08:23:34 +0000 (+0800) Subject: rlimits: increase memlock limit [1/1] X-Git-Tag: khadas-vims-v0.9.6-release~1229 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e6c6118ecb73946b5901d15e110792c4e9791ad;p=platform%2Fkernel%2Flinux-amlogic.git rlimits: increase memlock limit [1/1] PD#SWPL-982 Problem: CtsHostsideNetworkTests module 22 fail netd can't create bpf map because of memlock limit Solution: increase memlock limit Verify: p212 Change-Id: Ia770fce7d826c639b171f8e8807425202de58320 Signed-off-by: Hanjie Lin --- diff --git a/include/uapi/linux/resource.h b/include/uapi/linux/resource.h index 36fb3b5..71eecd3 100644 --- a/include/uapi/linux/resource.h +++ b/include/uapi/linux/resource.h @@ -64,11 +64,15 @@ struct rlimit64 { */ #define _STK_LIM (8*1024*1024) +#ifdef CONFIG_AMLOGIC_MODIFY +#define MLOCK_LIMIT (8*1024*1024) +#else /* * GPG2 wants 64kB of mlocked memory, to make sure pass phrases * and other sensitive information are never written to disk. */ #define MLOCK_LIMIT ((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024) +#endif /* * Due to binary compatibility, the actual resource numbers