Date: Thu, 17 May 2012 01:54:25 -0400 From: Christoph Hellwig <hch@infradead.org> To: Eitan Adler <lists@eitanadler.com> Cc: Dag-Erling Sm??rgrav <des@des.no>, Adrian Chadd <adrian@freebsd.org>, d@delphij.net, freebsd-arch@freebsd.org Subject: Re: Allow small amount of memory be mlock()'ed by unprivileged process? Message-ID: <20120517055425.GA802@infradead.org> In-Reply-To: <CAF6rxgmDW21aPJ5Mp6Tbk1z02ivw4UPhSaNEX%2BWiu7O0v13skA@mail.gmail.com> References: <4FAC3EAB.6050303@delphij.net> <861umkurt8.fsf@ds4.des.no> <CAJ-VmokY%2Bpgcq999NHShbq-3rK3=oeWT2WY7NmTvVdXOHZJhdg@mail.gmail.com> <CAF6rxgmDW21aPJ5Mp6Tbk1z02ivw4UPhSaNEX%2BWiu7O0v13skA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 16, 2012 at 06:36:18PM -0400, Eitan Adler wrote: > On 16 May 2012 18:32, Adrian Chadd <adrian@freebsd.org> wrote: > > .. what's to stop a fork() bomb from grabbing all pages? > > <quote>+ possibly limiting the number of pages per user, ?? la > maxprocperuid.</quote> Linux has added a RLIMIT_MEMLOCK opcode for setrlimit that allows controlling the amount of memory users can lock down, with a default of a single page for unprivilegued processes.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120517055425.GA802>