Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp512656yba; Mon, 1 Apr 2019 10:47:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+BivZk60AhnXOu9E+rPjpMub7FdBJUt+zSOyuPg9NCxAykXrDg++nnaGcFVz0vfADU7/i X-Received: by 2002:a63:ed11:: with SMTP id d17mr61755953pgi.211.1554140858129; Mon, 01 Apr 2019 10:47:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554140858; cv=none; d=google.com; s=arc-20160816; b=JyvVv/ItPuswirl9Pn6OYYDHDwgaHLkX1wQ5GTRrYQAydULLbKs/rf6Evq7Hki9f7A RlB+OHiQ48rTLd3XCvS9zYJlAKVW6CNNhjk6r6l2Id9Y8LRU3+UQ9ZMtqqs2kX6gfTzO oAv8/XGBEG3dwWoxwPC8OepjsPYK3wONgvxzTMzLPFYElbD9pQgGZrHwAlqdZzkmSJiL BZ0l/FZV4JXAOJtHM0YBQ3F40CNO8I/jD4j90IbKmdNTT3v16+lDOKXjI56Ej9HKDLmM hy2VW0ifP1b5UsDQPi56rlBio1yf+HHNSAjQW1Pps0D+t4M75sqfnBZLTC3QVP+XhODC sZYA== 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:dkim-signature; bh=dkVyCOCzlPevBGlHkhyB6pYv+tZ/Vf3HjXGMcg8N2bk=; b=u8Q9K4tf+PfokEeQ/a5R8kwAhGigN+SR3WzkCrS4I/BTVKahl9CPFZB+/FX25bVwZ0 CwiaxVfGbxvtQMTIzb0JGPSJwYFvu/nKyEPzIb/Txw9ewjbkoFYEZ6lmmnHTPfNJRQ0S n6wThSDGduPqEakvYihQKzyl/4CSrUkdmpQbYyGBKW8Xcn3OudJ+dJcsm0PD1OoimSxK 4teQFqCbiuhJJtVpAeYnNjBDd2e1oWzhhWlKirpxuyXZBPGzVCiq3Y9idrNxzu2o3uHR EQT61KsghdFkiilVwCdi0Etps8lqiT6B62l63to7+EoHehLt0G66ONrTrY8qC5+Vcdo1 no3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Ya86KO0O; 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 r4si8935599plo.416.2019.04.01.10.47.22; Mon, 01 Apr 2019 10:47:38 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Ya86KO0O; 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 S1732672AbfDARqw (ORCPT + 99 others); Mon, 1 Apr 2019 13:46:52 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:45693 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732735AbfDARdB (ORCPT ); Mon, 1 Apr 2019 13:33:01 -0400 Received: by mail-lj1-f196.google.com with SMTP id y6so8939691ljd.12 for ; Mon, 01 Apr 2019 10:33:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dkVyCOCzlPevBGlHkhyB6pYv+tZ/Vf3HjXGMcg8N2bk=; b=Ya86KO0ODqDU5WICgG5ENr8T+5l2RBH8Lsx3IKCO4ADslV236uh+SFGLOUnzv8flov 2LzHpTjxJCnavJJwJRKWZOE+7FnFSPHXxOhiqr3WGVZxTCikpRoXLlL9UJDjfB8ZLC/T IXcu528lX/McaTj7GMUua9lG+5s4A9CDzhez8= 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=dkVyCOCzlPevBGlHkhyB6pYv+tZ/Vf3HjXGMcg8N2bk=; b=jkNN94fJ4gI6lD7SFnO+plszvWAG4e0IHOvZUjhwamj9v73sl6Ff6H98iU9Ggn/xIb XVns7yGOs0u/dmJPw4rNb6puXqnp/N5pbFHjrTggeZBwDzMM7q6iGrFUUJ6qy3GE5Mgc /VsKme/CwIAjmyVT6NebYS2NqrruNOAE0DfqR6e0gI7+WY6vmQhCMC3wjpNELh0WRjbI oZYBs01KpYgDl3l2eNOX+cR5Out65sFTLU5l93OtDAZ53SOQc5HmpeZjkwxRGaxic6fE 7S+HSsVrv79PvA0Rct0PzfGQejA+op610iMltCr4Q2fprcZZ4mzm9i5sIgIEZagPtf1k Je1A== X-Gm-Message-State: APjAAAWUD4hCQKqyQTilAW0OPf2MgPtUwmiKQlcwiasYfU4Q6Wk4koPK n0n96CFc6WJUSM2ZKXMKKr202JXRX0A= X-Received: by 2002:a2e:9d12:: with SMTP id t18mr2291787lji.163.1554139979408; Mon, 01 Apr 2019 10:32:59 -0700 (PDT) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48]) by smtp.gmail.com with ESMTPSA id l12sm2006897lfc.61.2019.04.01.10.32.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 10:32:59 -0700 (PDT) Received: by mail-lf1-f48.google.com with SMTP id y18so6918895lfe.1 for ; Mon, 01 Apr 2019 10:32:58 -0700 (PDT) X-Received: by 2002:ac2:5479:: with SMTP id e25mr30308085lfn.121.1554139978264; Mon, 01 Apr 2019 10:32:58 -0700 (PDT) MIME-Version: 1.0 References: <20190330171215.3yrfxwodstmgzmxy@brauner.io> <132107F4-F56B-4D6E-9E00-A6F7C092E6BD@amacapital.net> <20190331211041.vht7dnqg4e4bilr2@brauner.io> <18C7FCB9-2CBA-4237-94BB-9C4395A2106B@amacapital.net> <20190401114059.7gdsvcqyoz2o5bbz@yavin> In-Reply-To: From: Linus Torvalds Date: Mon, 1 Apr 2019 10:32:41 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/5] pid: add pidfd_open() To: Daniel Colascione Cc: Jonathan Kowalski , Aleksa Sarai , Andy Lutomirski , Christian Brauner , 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 , "Dmitry V. Levin" , Andrew Morton , Oleg Nesterov , Nagarathnam Muthusamy , Al Viro , Joel Fernandes 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 Mon, Apr 1, 2019 at 9:45 AM Daniel Colascione wrote: > > But doesn't the CSIGNAL approach still require that libraries somehow > coordinate which non-SIGCHLD signal they use? Yes. As mentioned, this was seldom used. In some cases it's ok, eg aio would just specify the signal in sigev_signo (except it was never fleshed out to have sival_ptr etc because nobody ever did it, afaik). > (Signal coordination a separate problem, unfortunately.) Yeah, in several cases you would just want to signal a handler directly, not an index into handlers. Anyway, I'm just saying that the whole "reap children" part is not necessarily tied to the pidfd thing. And honestly, nobody ever does anything like that anyway in practice, because of all the other issues it causes that you'll hit. Linus