Re: [PATCH v2 1/1] userfaultfd/sysctl: add vm.unprivileged_userfaultfd

From: Andrew Morton
Date: Tue Mar 19 2019 - 14:02:41 EST


On Tue, 19 Mar 2019 11:07:22 +0800 Peter Xu <peterx@xxxxxxxxxx> wrote:

> Add a global sysctl knob "vm.unprivileged_userfaultfd" to control
> whether userfaultfd is allowed by unprivileged users. When this is
> set to zero, only privileged users (root user, or users with the
> CAP_SYS_PTRACE capability) will be able to use the userfaultfd
> syscalls.

Please send along a full description of why you believe Linux needs
this feature, for me to add to the changelog. What is the benefit to
our users? How will it be used?

etcetera. As it was presented I'm seeing no justification for adding
the patch!