Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11229567imu; Thu, 6 Dec 2018 13:48:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/WGx4ROfiOF33CSCTWoj0Vyfu/oHm37/nxFWohhWki6nACThiqowvqlYxJlUAeBwLcHs4XN X-Received: by 2002:a63:fb46:: with SMTP id w6mr25790403pgj.321.1544132887595; Thu, 06 Dec 2018 13:48:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544132887; cv=none; d=google.com; s=arc-20160816; b=BsWbq1JUqKqPBZ3Maf5symwNSLf2tOX5mqewteMffQf/CRIFIqFVHdOVAbmQ8OWVbO nb1BWNSLMcUzMPWTmi4ObR6U+vVnD/4vx6SHMxCYhD5BS6+3h5C+YEfwrTwJi53C0NOC WRRrikc5G1Ijk5zxObx8P6t+AuLhHWDYVTzUae78ssDomqkdhcIUSKiQ3pz2F5xA/9JW xBElLldb8QnCceBhnLELf1uykQ3LTCzwSX4/QxFb6S7fgcqqbq2E2fneWZidSiZr+qWA 3GO55F19O1z84XCUVGY3XOLUqeMdRBAL6004OQZ1ET4ZILtL6eSBhfW6tOXG+oDbmPn/ URqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from; bh=s4/rAcPCG1A8xeHa0lIGXuOJkOjQjiziV5n8luvvnAo=; b=huqi7Gvt+7RmxJ60j5t00oxHEPy7MKKHf8fnmucBEH4CLH12YRE3H8qiHKu7apYW76 Hei2uT9FbtCqOQ5p3dr50OWVeL621vsI+y/oWhPVHILVPSHll07PnRpPMBEmGWlkB1Fs JhGDESh9DWELixFf6HlFPX3UUnytF/bcuMPlpJijF5gSUl3LNdFrOKjOSvqURO6aUGw6 1eQ50x8swuQWOSWNjV/DTQpz3MmJxVBb1xerwYjPuVKRRBPPGtfIs1I4+G2x2oHa5kXt OJUm/OXoHbykDSLnUeSOfBDCOyceEcS+93CMzAT5sepGCG2CkX2WgDRmKAv5+k2KYeQO RRLA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3si1113380plr.376.2018.12.06.13.47.53; Thu, 06 Dec 2018 13:48:07 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726008AbeLFVrI (ORCPT + 99 others); Thu, 6 Dec 2018 16:47:08 -0500 Received: from out02.mta.xmission.com ([166.70.13.232]:55062 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725949AbeLFVrI (ORCPT ); Thu, 6 Dec 2018 16:47:08 -0500 Received: from in02.mta.xmission.com ([166.70.13.52]) by out02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1gV1U9-0007R4-K9; Thu, 06 Dec 2018 14:47:05 -0700 Received: from ip68-227-174-240.om.om.cox.net ([68.227.174.240] helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1gV1U8-0007rG-U8; Thu, 06 Dec 2018 14:47:05 -0700 From: ebiederm@xmission.com (Eric W. Biederman) To: Christian Brauner Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, luto@kernel.org, arnd@arndb.de, serge@hallyn.com, 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, linux-man@vger.kernel.org, keescook@chromium.org, fweimer@redhat.com, tglx@linutronix.de, x86@kernel.org 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> Date: Thu, 06 Dec 2018 15:46:53 -0600 In-Reply-To: <20181206213152.gvci7ijr3dokew7w@brauner.io> (Christian Brauner's message of "Thu, 6 Dec 2018 22:31:57 +0100") Message-ID: <87o99y72gi.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1gV1U8-0007rG-U8;;;mid=<87o99y72gi.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=68.227.174.240;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX197I2lOQZMKRcTAyanx2Fb6HkXUcekaDDY= X-SA-Exim-Connect-IP: 68.227.174.240 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa06.xmission.com X-Spam-Level: X-Spam-Status: No, score=-0.2 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TM2_M_HEADER_IN_MSG,T_TooManySym_01, T_TooManySym_02 autolearn=disabled version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4995] * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa06 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject * 0.0 T_TooManySym_02 5+ unique symbols in subject X-Spam-DCC: XMission; sa06 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Christian Brauner X-Spam-Relay-Country: X-Spam-Timing: total 324 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 2.4 (0.7%), b_tie_ro: 1.59 (0.5%), parse: 1.32 (0.4%), extract_message_metadata: 21 (6.4%), get_uri_detail_list: 1.87 (0.6%), tests_pri_-1000: 24 (7.5%), tests_pri_-950: 1.26 (0.4%), tests_pri_-900: 1.10 (0.3%), tests_pri_-90: 25 (7.8%), check_bayes: 24 (7.3%), b_tokenize: 7 (2.0%), b_tok_get_all: 9 (2.6%), b_comp_prob: 2.2 (0.7%), b_tok_touch_all: 4.0 (1.2%), b_finish: 0.61 (0.2%), tests_pri_0: 236 (72.8%), check_dkim_signature: 0.51 (0.2%), check_dkim_adsp: 2.2 (0.7%), poll_dns_idle: 0.44 (0.1%), tests_pri_10: 2.2 (0.7%), tests_pri_500: 6 (1.8%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH v4] signal: add taskfd_send_signal() syscall X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Decide. Do you use the flags parameter or is the width of the target depending on the flags. That is fundamental to how the system call and it's extensions work. That is fundamental to my review. 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. 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. Eric