Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp77586imu; Mon, 19 Nov 2018 18:06:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/VA7QHtvytB0UU4gRtrOnP8AnxHQzPqRvFVsHBL/HZOB0Ln831P5BrRFiU+p4o2/FPgcaHt X-Received: by 2002:a63:d818:: with SMTP id b24mr147650pgh.174.1542679577635; Mon, 19 Nov 2018 18:06:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542679577; cv=none; d=google.com; s=arc-20160816; b=vNlDLDWhQdwIOhnEtOuWgeRWnR5gMYzkrSSnO7CwhL4RNhXpeMhCByz3qJWwZvK1Sz +bZ8pj8OA6KT934Hcxur3D3uV4E+8s4L1ToMWbpmgp8LD5pMgI6aa3zhU+NQBv3Z0BFg u0rVJkVp9icY1I78aB37b5PaWrbZr5osXJaUGxkXKQGhsq4bLCdBPlHPgLAkxkKZbnvd xjTS/J8leX8K1ex8XAWmXtu9gQLT24YwiljMxDRWz44qsvNOBJkdJdGxPcnFTgmmvI0l HGhJ1hGI3/tExzKabOHbe2TJO7LVDdHI9PFECUZsIvwmvyIjAz7pc3l9TPPF0irPMby+ NXww== 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=p3wzayPNacxKO0hVI2sq9gDGWzIy4mf5PJZ29S2Ookc=; b=DN7jx2F66Fc/ahkHYfwYpcJtr+bggxEDhqNeefNSmf64JmSSUxlMvm2cnO1TUTEMGi Bc1Dc4oFk4JsHWHHRSWHIg21JiM0GxJKBkXPLDegD4u3By2pyB2NyeMx3ob3MdMbBStv NExDlSOWNFGCflbh7cvn/Vg2GUBrGooNlfN4K35SmTYJbZxbz0A5EmfnV41BWHgZGsdb 5AQP+WRMdRtMkQnNkib6JNUbhujDtepAJYGL57UWTKUiujbuFxfIYeDWAaV3zsYyu1HS O9IL1M0pAkGZFoPbQ/pKNNhvpHYpq9e4g9NIf8fgJ2fOchGbi5i9QLz8yEaAxbtYD+ip 0Bkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jxUcol3n; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c64si26830656pfg.239.2018.11.19.18.06.03; Mon, 19 Nov 2018 18:06:17 -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=@kernel.org header.s=default header.b=jxUcol3n; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732545AbeKTLAe (ORCPT + 99 others); Tue, 20 Nov 2018 06:00:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:46882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732448AbeKTLAd (ORCPT ); Tue, 20 Nov 2018 06:00:33 -0500 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B80E3214D9 for ; Tue, 20 Nov 2018 00:34:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542674054; bh=kjPLWuLgkxHxl7KLxin+ondjsAXh8WYjFfawxa6AY5I=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jxUcol3nbqLYQoVCowW25qYy3A2XhaAtq3iGhOWiYMuN3FEV202uBLeZHLJkOHEKE 3OJUEYAE/TIfiRYIEnUNaOTwTeUQlqgoJBoMZKby5ukRJYxRVoW9Gry8PXaUE1BZfR PuYt2+JbFghO1qFvoog0QemQlU6rIbvaZ4VIjyR0= Received: by mail-wr1-f46.google.com with SMTP id v6so110687wrr.12 for ; Mon, 19 Nov 2018 16:34:13 -0800 (PST) X-Gm-Message-State: AGRZ1gLjYbpni4dETgSHgpoaTgndVE56b5jlZMgYoFDfaaRCX+bVziTS +OqjmqzMpkfa5pKSPwm7dcEUBFDaXExtzPHIthQ13g== X-Received: by 2002:adf:afdc:: with SMTP id y28-v6mr19350810wrd.176.1542674052084; Mon, 19 Nov 2018 16:34:12 -0800 (PST) MIME-Version: 1.0 References: <20181119103241.5229-1-christian@brauner.io> <20181119103241.5229-3-christian@brauner.io> <20181119223954.GA4992@cisco> <20181119230709.GB4992@cisco> <20181120003247.a776bej54baxqoxv@brauner.io> In-Reply-To: <20181120003247.a776bej54baxqoxv@brauner.io> From: Andy Lutomirski Date: Mon, 19 Nov 2018 16:34:00 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 2/2] signal: add procfd_signal() syscall To: Christian Brauner Cc: Andrew Lutomirski , Tycho Andersen , Daniel Colascione , "Eric W. Biederman" , LKML , "Serge E. Hallyn" , Jann Horn , Andrew Morton , Oleg Nesterov , Aleksa Sarai , Al Viro , Linux FS Devel , Linux API , Tim Murray , linux-man , Kees Cook 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, Nov 19, 2018 at 4:33 PM Christian Brauner wrote: > > On Mon, Nov 19, 2018 at 04:27:49PM -0800, Andy Lutomirski wrote: > > On Mon, Nov 19, 2018 at 3:07 PM Tycho Andersen wrote: > > > > These tools also care about ioctls. Adding a system call is a pain, > > > > but the solution is to make adding system calls less of a pain, not to > > > > permanently make the Linux ABI worse. > > > > > > For user-defined values of "worse" :) > > > > > > > I tend to agree with Tycho here. But I'm wondering if it might be > > worth considering a better ioctl. > > > > /me dons flame-proof hat > > > > We could do: > > > > long better_ioctl(int fd, u32 nr, const void *inbuf, size_t inlen, > > const void *outbuf, size_t outlen); > > I'm the writer of this patch so take this with a grain of salt. > I think it is a bad idea to stop this patch and force us to introduce a > new type of ioctl(). I agree completely. > An ioctl() is also not easy to use for this task because we want to add > a siginfo_t argument which I actually think provides value and makes > this interface more useful. > You could always have a struct procfd_kill and pass a pointer to *that*. But sure, it's ugly.