Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1134888yba; Sun, 31 Mar 2019 23:42:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzpITm6rztjIa4puZ7F8FULyE+pqV+4V0uY6AHcGpaYdRn4Ybce2CtdB9svOakcafEV+f/ X-Received: by 2002:a63:e653:: with SMTP id p19mr60314850pgj.284.1554100972497; Sun, 31 Mar 2019 23:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554100972; cv=none; d=google.com; s=arc-20160816; b=wMbkoV/xWu1XSkHQevk/ujexUvuxkrFqdYJ7QH+GDPU3JeDpWCzvdnQ2sMQ2411O2t 2jMiC0iUDPKnWJV9SMD+r24SvXPYjt1bIcdHLq0cc8gf25ThDbACil0guRDPu6kmbAoV GE3WvN8/limUYyWzWiee2Q0WKhZQHy32noS2c368TBUBEWU0r8mXxWohpJyGT1jFK4X/ r49wZhNpJcbLao9ER15exY/5mmZG4cPxokHjJEiu8vXisMx8rrIgji9S0ieNosNk1iYW NuQ8pPwrVfnlCQUobLcYus3u3lsPPS35c/ozK46ZIzH9sCXioGDfo7wcnijrNdPnHm7Z MGxw== 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=/Wn+ZTmpw8nLcK61MApyAfyJXX17Nw/kMCiahmRl9js=; b=Z2Ij/qLnocLqCa9FbCFvqA6q8om8aXQUhbtNX9vOSwngYDF25TLaNLjhL93ppJ40lX 3SknhZh7LrG40uihAlTMHIj5fk0iHt2TZS/Yov7ZbyREjGTIc5knDB3gc1S2rgLtwzUa wkLLcXnBOpLbX3FS59z89CU2gquXIITbnUGk5EBuWAgMGaEExQ/ZBqJ+BNedJOyHk0Tu mDjgfT0zPbd+ECVown1gR90ghT6wJvPX4cf3w/1uwTiUZnK/irGSy5ALuofoNoW24mwJ GtS7tEK3KtsnuOF99+MvRbw9IJn86PtaCsWj5IgB3S2Sas5c9MReSGbmCGvf3GyUDv/U ICxQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si8010351pgq.224.2019.03.31.23.42.36; Sun, 31 Mar 2019 23:42:52 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731824AbfDAGmC (ORCPT + 99 others); Mon, 1 Apr 2019 02:42:02 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:49110 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726836AbfDAGmB (ORCPT ); Mon, 1 Apr 2019 02:42:01 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hAqdl-0000No-Sq; Mon, 01 Apr 2019 06:41:53 +0000 Date: Mon, 1 Apr 2019 07:41:53 +0100 From: Al Viro To: Linus Torvalds Cc: Christian Brauner , Andy Lutomirski , Daniel Colascione , Jann Horn , Andrew Lutomirski , David Howells , "Serge E. Hallyn" , Linux API , Linux List Kernel Mailing , Arnd Bergmann , "Eric W. Biederman" , Konstantin Khlebnikov , Kees Cook , Alexey Dobriyan , Thomas Gleixner , Michael Kerrisk-manpages , Jonathan Kowalski , "Dmitry V. Levin" , Andrew Morton , Oleg Nesterov , Nagarathnam Muthusamy , Aleksa Sarai , Joel Fernandes Subject: Re: [PATCH v2 0/5] pid: add pidfd_open() Message-ID: <20190401064153.GI2217@ZenIV.linux.org.uk> References: <132107F4-F56B-4D6E-9E00-A6F7C092E6BD@amacapital.net> <20190331211041.vht7dnqg4e4bilr2@brauner.io> <20190331220259.qntxynluk765hpnt@brauner.io> <20190401000937.GG2217@ZenIV.linux.org.uk> <20190401063741.GH2217@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190401063741.GH2217@ZenIV.linux.org.uk> 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 Mon, Apr 01, 2019 at 07:37:42AM +0100, Al Viro wrote: > On Sun, Mar 31, 2019 at 05:18:10PM -0700, Linus Torvalds wrote: > > > Yeah, I would like to see the actual aio.c pull request and the > > use-after-free fixes. All the patches look fine, I just don't have the > > final end result.. > > use-after-free fixes: ceph is already in mainline, Daniel's bpf fix is in > bpf tree (1da6c4d9140c "bpf: fix use after free in bpf_evict_inode"), > the rest is in vfs.git#fixes. ... and aio stuff is The following changes since commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b: Linux 5.1-rc1 (2019-03-17 14:22:26 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.aio for you to fetch changes up to 7316b49c2a117ca0611bc9af779d2108b764a7f9: aio: move sanity checks and request allocation to io_submit_one() (2019-03-17 20:52:32 -0400) ---------------------------------------------------------------- Al Viro (8): aio: fold lookup_kiocb() into its sole caller aio: keep io_event in aio_kiocb aio: store event at final iocb_put() Fix aio_poll() races make aio_read()/aio_write() return int aio: move dropping ->ki_eventfd into iocb_destroy() deal with get_reqs_available() in aio_get_req() itself aio: move sanity checks and request allocation to io_submit_one() Linus Torvalds (1): pin iocb through aio. fs/aio.c | 338 ++++++++++++++++++++++++++++----------------------------------- 1 file changed, 150 insertions(+), 188 deletions(-)