Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp676747img; Thu, 21 Mar 2019 06:46:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnheKRa1kI6OSSNCIKmXVh0PKxpZlRt4/LQEPZN+0NmoSgMSprjwOzANkfRlJwj3uqt8lc X-Received: by 2002:a17:902:56a:: with SMTP id 97mr3640354plf.320.1553176001349; Thu, 21 Mar 2019 06:46:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553176001; cv=none; d=google.com; s=arc-20160816; b=rPCcmJ5NT+psAbOcpkvy6u77Z/iCsWDVUMqOqklAjqxGeHxOL8nCDMk6NEs9BYoDHt VW6b2WYRaJqXL9HQyNFciZbSCdN0q4pNNmi8rWrUpwiuer5tcNF1yCDK9Kfr0iXGaLRK JJazuvSINxOuqekOSqjNF4TklMaM59ytumYF9kMg0LpnE70evXVQK/UdwUSl4q1SeUB+ 0HQaWpFuJSY9PAOKHhq2SiwjTTIvV8GYItTBxuvi6XSnL0sCnhbF4bRp9FpX/Vonr9Fz QdfgKhh+ocVsfa+9UNI80xwo5500+7ROAwNiyo/SlB9YCascQBwK5PFiE8X/1fSKps/w GJEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tPXTA3tExjHYvCl0U8yOGW77eTnvySzweHtIvbC5220=; b=OHML4eoe8azjKCgWnmaPUwScqxe4fZUc7gTZ1QG2n2xrD5Q5D8+Loa2sXDddRsacLV 6aVIbFc4RSuiDFkYUtSLdSnLTeTEsuLatKQhpZVfguCg9bLNKAtREngV7jltIeTxMBtI orDgjens7HoE7s4QNba2wDnZBvt20enNlyq4CXylEadDLdw61vb1JpMiAOdDwM6wsNzw zKZrV+xcMz0vmKhW2jwQpXsn8U83R04Nykt+DfeZajaw7VuwEgKj8qrNnesY+IyDNMpj 7hvlH5l5fn7aJWun4LAevAOVZvxM9Z0azfJGxKp2xXBO4vw0wIXCct4JSmNJEcMN8wgb 432g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si4586933plk.398.2019.03.21.06.46.26; Thu, 21 Mar 2019 06:46:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728595AbfCUNnn (ORCPT + 99 others); Thu, 21 Mar 2019 09:43:43 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:46058 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727829AbfCUNnl (ORCPT ); Thu, 21 Mar 2019 09:43:41 -0400 Received: by mail-yw1-f66.google.com with SMTP id j128so4747138ywg.12; Thu, 21 Mar 2019 06:43:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=tPXTA3tExjHYvCl0U8yOGW77eTnvySzweHtIvbC5220=; b=OyEWuiy1xHqsTxV0pslZuOu1930UBKZG875Hd6Qu1K/WllqMBmBnBdnkC9L2pZgUVh irqScVS951ENbHK6FbV1pJGs247D5ir8mxQukgXhVAT8p21pex3WlVihF/WM1qHSc7jp Jm3YPkh6CWKVWDq4aUM++i1LeU54Qdc036Hz6EVBq7DSshF3Tnr3lfKm3PpCiSSDeu3N efVCnPP4a0Mg57jUfLsIfcmAAlb93Zbef2N3YpM9HCt3wwX5pqPzjzDtULoip4txLA1l FRxZVmNeoa858zmeZOp6essQVrFZEF6j2sMUaI8IX/cj9gncyRQn3cSAPwc7nO7w+DvT QzBg== X-Gm-Message-State: APjAAAX9XrlrbPfelrM24WGsZ7uEWlFmSHx6NQ9O7LQOvEM+k26qVf/V b+PbtmM0EyJlNQuwV9E/HTyz06I+1Jk= X-Received: by 2002:a81:2748:: with SMTP id n69mr3162674ywn.70.1553175820774; Thu, 21 Mar 2019 06:43:40 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id v77sm3451008ywv.79.2019.03.21.06.43.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2019 06:43:39 -0700 (PDT) Received: by 42.do-not-panic.com (sSMTP sendmail emulation); Thu, 21 Mar 2019 13:43:35 +0000 Date: Thu, 21 Mar 2019 13:43:35 +0000 From: Luis Chamberlain To: Andrea Arcangeli Cc: "Dr. David Alan Gilbert" , Andrew Morton , Peter Xu , linux-kernel@vger.kernel.org, Paolo Bonzini , Hugh Dickins , Maxime Coquelin , Maya Gokhale , Jerome Glisse , Pavel Emelyanov , Johannes Weiner , Martin Cracauer , Denis Plotnikov , linux-mm@kvack.org, Marty McFadden , Mike Kravetz , Mike Rapoport , Kees Cook , Mel Gorman , "Kirill A . Shutemov" , linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 1/1] userfaultfd/sysctl: add vm.unprivileged_userfaultfd Message-ID: <20190321134335.GB1146@42.do-not-panic.com> References: <20190319030722.12441-1-peterx@redhat.com> <20190319030722.12441-2-peterx@redhat.com> <20190319110236.b6169d6b469a587a852c7e09@linux-foundation.org> <20190319182822.GK2727@work-vm> <20190320190112.GD23793@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190320190112.GD23793@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 20, 2019 at 03:01:12PM -0400, Andrea Arcangeli wrote: > but > that would be better be achieved through SECCOMP and not globally.'. That begs the question why not use seccomp for this? What if everyone decided to add a knob for all syscalls to do the same? For the commit log, why is it OK then to justify a knob for this syscall? Luis