Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5009289imu; Tue, 8 Jan 2019 09:55:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Zii4qnnBKohGiAOrT9Co08PMAF+EOwvuKYbDMCVlZvQyK1zYr311rj+GhCZLFidHbM/Dt X-Received: by 2002:a62:47d9:: with SMTP id p86mr2606633pfi.95.1546970125901; Tue, 08 Jan 2019 09:55:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546970125; cv=none; d=google.com; s=arc-20160816; b=Gp0geKnAdBgbQ7dkirp25U/njtL6wuBnwreJ8AKdtOIsV7WTvPJHyOOdATBBqHFV4U NNZDa4Vcwakj5Li0dJNvVEyynP899oIWse836qDBTLsTBKKGDxoqfqhne4LdLDFXrEs/ lhg1jHxO+5HHjBu/d5jm+eE5OlzQ2ijzQPA4KE25jwiXkZjVQxR9mYJsEECDB4/MMg6M n1BV0o+VA3lg/0jkEyLInF1KSUJ75r0wVtOVv0251vTXwUl5JgjOl0ktYx2hPqJf8O9E sexyDu0XVPPFCoSWnfL9q4tD18vNCZLg1S81zbFg8JpcoNEQWrbgmFSf/v80vnDggJDE iS4Q== 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:dkim-signature; bh=U3GIfi0mzd1YkTFPgjUVAySFXLfZF+qx0yiYs0H4m74=; b=rg9yEJrrtXBRCx7EbTwJwQpL2RXRDjhaVKyiZqH/mUwz4OT0G1voSD5JKSFe6DKwPX eBywC6S0k4x9dqqrfvD5+bahP7ZRPL1drH8j6cSquvptSDXXwoAYGV/i5lTNmVzPgccX dDI4cGN/o6bXZhDIwGQCc8WXh/qdBtOlGLBFSW0Eh3ITQ/GhSBhtKT/2tpI/GnenBqpE a0ftd2J6EI3SxmK9NrWxFvkwhsME5md5kfZvHVgxE+zL4ts61r1zZeGhyJSqfRNCxiGp uc8956wQdQlx5IpKL00wZ1XTGRLXeUEFBC0EhrfjU0mco5AQohzEuNa6nBwEBY7aDYed 8UGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho-ws.20150623.gappssmtp.com header.s=20150623 header.b=pkYPn7hq; 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 x1si10727539plb.366.2019.01.08.09.55.10; Tue, 08 Jan 2019 09:55:25 -0800 (PST) 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; dkim=pass header.i=@tycho-ws.20150623.gappssmtp.com header.s=20150623 header.b=pkYPn7hq; 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 S1728929AbfAHRxL (ORCPT + 99 others); Tue, 8 Jan 2019 12:53:11 -0500 Received: from mail-it1-f196.google.com ([209.85.166.196]:52255 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728590AbfAHRxK (ORCPT ); Tue, 8 Jan 2019 12:53:10 -0500 Received: by mail-it1-f196.google.com with SMTP id g76so7520349itg.2 for ; Tue, 08 Jan 2019 09:53:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tycho-ws.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=U3GIfi0mzd1YkTFPgjUVAySFXLfZF+qx0yiYs0H4m74=; b=pkYPn7hqf5wOwvcPOJbZPrk8dWV9YqJ1RcwVsQbc0QkSD2nl7owcwhEn/K59KrbNwl C6zQ87KmjsBOwWgDZDs9QbExAw+XAf/BUYz5ppUCYnTOjHmlEKU2ofu2X/NkOFTSugAW gpEBBrUynlkGTUjSUSmQBrcxBf7YEvdVrFLVQe0jTV0HG4OQusTya/cYQmx8dNcjQzVs U4WUkPNMzIHEZMrYPrmDHB7WGOsqLMj9Mg1o19QbIep+vbqP7Ig1Pqh0ZeipcFjys9Nr +QT0r9V/k4Y3j/k2yIQUrozTZ4TDKU0uFF6hyUjKuU6bLoarEG/ut279268fmqoQqTCF dq0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=U3GIfi0mzd1YkTFPgjUVAySFXLfZF+qx0yiYs0H4m74=; b=IwiLp0KpCclN+fdupFtI1XHPxZ6CnWhlADDZIkdfHvYP1m1cqZJLaoTlEtckC7Rfbw VdHBtLCLcQsKV1k5CDSEMyJEgUyoQ66P2ImSpuhOUHDfdcULWHd1HpOoyom3rXxza7W1 sbG13ClDF0EER2uuScjvjZ1t20bWW/FqCQKLShPdR3HNvRHYXWeTbD8VfwgtBqmcUifx RNPFezyRXZN0xdcrXbjH+/pn0L1xw+JEHW9XfGjzh3r8P2hJ8ELsTbcLU5Mx8GDpafPG /JR2HOf9iGZCURQpAEmuas9QbfhMZrWMh4jplDyXLuGQWZmQfXfOvXVVOaw2CmayacfS 7BFA== X-Gm-Message-State: AJcUukcFrndjg/HCwiwny8vyKCTiU1GVR1DV1XsbxPdx8V2J0+6K0h4s mV5PxHusy7ZVbqvEY6UPIVJhlw== X-Received: by 2002:a05:660c:1cc:: with SMTP id s12mr1835632itk.33.1546969989435; Tue, 08 Jan 2019 09:53:09 -0800 (PST) Received: from cisco ([2601:282:901:dd7b:c092:9114:ac14:211f]) by smtp.gmail.com with ESMTPSA id b25sm8199316iot.10.2019.01.08.09.53.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 Jan 2019 09:53:08 -0800 (PST) Date: Tue, 8 Jan 2019 10:53:06 -0700 From: Tycho Andersen To: Christian Brauner Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, luto@kernel.org, arnd@arndb.de, serge@hallyn.com, keescook@chromium.org, akpm@linux-foundation.org, jannh@google.com, oleg@redhat.com, cyphar@cyphar.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, dancol@google.com, timmurray@google.com, fweimer@redhat.com, tglx@linutronix.de, x86@kernel.org, ebiederm@xmission.com Subject: Re: [PATCH v7 2/2] selftests: add tests for pidfd_send_signal() Message-ID: <20190108175306.GF29009@cisco> References: <20190102161654.9093-1-christian@brauner.io> <20190102161654.9093-2-christian@brauner.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190102161654.9093-2-christian@brauner.io> 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 Wed, Jan 02, 2019 at 05:16:54PM +0100, Christian Brauner wrote: > + /* > + * Stop the child so we can inspect whether we have > + * recycled pid PID_RECYCLE. > + */ > + close(pipe_fds[0]); > + ret = kill(recycled_pid, SIGSTOP); > + close(pipe_fds[1]); > + if (ret) { > + (void)wait_for_pid(recycled_pid); > + _exit(PIDFD_ERROR); > + } Sorry for being late to the party, but I wonder if this whole thing couldn't be simplified with /proc/sys/kenrel/ns_last_pid? Tycho