Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1387023imu; Fri, 7 Dec 2018 21:44:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/WKSKuQwfewVed7G0IhvRXd6eqOLNGKA4LR+I2FsY/7Kh4taedVy7a08mjbHDU7yjpxcWfK X-Received: by 2002:aa7:8286:: with SMTP id s6mr4791424pfm.63.1544247865837; Fri, 07 Dec 2018 21:44:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544247865; cv=none; d=google.com; s=arc-20160816; b=TdSVZp7hxiygEjExoEttYuRB05Ev8/H9PZ76CztrFK4cdc23EOj8QXwcfO9l/03elD jlPS1tzhOZ2tduTXD2294N6hbIouCOx7VKLU9tnzAe39srvsxwZSZHK2Zo1cfUAinp1b 0VwTox16WbH1k2s9jtewLP9eeLs8Y+AhCFjcD6X/2oZROwMfxhtaeKmtBxr63aug8Pta 1AhfczTYEaUdat3eVMY2RJwPH9eR5lNepYyEL9lueGEEb80CH/bg24XQ9IAQJhO2Nv1c drPqPW1zzgK75MStULGS6ZbKeO7OsARNvt7Kow4kNPF0pjipaWGx8tX+IHYjlt3nJQlG gTlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=WQAXgi+j/ERE25d+3D2m/8mS9QlI7vr9w7Yoms9bDb4=; b=us65hLMGhElOPjRGGcWGqNEG5u33sMo3kXPQBpiJdQqIXq7zyF2JC5MNvdGogRf4kE TNagAKjpEQuAo5xO+CkEjIVFhreao+FIY6Jc36Aw+sBmLci1JbqMKfIy69/zHbSFJhvt egfn+mQgG9+mOWyzwGBKWXxl8wxjHZuRTowbrPTEj2PoMGotgJ5rblLNke8IggvY4C9b 2Dz3FlslTEdIjR3zskIbw3D6VK0d3qrXLd+nukTzO5LhsQ1krPuEQXIB9qXDQeIYPBFD iHjW90dOd8AnstUYVkSdQ/6gJ3tun0VSRUsKwiN7p/OclxBbly2QsOcgbQw+a0qWYmjY fA/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brauner.io header.s=google header.b=LC3y3AYF; 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 r18si4763409pgb.491.2018.12.07.21.44.10; Fri, 07 Dec 2018 21:44: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=@brauner.io header.s=google header.b=LC3y3AYF; 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 S1726194AbeLHFl3 (ORCPT + 99 others); Sat, 8 Dec 2018 00:41:29 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:37032 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726176AbeLHFl2 (ORCPT ); Sat, 8 Dec 2018 00:41:28 -0500 Received: by mail-pl1-f196.google.com with SMTP id b5so2780023plr.4 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=MxHBsSMDO1n0qlb40RqbbAllgEUHBWP9HEArMJRdP2v+uvfH7BjIX9hUy/mRTpnfcM P2S+2Lfa9JP1p0+XjhIOpmBIseB3t1FNOC2O5ew/LXkYTxOkD+iuIvhjwUh1dmUEof1J NmnH5Q0AuFV/PJPJtS+nrnrfZ/14+D7Ec9AVL5JUG0QWKbeg3c6VthoZ3DSF0ZGtIqmX ShwnVVLCsEn4/2KxEixXnEQsCnFOLIs8etR0Q2GgIFwEJLx4oERmM2LJ1RAogzzW5U9e JSR7xCeorpzs+JwXpa5GBpcnbrcqGBTAO4pjqdO0M1GPK9QPOt0rSL6DunXSV6sf71/9 8gsQ== X-Gm-Message-State: AA+aEWYh384VMcp+Eq2x1Jr9ar1FyKNcjsDbAQJSSfDQ4zP72Eyzp5Xt PWV/cgcmw8H5MJjeDPONla5NlJllvCpDMA== 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.19.1