Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11989203ybi; Fri, 26 Jul 2019 02:58:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxg5k/M/fONR7H4xUY44jNlOFLkYKOOPeWFDh7YbwAKHGxhTE7W9BfQ8Y/MTOfIrzI/8leM X-Received: by 2002:a63:205f:: with SMTP id r31mr90784682pgm.159.1564135135739; Fri, 26 Jul 2019 02:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564135135; cv=none; d=google.com; s=arc-20160816; b=WjHu28GrJxdSM4o7ZZPnyceBkP2ruHPIsypzOBP7ekl/SbMKoSL/stMuZLDvtzHRps Mv4ngclBZoTHQ9bC+Vm9Aqf4hMO1GnoD28frcts5z3a9qjLiZAzyoNnw0XiNqrEgngZ8 RS5IcKHdHeGunOXfphPKBglpaTgIduwUBhg28xqO7fPJ0KeNksiZqfO0DsYGU0oQ9pQd YNsi+xsdxlPX+ia5DZ0xJTMeH3oQ/L0oktSgGYWe5HbNhb+TGQ751kXebZ+C8IrOS+9b piJ6LGMG4US8XiUvv9nNEMmZenWm5cSZi9VN9xWN2d43JQ0sW4LxAaqGY0fjS3dOWmoh 9TIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=/iufb0TTF1GAeZGPOnqhrgxVKxrEycW/hHzn4npZ/Lk=; b=nVh2uoCfwcg5VgX+9b93s9/U3l9rblwBScLEpYSGbsu00/azNzAVOgzGwEzCLS/L6U w1S8DfsGStRx3QQiMsvtBGCwccW/yGJTEXseVOVfbapKIyGdG9s7AqA8ZfzPKDGFZxzV W73tq9jY0+/2YH6eysQ5Z1MT/9htEqoPDYZXsTwE8O9kt5OBgpDKnnF6tsSvkvrsVqBm j9JaIDnoRviPB3275YaorBkoTaFiUqr0ZHFupbPvH9mYE1E367LeubOq27LMfZTF1vC1 PWKrzg29UmBQr/UgCExH98yx5OmVPgcQlak3akWVEBWdsNr4HbV+Y53KXeQ1T4qSi/Eh nvrA== 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 c127si20964079pfa.20.2019.07.26.02.58.40; Fri, 26 Jul 2019 02:58:55 -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 S1726175AbfGZJ5q (ORCPT + 99 others); Fri, 26 Jul 2019 05:57:46 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:34308 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbfGZJ5q (ORCPT ); Fri, 26 Jul 2019 05:57:46 -0400 Received: by mail-qt1-f196.google.com with SMTP id k10so52062515qtq.1; Fri, 26 Jul 2019 02:57:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/iufb0TTF1GAeZGPOnqhrgxVKxrEycW/hHzn4npZ/Lk=; b=G722eRD8jWAb3CJJzKki0E0uH1a8sQkU4UrBTT9nwheBdXXZ/Zip0wP4BcLHBs0tqw F/j57OTGVO9vYXlShXw2Q2OSIoXkpTnL3b3gkZBoiCtFuJ8B0uEPjStXR10ewQgCD+T2 fpe9SA36WLUDEbXfHfQDtmwDtOVaEVaz0mWH8Frh1zS51/PBkfTam/jCDBWOZvgVILlO Qz4Fwwjy9RdkVMyXSiZQk4A7bw/IDyBOQKEN3BC+VOZHT2V6uIsTG/GEiHS9p+quzQJP DFowklglHyEf/alNDoyEG2k+iAdyfO78TR9t+X0Vpu2ehcFXztyg21Vh7tfo/JDob1wf 2iUA== X-Gm-Message-State: APjAAAU8UFKSKF0VNmY/fKNuW++Y12Yc9nfGy9VAYVga0BBrb94EkYuf iQIR06EOCQ00twok+U3g6vQYWSYe9NYxzxXD6W88uYlB X-Received: by 2002:aed:33a4:: with SMTP id v33mr63995596qtd.18.1564135065054; Fri, 26 Jul 2019 02:57:45 -0700 (PDT) MIME-Version: 1.0 References: <20190724144651.28272-1-christian@brauner.io> <20190724144651.28272-3-christian@brauner.io> <20190726082413.n7srvcrqxmvk67z7@brauner.io> In-Reply-To: <20190726082413.n7srvcrqxmvk67z7@brauner.io> From: Arnd Bergmann Date: Fri, 26 Jul 2019 11:57:28 +0200 Message-ID: Subject: Re: [PATCH 2/5] pidfd: add pidfd_wait() To: Christian Brauner Cc: Linux Kernel Mailing List , Oleg Nesterov , "Eric W . Biederman" , Kees Cook , Joel Fernandes , Thomas Gleixner , Tejun Heo , David Howells , Jann Horn , Andy Lutomirski , Andrew Morton , Aleksa Sarai , Linus Torvalds , Al Viro , Android Kernel Team , Linux API Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 26, 2019 at 10:24 AM Christian Brauner wrote: > > > It would be nice to introduce it in a separate patch, and then use it > > to kill off > > compat_sys_getrusage() and compat_sys_wait4(), and possibly even > > compat_sys_waitid() in combination with your copy_siginfo_to_user_any(). > > That could be done as a cleanup patch afterwards, or as part of your series. > > Right, but we won't go the syscall route but instead go the P_PIDFD > route for waitid(). :) Ah, of course, nevermind then. It would still be a useful cleanup, but many other things would be as well. Arnd