From a04785a61d4d1cfb3cbd7530f32653663302bd65 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 28 May 2022 03:47:43 +0000 Subject: [PATCH] oops, wrong value in previous commit --- sys/kern/kern_resource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index a7e6fe1f828..0c69d717017 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_resource.c,v 1.73 2022/05/28 03:21:17 deraadt Exp $ */ +/* $OpenBSD: kern_resource.c,v 1.74 2022/05/28 03:47:43 deraadt Exp $ */ /* $NetBSD: kern_resource.c,v 1.38 1996/10/23 07:19:38 matthias Exp $ */ /*- @@ -580,7 +580,7 @@ lim_startup(struct plimit *limit0) limit0->pl_rlimit[RLIMIT_NPROC].rlim_cur = MAXUPRC; lim = ptoa(uvmexp.free); limit0->pl_rlimit[RLIMIT_RSS].rlim_max = lim; - lim = ptoa(64*128); /* Default to very low */ + lim = ptoa(64*1024); /* Default to very low */ limit0->pl_rlimit[RLIMIT_MEMLOCK].rlim_max = lim; limit0->pl_rlimit[RLIMIT_MEMLOCK].rlim_cur = lim / 3; refcnt_init(&limit0->pl_refcnt); -- 2.20.1