Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3405922imm; Fri, 20 Jul 2018 16:28:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcf+/rXJxqDa+2lb1ZXqhHgQOgLvj/teSRwHAp5tuFlMJXFekeo1kzZ3vwN/DlO9587Vq5A X-Received: by 2002:a17:902:7592:: with SMTP id j18-v6mr3768140pll.51.1532129312636; Fri, 20 Jul 2018 16:28:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532129312; cv=none; d=google.com; s=arc-20160816; b=I1qYauOso4yOz+tcxFQX07XAfsh4PkIorJxkata5MwKSGVP9MT3rVhPN7B8rN2YajD Qm4l38S7cwpboUbVe+0XeR8P4uvqavirX8NkMOMutA/niCOBhIuicczAVKMXS9VXTGP3 y60qepb846cl1igKrHduwiNpWzdfUpyCds/A0xc0C/VR5eFx6A23SF7h48yCghA3ak17 y5tpKf8dqyMOFeK4UqwvCb8u6/5pe+RNhWxZNqu8EEbB6Ih3z0dLHEiqjamiH94KXp+t PzKm8uIBnDK2Xvj8H4P1s5TlM/TWdbhSVfqZmYhSpVA7Hz/cvfILiHIje5PtH3FTKo1G GA3Q== 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 :arc-authentication-results; bh=erj1mA13MSdniqmYuBirAsuZRtK9VNohuApeFdrbdxM=; b=DByZ1G4G4FmQkWa25smm5tS0IBhJv2MeT6b/c/Um0Ycmy+vZhxVwXIQDw+Cj+Trruy qJYcVdPEu8lK8/IipiX8Fy/hhc+b2aFqu8o2RiDc07Zn6HvQ3nLj3ycuM+qzZzz9udLA E94E+980/WWHIcow088W5wlJ5M3FDHVYqTVP4POEUXheAuzTCIMCbNxt3HUnDkzJWpQC jsjTyJciB0wd3JhEflqIzouiV5zu6k5gY25sK3ejmbQtuaHDZ6H80yQTeskbq03vmZIu s2EOV46uPwNeaFmGorGqSFiY3Hj4e7qNFA6yRM+8YbUAjj2rgoe8eO8wtLyecNvDAf9Y KhoQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p33-v6si2586797pld.318.2018.07.20.16.28.18; Fri, 20 Jul 2018 16:28:32 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728133AbeGUAR5 (ORCPT + 99 others); Fri, 20 Jul 2018 20:17:57 -0400 Received: from out03.mta.xmission.com ([166.70.13.233]:51465 "EHLO out03.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727554AbeGUAR5 (ORCPT ); Fri, 20 Jul 2018 20:17:57 -0400 Received: from in01.mta.xmission.com ([166.70.13.51]) by out03.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fgeo5-0006nJ-5N; Fri, 20 Jul 2018 17:27:29 -0600 Received: from [97.119.167.31] (helo=x220.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fgeo4-0001zI-F3; Fri, 20 Jul 2018 17:27:28 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Linus Torvalds Cc: Oleg Nesterov , Andrew Morton , Linux Kernel Mailing List , Wen Yang , majiang References: <877em2jxyr.fsf_-_@xmission.com> <20180711024459.10654-7-ebiederm@xmission.com> <20180716125144.GA18262@redhat.com> <8736wjtetv.fsf@xmission.com> Date: Fri, 20 Jul 2018 18:27:19 -0500 In-Reply-To: (Linus Torvalds's message of "Tue, 17 Jul 2018 09:38:44 -0700") Message-ID: <87zhyl7ajs.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=1fgeo4-0001zI-F3;;;mid=<87zhyl7ajs.fsf@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=97.119.167.31;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1+zSSjScMUfRwAtKzm5w9AudyNGTXrq84c= X-SA-Exim-Connect-IP: 97.119.167.31 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa05.xmission.com X-Spam-Level: *** X-Spam-Status: No, score=3.5 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,TR_Symld_Words,T_TM2_M_HEADER_IN_MSG,T_TooManySym_01, XMNoVowels,XMSubLong autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.7 XMSubLong Long Subject * 1.5 TR_Symld_Words too many words that have symbols inside * 1.5 XMNoVowels Alpha-numberic number with no vowels * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4987] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa05 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa05 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ***;Linus Torvalds X-Spam-Relay-Country: X-Spam-Timing: total 211 ms - load_scoreonly_sql: 0.03 (0.0%), signal_user_changed: 2.9 (1.4%), b_tie_ro: 2.0 (0.9%), parse: 1.32 (0.6%), extract_message_metadata: 20 (9.6%), get_uri_detail_list: 1.99 (0.9%), tests_pri_-1000: 10 (4.8%), tests_pri_-950: 1.67 (0.8%), tests_pri_-900: 1.34 (0.6%), tests_pri_-400: 22 (10.3%), check_bayes: 21 (9.7%), b_tokenize: 7 (3.5%), b_tok_get_all: 6 (2.9%), b_comp_prob: 2.6 (1.2%), b_tok_touch_all: 2.6 (1.2%), b_finish: 0.60 (0.3%), tests_pri_0: 139 (65.7%), check_dkim_signature: 0.58 (0.3%), check_dkim_adsp: 3.2 (1.5%), tests_pri_500: 9 (4.3%), rewrite_mail: 0.00 (0.0%) Subject: Re: [RFC][PATCH 07/11] signal: Deliver group signals via PIDTYPE_TGID not PIDTYPE_PID 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 in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds writes: > On Mon, Jul 16, 2018 at 7:50 AM Eric W. Biederman wrote: >> >> In practice since glibc does not make thread id's available I don't >> expect anyone relies on this behavior. Since no one relies on it we >> can change it without creating a regression. > > Actually, there's a really obvious case where this simply isn't true. > > Just imagine you're a MIS person or a developer, doing "ps -eLf" to > see what's going on, and want to kill one thread. Either because you > see that one thread using all CPU, or because you are the developer > and you know what's up. > > Those thread ID's are exported trivially. True. Which makes all of this shell script visible. So someone may have done something with this functionality. I have just gone through all of my patches and updated them to ensure that everything has the same behavior when selecting processes as it does today. So this will not be an issue with the next version this patch series. I am going to come back to this as there are some really nasty corner cases in the current kernel. Primarily that we can send signals through a zombie thread group leader and it can have unchangable credentials completely out of sync with the credentials on the other threads. Eric