Re: [PATCH v2] mm: enable RLIMIT_DATA by default with workaround for valgrind

From: Linus Torvalds
Date: Sun Apr 24 2016 - 19:03:12 EST


On Sun, Apr 24, 2016 at 1:29 PM, Konstantin Khlebnikov <koct9i@xxxxxxxxx> wrote:
>
> This patch checks current usage also against rlim_max if rlim_cur is zero.
> This is safe because task anyway can increase rlim_cur up to rlim_max.
> Size of brk is still checked against rlim_cur, so this part is completely
> compatible - zero rlim_cur forbids brk() but allows private mmap().

Ack. And I'll assume this comes through -mm like the original patches did.

Linus