From patchwork Sat Dec 8 05:40:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Brauner X-Patchwork-Id: 10719177 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ED514109C for ; Sat, 8 Dec 2018 05:41:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D37542D1A0 for ; Sat, 8 Dec 2018 05:41:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C61882D1AE; Sat, 8 Dec 2018 05:41:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F5982D1A0 for ; Sat, 8 Dec 2018 05:41:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726181AbeLHFl2 (ORCPT ); Sat, 8 Dec 2018 00:41:28 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:44622 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbeLHFl2 (ORCPT ); Sat, 8 Dec 2018 00:41:28 -0500 Received: by mail-pl1-f195.google.com with SMTP id k8so2769900pls.11 for ; Fri, 07 Dec 2018 21:41:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brauner.io; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WQAXgi+j/ERE25d+3D2m/8mS9QlI7vr9w7Yoms9bDb4=; b=LC3y3AYFcTOiQocBdci6gOEGXKaYjc9Bcc68w0/+AsWBafy+FJRddw0NE4tXyQNV0x F7devvizFjwo9/PF54MbR6mYYGSPqjaQ5FGVbb45S2nEj/HtumxtKkrx5NjuwOqDwtAz 6DIjpvzxJt8GkkcE0L4hP/unaCX4rIyJK8XBHaLyIjkT1jXWS7pz3CSSo6yA9O28mkNS AU+KRkYv1Z1A7r85vmHZcNCwyoIC5EuuiqLGvXaL6+X//u09Y+wPy/NlDTZRf3K/emrz 2qpQzZjtVv/yigmqTx45Jcc1hQatUTVK4t3a03r3sQ/vC0tBcGUR8PFz3z+1VG7GuUi6 YO3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WQAXgi+j/ERE25d+3D2m/8mS9QlI7vr9w7Yoms9bDb4=; b=fyqmNZADjNF0CFjG7L9DOaKIQJHS8TytUlByRAyYE1PvbkEmfmZT57o3wib6ENUnB/ xQDY5J5VF2PJ0mez2bThlCQ8fww7BeFvg0Rw4H+Y7cpLV8qZZvWv7UQ7ntrcP57EaBCK QNe7gUi2IffFush10bmnMao/PUJW+REV0YAS9UwlS6vLZYF1ucNldxhbyyJAfgOhC1LR PeKPZ2ixxSuUzsXBQdu1J+sde6C6ggfCLzWM8WmqzXGlaMag2kWPeohj7NscFuhRe3N8 aj5ABC87bzZ0k/SxYwdoZ5uarjeAWFCYHtgmC0nxzx0N6aPX4OXLCkASjL55PyahJH9I CVeQ== X-Gm-Message-State: AA+aEWaowzRar+kUmZeqNO8gKOa0TUu9dXDO4kpp5g8lHjUHH2i4NEO4 v6YDuLb0xJhwgOYVDSwqu+RA1w== X-Google-Smtp-Source: AFSGD/XSUtSs19cIsj7SKuPgUFaA8f9DuF4N118pxS9MMwiUgIwj+kptzogx+281nv/UsVkY8Hxiag== X-Received: by 2002:a17:902:ba8b:: with SMTP id k11mr4658133pls.177.1544247687538; Fri, 07 Dec 2018 21:41:27 -0800 (PST) Received: from localhost.localdomain ([208.181.63.202]) by smtp.gmail.com with ESMTPSA id b10sm8249946pfj.183.2018.12.07.21.41.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Dec 2018 21:41:26 -0800 (PST) From: Christian Brauner To: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, luto@kernel.org, arnd@arndb.de, ebiederm@xmission.com, serge@hallyn.com, keescook@chromium.org Cc: jannh@google.com, akpm@linux-foundation.org, 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, Christian Brauner Subject: [PATCH v5 0/1] signaling processes through pidfds Date: Sat, 8 Dec 2018 06:40:58 +0100 Message-Id: <20181208054059.19813-1-christian@brauner.io> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hey everyone, This is v5 of this patchset. v5 does not introduce any functional changes since none were requested or required in the thread. Instead, it focusses on updated documentation making it very clear what the intentions are how to extend this syscall. Eric, I dragged Serge into this and we went through the mails and tried to very thoroughly address your concerns about whether the width of the target should depend on flags or file descriptor types. As far as we understand from the threads this was your ultimate worry and also the reason why you withheld your agreement to the name of the syscall. We have outlined how the syscall is intended to be extended and decided that flags (e.g. PIDFD_TYPE_TID, PIDFD_TYPE_PGID) are the way to go. In line with this we decided to accept "pidfd_" as prefix for the new syscall. All concerns we could identify and understand we tried to address. I hope this will be sufficient for you to get behind the patch. The relevant section in the commit message is titled: /* sending signals to threads (tid) and process groups (pgid) */ Thanks! Christian Christian Brauner (1): signal: add pidfd_send_signal() syscall arch/x86/entry/syscalls/syscall_32.tbl | 1 + arch/x86/entry/syscalls/syscall_64.tbl | 1 + fs/proc/base.c | 20 +++- include/linux/proc_fs.h | 12 +++ include/linux/syscalls.h | 3 + include/uapi/asm-generic/unistd.h | 4 +- kernel/signal.c | 141 +++++++++++++++++++++++-- 7 files changed, 173 insertions(+), 9 deletions(-)