Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11242613imu; Thu, 6 Dec 2018 14:03:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/UpVvxB9RE1sw7i2W+Rm34bURamCnU78qBhEAavmbHwKObzSHI9ZAtUIb/55B7XpEm1Wddr X-Received: by 2002:a62:11c7:: with SMTP id 68mr30150663pfr.21.1544133822470; Thu, 06 Dec 2018 14:03:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544133822; cv=none; d=google.com; s=arc-20160816; b=GAn95cpuuMGzX4fVcxX7ZYwupjRTCPa39eK1v6JiwCx+H8RGdCG/7Ve67tjrPMxx8e GWqHtb5ubRfQvcj31olepAq/Vj4MHXddELpLIsG7noSNpviXJiRphM48atQTDA66gGPt ZK/2Mo2wyWnUqBOTQdrqhQNGvOWgvKNyK24sWozLjCK4gVdg72SedrgfomsxONOJgeWF ZIs6MszqwBl7OATvMaf+kP+nKb69VFksrjDo7RnN2MOs1Pa9oaPqM057+u2iObXXsOmE 0yXTP9b++DkpHl03aJ22Cxbx3Z7kPeXf6287n6HLIloSGzqJfzgHHdy4ehG918L7jmJF GUJw== 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=AQDh1O2lpA262K5Uyvruh1xnwad03V8WhzDflNbjN50=; b=TDzYhVP1EuRbxV2oYlozNiON94n2J7NnJ04VlK58mCFvxkw5Lna3REITf+JziIYDAE KdePI6rP6Cqkfivm1uvWSgc1Vft6lML9sUJK0+TOhBtvh3V+BwAZPRp3DJ/AUAzhFooL JSzqNMHdps0NS1EhZGWPen1sv7q7G4NWIOPQy/978XwhFdxLJbp1gQgYCxLZTjakdGXE UaDE1kmAFiQCvQTqYzRxZ6D0Kab/CCckf/BfNPqbtw8p6etzm0Xfu0m7xFFRjCuHC/M5 Vpy3srAYv5tziIqNwEL0UkTwBsPapVZDgYxTVly66WXm+skXFZ4YWVwV6z3YLBiNyxI9 FW1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WPnC+DN1; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 37si1159365pgs.447.2018.12.06.14.03.25; Thu, 06 Dec 2018 14:03:42 -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=@google.com header.s=20161025 header.b=WPnC+DN1; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726058AbeLFWBi (ORCPT + 99 others); Thu, 6 Dec 2018 17:01:38 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:36571 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbeLFWBh (ORCPT ); Thu, 6 Dec 2018 17:01:37 -0500 Received: by mail-oi1-f195.google.com with SMTP id x23so1784365oix.3 for ; Thu, 06 Dec 2018 14:01:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AQDh1O2lpA262K5Uyvruh1xnwad03V8WhzDflNbjN50=; b=WPnC+DN1aIU6aI9aqrjgU48WLRz1OvtIn65km5e0+diBhXxiU0A9IHlQuHiaQP5lZ9 NZIWK8R/47W/5STgTgYm3a3b0TSQLD/SsD0xj86C2DFc5COY5H9bOzUp1jsqkW85eeHY xFP1l2NQXKvfdLEtmYVWIJKDs7TOxKbfxgx1mrv/U6svZIb3C5DbetClKEMMhPFCwSzj DPiyMwrbe6El9RQlo02TrSjSx95ZWV+KS0hHQnzRuhYjdxR5He0Xv2G9oNDayyFs2rIy IveY5RCgjam0pHPxMlBpYMqeVD992x6OEx9GOpvKBs4cTJ2SvoMpMAdbpxj3w62JMEQh Xzxw== 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=AQDh1O2lpA262K5Uyvruh1xnwad03V8WhzDflNbjN50=; b=AKoBfZ1PLw2xy5ND9Vi8D/8SuKXgCHYVrek8Kqzc1lRjPj2uCMppxMbWaj6iiOjmHF rXSMTK9iwSWbXguumOEe8iQNhn9xDbtS9fZdqU/6qD2TJdieT50BVkHpjBOKL55rkd6g RQffLGzYYwcMsuEdwSTioqcF4duWVT9yUdLd/h83J9r2hi07N8ktlCw+Mvp60E7TvevU /VJeHBXSXredyiCLQccrZjgvn2vkjWUZK7d0d8yvtcUQJWfUn9eku/aerMe2X8CpcS2B CnQk7xsBTEiVFfV+ONkahkRsMmGAG5YORJs+6Bu5Ygv9n722ALd0PtOfpxX1smrvbE/o t2hA== X-Gm-Message-State: AA+aEWb/HAmYvtNLfXbKq1scBo2/ESRyz/1ciLycV22+1D6d/lTzWPpH 9Xm8QD/69VIJhC/KZYMmKWe41r8HdqmAtO1ewU9raA== X-Received: by 2002:aca:a60d:: with SMTP id p13mr19381459oie.2.1544133695950; Thu, 06 Dec 2018 14:01:35 -0800 (PST) MIME-Version: 1.0 References: <20181206121858.12215-1-christian@brauner.io> <87sgzahf7k.fsf@xmission.com> <875zw6bh2z.fsf@xmission.com> <20181206193017.wpxls5p3zgjd6rv2@brauner.io> <871s6u9z6u.fsf@xmission.com> <20181206213152.gvci7ijr3dokew7w@brauner.io> <87o99y72gi.fsf@xmission.com> In-Reply-To: <87o99y72gi.fsf@xmission.com> From: Daniel Colascione Date: Thu, 6 Dec 2018 14:01:23 -0800 Message-ID: Subject: Re: [PATCH v4] signal: add taskfd_send_signal() syscall To: "Eric W. Biederman" Cc: Christian Brauner , linux-kernel , Linux API , Andy Lutomirski , Arnd Bergmann , "Serge E. Hallyn" , Jann Horn , Andrew Morton , Oleg Nesterov , Aleksa Sarai , Al Viro , Linux FS Devel , Tim Murray , linux-man , Kees Cook , Florian Weimer , tglx@linutronix.de, x86@kernel.org 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 Thu, Dec 6, 2018 at 1:47 PM Eric W. Biederman wrote: > > Christian Brauner writes: > > >> Your intention is to add the thread case to support pthreads once the > >> process case is sorted out. So this is something that needs to be made > >> clear. Did I miss how you plan to handle threads? > > > > Yeah, maybe you missed it in the commit message [2] which is based on a > > discussion with Andy [3] and Arnd [4]: > > Looking at your references I haven't missed it. You are not deciding > anything as of yet to keep it simple. Except you are returning > EOPNOTSUPP. You are very much intending to do something. So what *should* happen in that case? A panic? Come on. There's nothing wrong with returning an error pending an expansion of capabilities later. > Decide. Do you use the flags parameter or is the width of the > target depending on the flags. Huh? > That is fundamental to how the system call and it's extensions work. > That is fundamental to my review. Your review makes no sense and comes off as an increasingly nitpicky strategy of blocking the change no matter what Christian does. On several occasions, you've just said "no, I don't like this" without constructively trying to suggest an alternative that allows us to make progress. That's obstruction, and this patch should get into the tree over your nack. > Until that is decided. > Nacked-by: "Eric W. Biederman" > > There are a lot of fundamental maintenance issues and you can very easily > get them wrong if you are not clear on the job of the file descriptor > and the job of the flags argument. There are no maintenance issues. Christian has bent over backwards trying to address all the code concerns raised in this thread, and nothing has been good enough. > I want don't want new crap that we have to abandon that has a nasty set > of bugs because no one wanted to think through the system call all of > the way and understand the corner cases. What bugs? You have identified no bugs. There is no problem with the API signature. It signals a task. You get that from proc.