Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2981494imm; Mon, 16 Jul 2018 18:49:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeRW/DzrmOWmmMyytahSVhmHxnoPPVytggAfKOlLDpFLYklCkOGyWtmz8n76zA8jujJcoQe X-Received: by 2002:a17:902:28a6:: with SMTP id f35-v6mr18755261plb.110.1531792191885; Mon, 16 Jul 2018 18:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531792191; cv=none; d=google.com; s=arc-20160816; b=wb184lWpkqvMvMNeBlq4OFoNQkqDRtne7YbbkDUi/gJQeZDheKVG9SwTjrpZ9wH2DC CYVMUIUUQSE1mPPQXe6xDiw6icLUexgWDFJcsVnXCSPPqIgcdIiE54woEaeqoI5IcSHR aNaaoOdmpS/OKVq+8mDs53xlZ6I9sKa7UrijLAqKqSBRcpvXWrMmNCDyEBA2je97DeTu EX2soSfXVH+htbv0jq/gwgS6u1elWvcVIOX4cY+d5cUQvWRSbK9y/tv+n6iT4E6AXSwW BIRn9DAW/aVj6gqk+EEfpUAqGS1DrFTMNZj33BKLYbXVemWkHJrlWwrvosUYQizimrg3 UVZg== 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=qROXouZrXTsNZxhtohVfqfBLiV/bky8pIjteSb9oCFI=; b=URhatM4OcoHSw+mha7XkoGTdxk9lomh1qcyPi+qHIuPHbS18/I0t2RrRCAn9HpPQ7S 3Dklv6PTWGKesqr12lOOehFWS/21F0TXFln8uNnxZUWXT7X0trQy00fawxNKzQl56z+g 6vMy6w/Fe7BOCahHikZPyidh586Rq755HDJ9XKowdCmXA3r2P2FiXdPplCt5vC1PZZlp BllEkpIHQT9UDKfXopP+uPcy0VRFFirxuja+Jex9A+1wE4oUvehB/B0GKxNGRbvZuN6p 9qRVPLegkp7B9Iuogdi/SeVwlmu1WiUOY3D/LfXPQeOncZmEpYlD3WzkTIxpuVTOzgJ0 4jQw== 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 h89-v6si32502327pld.378.2018.07.16.18.49.37; Mon, 16 Jul 2018 18:49:51 -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 S1730926AbeGQCTJ (ORCPT + 99 others); Mon, 16 Jul 2018 22:19:09 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:34699 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729934AbeGQCTJ (ORCPT ); Mon, 16 Jul 2018 22:19:09 -0400 Received: from in01.mta.xmission.com ([166.70.13.51]) by out01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1ffF6s-0004Qv-3T; Mon, 16 Jul 2018 19:49:02 -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 1ffF6q-0000Yo-NX; Mon, 16 Jul 2018 19:49:01 -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-9-ebiederm@xmission.com> <20180716145540.GA20960@redhat.com> <87lgabrzfd.fsf@xmission.com> <87pnznkn1u.fsf@xmission.com> Date: Mon, 16 Jul 2018 20:48:55 -0500 In-Reply-To: (Linus Torvalds's message of "Mon, 16 Jul 2018 12:36:37 -0700") Message-ID: <87h8kylji0.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=1ffF6q-0000Yo-NX;;;mid=<87h8kylji0.fsf@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=97.119.167.31;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX18HWfbr2BuURADE/Qts3i8HfzOelH23i/I= X-SA-Exim-Connect-IP: 97.119.167.31 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on sa01.xmission.com X-Spam-Level: **** X-Spam-Status: No, score=4.0 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,TR_Symld_Words,T_TM2_M_HEADER_IN_MSG,T_TooManySym_01, XMGappySubj_01,XMNoVowels,XMSubLong autolearn=disabled version=3.4.0 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 1.5 XMNoVowels Alpha-numberic number with no vowels * 1.5 TR_Symld_Words too many words that have symbols inside * 0.7 XMSubLong Long Subject * 0.5 XMGappySubj_01 Very gappy subject * 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.4218] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa01 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa01 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ****;Linus Torvalds X-Spam-Relay-Country: X-Spam-Timing: total 434 ms - load_scoreonly_sql: 0.06 (0.0%), signal_user_changed: 3.1 (0.7%), b_tie_ro: 2.1 (0.5%), parse: 1.25 (0.3%), extract_message_metadata: 29 (6.8%), get_uri_detail_list: 2.2 (0.5%), tests_pri_-1000: 13 (2.9%), tests_pri_-950: 2.1 (0.5%), tests_pri_-900: 1.60 (0.4%), tests_pri_-400: 28 (6.4%), check_bayes: 26 (6.0%), b_tokenize: 10 (2.3%), b_tok_get_all: 7 (1.6%), b_comp_prob: 4.0 (0.9%), b_tok_touch_all: 2.4 (0.5%), b_finish: 0.75 (0.2%), tests_pri_0: 343 (79.1%), check_dkim_signature: 0.86 (0.2%), check_dkim_adsp: 5 (1.2%), tests_pri_500: 8 (1.9%), rewrite_mail: 0.00 (0.0%) Subject: Re: [RFC][PATCH 09/11] tty_io: Use do_send_sig_info in __do_SACK to forcibly kill tasks 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 12:17 PM Eric W. Biederman > wrote: >> >> I should have said it doesn't matter because init does not open ttys and >> become a member of session groups. Or at least it never has in my >> experience. The only way I know to get that behavior is to boot with >> init=/bin/bash. > > That's hopefully true, yes. > > Presumably init does open the console, but hopefull doesn't do setsid. > > (We *do* do "setsid()" for the linuxrc running, but that's not done by > the init thread itself). > >> With the force_sig already in do_SAK today my change is not a >> regression. As force_sig in a completely different way forces the >> signal to init. > > Ok. A couple of notes in the commit description on this might be good. Definitely. >> So I think we want the patch below to clean that up. Then we don't have >> to worry about the wrong things sending signals to init by accident, and >> SEND_SIG_FORCED becomes just SEND_SIG_PRIV that skips the unnecesary >> allocation of a siginfo struct. >> >> Thoughts? > > I think the end result is fine, but then I look at that patch of yours > and it does many other things and that makes me nervous. > > Can you separate out the different things it does into separate > patches to make it easier to read? I will take a look. Eric