From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f198.google.com (mail-pf0-f198.google.com [209.85.192.198]) by kanga.kvack.org (Postfix) with ESMTP id 832946B0006 for ; Mon, 21 May 2018 19:02:50 -0400 (EDT) Received: by mail-pf0-f198.google.com with SMTP id s16-v6so10066730pfm.1 for ; Mon, 21 May 2018 16:02:50 -0700 (PDT) Received: from mga12.intel.com (mga12.intel.com. [192.55.52.136]) by mx.google.com with ESMTPS id b9-v6si5547131plk.111.2018.05.21.16.02.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 May 2018 16:02:49 -0700 (PDT) Subject: Re: Why do we let munmap fail? References: <20eeca79-0813-a921-8b86-4c2a0c98a1a1@intel.com> From: Dave Hansen Message-ID: <2e7fb27e-90b4-38d2-8ae1-d575d62c5332@intel.com> Date: Mon, 21 May 2018 16:02:47 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org List-ID: To: Daniel Colascione Cc: linux-mm@kvack.org, Tim Murray , Minchan Kim On 05/21/2018 03:54 PM, Daniel Colascione wrote: >> There are also certainly denial-of-service concerns if you allow >> arbitrary numbers of VMAs. The rbtree, for instance, is O(log(n)), but >> I 'd be willing to be there are plenty of things that fall over if you >> let the ~65k limit get 10x or 100x larger. > Sure. I'm receptive to the idea of having *some* VMA limit. I just think > it's unacceptable let deallocation routines fail. If you have a resource limit and deallocation consumes resources, you *eventually* have to fail a deallocation. Right?