From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20205C63697 for ; Mon, 23 Nov 2020 20:11:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6E46520721 for ; Mon, 23 Nov 2020 20:11:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="s0Z9tEU4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6E46520721 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E4C7B6B005D; Mon, 23 Nov 2020 15:11:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DFB626B006E; Mon, 23 Nov 2020 15:11:12 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CA8196B0073; Mon, 23 Nov 2020 15:11:12 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0167.hostedemail.com [216.40.44.167]) by kanga.kvack.org (Postfix) with ESMTP id 9959F6B005D for ; Mon, 23 Nov 2020 15:11:12 -0500 (EST) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 3EE343626 for ; Mon, 23 Nov 2020 20:11:12 +0000 (UTC) X-FDA: 77516777184.17.goose92_600035f27368 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin17.hostedemail.com (Postfix) with ESMTP id 12DDF180D0184 for ; Mon, 23 Nov 2020 20:11:12 +0000 (UTC) X-HE-Tag: goose92_600035f27368 X-Filterd-Recvd-Size: 3589 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf01.hostedemail.com (Postfix) with ESMTP for ; Mon, 23 Nov 2020 20:11:11 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E87FB20715; Mon, 23 Nov 2020 20:11:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1606162270; bh=S16KBwhaL/01tGXV0yjo+fhZ/1ZXyYm+GDtWWM3lQiw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=s0Z9tEU4SklazDQUZnIX5EresDQad7SkzVV2bA8lAe3AE+57E0+xaXNcttXDY4c3N 2DLWeaq2KtP2uKBIu+v5SmBGjWPsJqeNodCJ3t2iSZYrAGR5dAAy9wYfOqec5z79Bc gQMMbWP6RmrFDEd8+nDIcp2R2ji6h62jIynqVV8A= Date: Mon, 23 Nov 2020 12:11:08 -0800 From: Andrew Morton To: Lokesh Gidra Cc: Kees Cook , Jonathan Corbet , Peter Xu , Andrea Arcangeli , Sebastian Andrzej Siewior , Alexander Viro , Stephen Smalley , Eric Biggers , Daniel Colascione , "Joel Fernandes (Google)" , Linux FS Devel , linux-kernel , linux-doc@vger.kernel.org, Kalesh Singh , Calin Juravle , Suren Baghdasaryan , Jeffrey Vander Stoep , "Cc: Android Kernel" , Mike Rapoport , Shaohua Li , Jerome Glisse , Mauro Carvalho Chehab , Johannes Weiner , Mel Gorman , Nitin Gupta , Vlastimil Babka , Iurii Zaikin , Luis Chamberlain , linux-mm@kvack.kernel.org, Daniel Colascione , "open list:MEMORY MANAGEMENT" Subject: Re: [PATCH v6 1/2] Add UFFD_USER_MODE_ONLY Message-Id: <20201123121108.24d178769cfc9500c7c51317@linux-foundation.org> In-Reply-To: References: <20201120030411.2690816-1-lokeshgidra@google.com> <20201120030411.2690816-2-lokeshgidra@google.com> <20201120153337.431dc36c1975507bb1e44596@linux-foundation.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, 23 Nov 2020 11:17:43 -0800 Lokesh Gidra wrote: > > > A future patch adds a knob allowing administrators to give some > > > processes the ability to create userfaultfd file objects only if they > > > pass UFFD_USER_MODE_ONLY, reducing the likelihood that these processes > > > will exploit userfaultfd's ability to delay kernel page faults to open > > > timing windows for future exploits. > > > > Can we assume that an update to the userfaultfd(2) manpage is in the > > works? > > > Yes, I'm working on it. Can the kernel version which will have these > patches be known now so that I can mention it in the manpage? 5.11, if all proceeds smoothly.