From: ebiederm@xmission.com (Eric W. Biederman) Subject: Re: [PATCH review 3/6] userns: Recommend use of memory control groups. Date: Mon, 28 Jan 2013 00:14:30 -0800 Message-ID: <87k3qxu3kp.fsf@xmission.com> References: <87ehh8it9s.fsf@xmission.com> <87txq4hedl.fsf@xmission.com> <51062AB5.9060203@parallels.com> <51062DA8.1060804@parallels.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , Linux Containers , To: Lord Glauber Costa of Sealand Return-path: Received: from out02.mta.xmission.com ([166.70.13.232]:42671 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751260Ab3A1IOi (ORCPT ); Mon, 28 Jan 2013 03:14:38 -0500 In-Reply-To: <51062DA8.1060804@parallels.com> (Lord Glauber Costa of Sealand's message of "Mon, 28 Jan 2013 11:50:00 +0400") Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Lord Glauber Costa of Sealand writes: > I just saw in a later patch of yours that your concern here seems not > limited to backed ram by tmpfs, but with things like the internal > structures for userns , to avoid patterns in the form: 'for (;;) > unshare(...)' > > Humm, it does seem sensible. The kernel memory controller aims to > prevent exactly things like that. But they all exist already before > userns: there are destructive patterns like that with sockets, dentries, > processes, and pretty much every other resource in the kernel. So > Although the recommendation per-se makes sense, I am wondering if it is > worth it to mention anything in the user_ns config? The config might be overkill. However I have already gotten bug reports about there being no limits. So someone needs to stop and connect the dots and say: "If you care this is what you can do." Especially since the familiar old limits that can kind of sort of prevent memory abuses are not generally available with user namespaces. Eric