Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp561imu; Mon, 19 Nov 2018 16:34:03 -0800 (PST) X-Google-Smtp-Source: AJdET5eWD4vxbL26xDn8ZOkhTXRjx6OGfy4yZrw9cyokd4MKoGC27t1qL3Z8dcxlAi7o/VLUPRqT X-Received: by 2002:a17:902:bb86:: with SMTP id m6mr25057864pls.315.1542674043505; Mon, 19 Nov 2018 16:34:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542674043; cv=none; d=google.com; s=arc-20160816; b=aPD4l3BgRkJ2mDvBxPx34/Yg2FqsrH4Q5nOUWYEEm+zDxA4QrIPmY6I89XjaX0ASS1 xyfUcqG6IqaYUSztVU318zZw4cYcEx+YDjkokrsh8+qzwTPIxyMPEA+Ugt4J0IUAqz6o qjG4qmZfPZJ18Mc1e8C1A2oWkNEnH5Rvk4msf2ZAfHzgCKCrGrS2pEFYNUKvfcUhHQ6q 7FpLtntfbC2nsIypxR3CmBYpIdrnjeBebos5DZ60TR6szscdCHq+gv3ZxIrqtzJttgIc eJxP1YT9O3SgEu791/eUzddMimkaOB0opc0COv+ZyY82gu8mQm4asOXvNYxS247ts0Zw BjMg== 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=5eCZiwLavQJ8ZNyD93IqedqjQ/60p+xopwQs1fTFo2k=; b=cd9pT/wNXDOf5oOO59VGdU6fXnt21QUZbWBX84r7t3l3uVh91Mo+vQANL6Z5l16R2r CYEzkjQARZlYlIdkT+to4SlVp3gb6jhcg50Qe+I8h7kQ8x2gkbg41ikyM1BHGQXGwPta xn5rSV1b+CNtZ1hxlQYuw2xiz8cpyMrrdGnAq7sKgNup9KKMcVszUg9Z1LmsHYrHW6HH f1IPon47u2gwZY9T82E4wuDIM3vHJmePSTdSSvAXYTNecUoPl78clXVvCn4vv+DoM/J6 bki3+dnHZ2Tl3zV6F7mZTnu5XqNGt/HYDHMUuS2Mr444K/JO6dBwJe68y/HgbCGTz7Te FM1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brauner.io header.s=google header.b=Vzi7x3jH; 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 t19si5417770pgu.5.2018.11.19.16.33.48; Mon, 19 Nov 2018 16:34:03 -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=Vzi7x3jH; 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 S1732455AbeKTK7S (ORCPT + 99 others); Tue, 20 Nov 2018 05:59:18 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36935 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732464AbeKTK7S (ORCPT ); Tue, 20 Nov 2018 05:59:18 -0500 Received: by mail-pf1-f195.google.com with SMTP id u3-v6so96300pfm.4 for ; Mon, 19 Nov 2018 16:32:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brauner.io; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5eCZiwLavQJ8ZNyD93IqedqjQ/60p+xopwQs1fTFo2k=; b=Vzi7x3jHqbz0UAxLtrFw5BfBI14/sobMSDw121lTTzWqebje6L9KCpoKFH2DA6SxBo 42Wx8mect2FPIinjGncx73T0fkoLAc8f0+De4nz0AXrJmJzdVifMpnfS+zsK78J+9Ley MtayUykLzXagw5vgB2W79/n8znk+5qJlLPFtqjWbJUTenkjO39vUBe7s7qvMXmFcTl/t 3v3rZOhsIFMWWp47jXUCYTCcctTmmKh1VEPAhzc/HVgMnSZnWhzfvbijl/j6xH0Z7nNx 5fKWwvJigx8HH1WkdJdGA9K6oFH8m1l5qZtRSY/Z9XhJ4jETDbRaJc3LL9nKfm9Lunx2 Bxww== 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=5eCZiwLavQJ8ZNyD93IqedqjQ/60p+xopwQs1fTFo2k=; b=im1wVQBtQUUP9Ior/GIl3yNZM6tSycNNMPbGhJmNM6z7fm4thaIK+FLHkCtXWTEW59 /JsGieA5KP4s1lyn+Ns6xXXsARD/310De6K8+ENcNtymqnK7191V473ug6DER742Sxvr R/d80Z/XPr0hnuCkcfRlReK0dRFmwtcDKTOoevT+AwRIzJnbA6MGmFp0YO10DlUpo4+Y kfCxD4MLCbY0M1nMjcvRyvPTJ54LiMxHxifD+1M9jze4wGjvXQDceGS+aswAToZP1R3W LM5opLCk10IcM6m9bEdAE+8JOY0BhfihRr2gQ9aQ+P6iPAy8a5n0uy0hLVRdFqXApKg5 XG7w== X-Gm-Message-State: AGRZ1gLIqhnW0Pgi//I+uCMg6PQitqY8GrG4dCvHb/iqc3rkOeN3erMo uypiOfQByN6Aik2/G6sqOeEcGQ== X-Received: by 2002:a63:1c61:: with SMTP id c33mr21652475pgm.354.1542673978859; Mon, 19 Nov 2018 16:32:58 -0800 (PST) Received: from brauner.io ([130.195.55.139]) by smtp.gmail.com with ESMTPSA id m85-v6sm48130556pfj.171.2018.11.19.16.32.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Nov 2018 16:32:58 -0800 (PST) Date: Tue, 20 Nov 2018 01:32:50 +0100 From: Christian Brauner To: Andy Lutomirski Cc: 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 Subject: Re: [PATCH v1 2/2] signal: add procfd_signal() syscall Message-ID: <20181120003247.a776bej54baxqoxv@brauner.io> References: <20181119103241.5229-1-christian@brauner.io> <20181119103241.5229-3-christian@brauner.io> <20181119223954.GA4992@cisco> <20181119230709.GB4992@cisco> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 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 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(). 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. > > and have a central table in the kernel listing all possible nr values > along with which driver they belong to. We could have a sane > signature and get rid of the nr collision problem. > > The major problem I see is that u32 isn't really enough to have a sane > way to allow out-of-tree drivers to use this, and that we can't > readily use anything bigger than u32 without indirection because we're > out of syscall argument space.