Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11996103ybi; Fri, 26 Jul 2019 03:04:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7f2iMsL/UREA5O8kffioB9+DTE08XfpWzz/EbJc1kwGEEDpvp6BB9ZAB4xBN8KVfaeOxz X-Received: by 2002:a65:458d:: with SMTP id o13mr89362549pgq.34.1564135475419; Fri, 26 Jul 2019 03:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564135475; cv=none; d=google.com; s=arc-20160816; b=xYpbJgdUm91LuUz/JXW1OBdF1kM1MLlzNm1GBtU0Wuq1iLuSX+frS+LA3avI+Bvgay D/83EnzZpGsFzY9eIkVU+tFOMik69UDssXAEY3Gu2Qx4M1PvurMoyg4u0kLThPUWGsoh bvAe6wMl/0vUCWkVrKOjJBc8YbgwoCLMhNQdkTfXGcoJWuZhIVUvkCU4Rg6CTAflmqwq 0v7h/WqlbBItcewngbnT+RtF4jes2ExDQs+MHNps1yTAtXLwSl91QTN+1lBI7YisuGGn TyHMTZcF1xkSY/xsb6ZHV6uG/RIckUTzspcIQKsGLLMlQBuFNzb5tgZyPWutZwnqARlN 6Y0g== 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=HCHUnQkBadUhfrpeC8jK3n72xgjIG8yfuuE/QbXdyVI=; b=wzQb6f1cdHVj68H0j2HuvdOfwZiKv9AZ549i+ZZZK72rRgs0VNLW49sK0B9+6YLsUA JTrNAMw6RJzRju3vP9ldcO7xULH6zm8q4BcsZ1+CDrdtAN6Klb7/IOTIEQV1mQ2PTqjL gYD0anmBo3ZHrpsFfXhJDjYxzIaDWuazqQ3jaeSdDkb44/6U6q3CdD8IxJCHy6HS2gRm q44TRKoOcf+WKzy4obX35GsGO7SEhD3T0AlwsYQbXnhI1HtJ+teyIOp/ZUJ0ALZd+9XA 3qAsokCx91QJZoSeH7UYbhNCy+zqCCBxzwDk2R5Gf5JWiCpjmd9VPW4orayedMhwKX4T lmew== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e66si17806355plb.254.2019.07.26.03.04.19; Fri, 26 Jul 2019 03:04:35 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726247AbfGZKC5 (ORCPT + 99 others); Fri, 26 Jul 2019 06:02:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39310 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbfGZKC5 (ORCPT ); Fri, 26 Jul 2019 06:02:57 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DA20F30970CF; Fri, 26 Jul 2019 10:02:56 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.43.17.136]) by smtp.corp.redhat.com (Postfix) with SMTP id C18D65DA97; Fri, 26 Jul 2019 10:02:53 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Fri, 26 Jul 2019 12:02:56 +0200 (CEST) Date: Fri, 26 Jul 2019 12:02:53 +0200 From: Oleg Nesterov To: Christian Brauner Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, ebiederm@xmission.com, keescook@chromium.org, joel@joelfernandes.org, tglx@linutronix.de, tj@kernel.org, dhowells@redhat.com, jannh@google.com, luto@kernel.org, akpm@linux-foundation.org, cyphar@cyphar.com, torvalds@linux-foundation.org, viro@zeniv.linux.org.uk, kernel-team@android.com Subject: Re: [OFFLIST] [PATCH v1 0/2] pidfd: waiting on processes through pidfds Message-ID: <20190726100252.GB16112@redhat.com> References: <20190726093934.13557-1-christian@brauner.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190726093934.13557-1-christian@brauner.io> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Fri, 26 Jul 2019 10:02:57 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christian, just fyi, can't read this patch till Monday On 07/26, Christian Brauner wrote: > Hey everyone, > > /* v1 */ > This adds the ability to wait on processes using pidfds. This is one of > the few missing pieces to make it possible to manage processes using > only pidfds. > > Please note the following major changes (More details can be found in > the individual commit changelogs.): > - Add the new type P_PIDFD to waitid() instead of a new dedicated > pidfd_wait() syscall. > This is the same approach we discussed a few months ago and still > prefer over adding a dedicated syscall. > - Adapt the tests to the new type P_PIDFD for waitid(). > - Remove struct waitid_info patch. > This will be sent out as a separate patch. > - Remove CLONE_WAIT_PID patch. > This will be sent out as a separate patch. > > The core patch for waitid is pleasantly small. The largest change is > caused by adding proper tests for waitid(P_PIDFD). > > /* v0 */ > Link: https://lore.kernel.org/lkml/20190724144651.28272-1-christian@brauner.io > > Thanks! > Christian > > Christian Brauner (2): > pidfd: add P_PIDFD to waitid() > pidfd: add pidfd_wait tests > > include/linux/pid.h | 4 + > include/uapi/linux/wait.h | 1 + > kernel/exit.c | 25 ++- > kernel/fork.c | 8 + > kernel/signal.c | 7 +- > tools/testing/selftests/pidfd/pidfd.h | 25 +++ > tools/testing/selftests/pidfd/pidfd_test.c | 14 -- > tools/testing/selftests/pidfd/pidfd_wait.c | 245 +++++++++++++++++++++ > 8 files changed, 311 insertions(+), 18 deletions(-) > create mode 100644 tools/testing/selftests/pidfd/pidfd_wait.c > > -- > 2.22.0 >