Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp880399imm; Fri, 13 Jul 2018 07:52:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfZB0VIona0fbiQ/TJ7VZ2hodM7mJPgjzy5gjQkaKkQiqTws+jIxhjlQL48c61W3S/oNX0/ X-Received: by 2002:a62:229a:: with SMTP id p26-v6mr7453603pfj.53.1531493557682; Fri, 13 Jul 2018 07:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531493557; cv=none; d=google.com; s=arc-20160816; b=XLirj6s4rAVfg/otrt4aFe3I9zYZ2nPVE5TQCq0JWFJr7K6gHV4NSsVdP7hfEMTRKz jfOuHe9emsEbczvp/53qrKSMv5C+VbWMfmMq9EmufQGgCu97OcbJb3/zSPsM6pHoBZxW QkBdVOWOm0Az4ut/RZ6jgoc5MGKVOLdwUPmPV9IThG2CIZk8bCt2VsqtvDxQ9y87VrYD XPMYueKgS1mNpT6A4NjUqN4rSzsMm7avSxj/qe+kOGOZg+naYdpQxr/fCfqzlnY0fjcU z2coXqvEvenaQTj72vksXdbGPTShTDhdymBk3DsnlYTVwMU2pU7j+zKEgKugSoKotjLV ptow== 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=bWpL5MUoZECTOlv9ffuG5tQan8esyeQjXRoogJb3Evs=; b=OEQdt4wKrEXuNDGmGkgHbc1aQxE7RgPseuXM5Yox8KpqnPXMWeWrKKhdOgyyGoeNhB vkoffn6a1eOQBYd3MLq/RDTaQvlqpWfG19NM5zfwcfGQlm15JQRatWrxe3a6mCYDfZFy sMpBpXyQ5R0wIySaPz+653ftjJQ+eQBG/VlxDooCguw+TS7oJ8B9H2OJyU1ARVP6wsa7 zFy615x+cXXAsHiDWFmF3nZShqNu5lx7XgcjUNBXlgZghH1asj/p7UW/5FVsDtTC4vgY anpG57hmR1xUfSqryn5bcjx43ZBbAZ9qUKnmzapfyoxSfqOu9lNaCSYEcB7Xgc2pFETn 6oQQ== 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 k15-v6si3670424pls.463.2018.07.13.07.52.18; Fri, 13 Jul 2018 07:52:37 -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 S1729761AbeGMPGe (ORCPT + 99 others); Fri, 13 Jul 2018 11:06:34 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:41014 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729647AbeGMPGe (ORCPT ); Fri, 13 Jul 2018 11:06:34 -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 1fdzPz-0005g0-Cg; Fri, 13 Jul 2018 08:51:35 -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 1fdzPy-0007Pp-P3; Fri, 13 Jul 2018 08:51:35 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Oleg Nesterov Cc: Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, Wen Yang , majiang References: <877em2jxyr.fsf_-_@xmission.com> <20180711024459.10654-11-ebiederm@xmission.com> <20180711141456.GA6636@redhat.com> Date: Fri, 13 Jul 2018 09:51:28 -0500 In-Reply-To: <20180711141456.GA6636@redhat.com> (Oleg Nesterov's message of "Wed, 11 Jul 2018 16:14:56 +0200") Message-ID: <87y3efxk7j.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=1fdzPy-0007Pp-P3;;;mid=<87y3efxk7j.fsf@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=97.119.167.31;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX192XaCVIPwqF4bnEw8oWOlmPfc/22LiFN8= 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 sa08.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, T_TooManySym_02,XMNoVowels,XMSubLong autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 1.5 TR_Symld_Words too many words that have symbols inside * 1.5 XMNoVowels Alpha-numberic number with no vowels * 0.7 XMSubLong Long 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.4999] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa08 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; sa08 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ***;Oleg Nesterov X-Spam-Relay-Country: X-Spam-Timing: total 131 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 3.7 (2.8%), b_tie_ro: 2.7 (2.0%), parse: 0.85 (0.6%), extract_message_metadata: 2.9 (2.2%), get_uri_detail_list: 0.90 (0.7%), tests_pri_-1000: 2.4 (1.9%), tests_pri_-950: 1.09 (0.8%), tests_pri_-900: 0.95 (0.7%), tests_pri_-400: 14 (10.8%), check_bayes: 13 (10.0%), b_tokenize: 3.3 (2.5%), b_tok_get_all: 4.2 (3.2%), b_comp_prob: 1.24 (0.9%), b_tok_touch_all: 2.3 (1.7%), b_finish: 0.74 (0.6%), tests_pri_0: 94 (71.9%), check_dkim_signature: 0.42 (0.3%), check_dkim_adsp: 3.5 (2.6%), tests_pri_500: 3.9 (3.0%), rewrite_mail: 0.00 (0.0%) Subject: Re: [RFC][PATCH 11/11] signal: Ignore all but multi-process signals that come in during fork. 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 Oleg Nesterov writes: > That is why I tried to sugest another approach. copy_process() should always fail > if signal_pending() == T, just the "real" signal should not disturb the forking > thread unless the signal is fatal or multi-process. I understand now why you are suggesting another approach. There are lot of cases that could be affected by the removal of "if (signal_pending()) return restart_syscall();" in copy_process. I just shiver at the thought of leaving the code that way. That is just leaving a mess for later and the signal handling code already has way too many of those. So I am going to try and work through all of the cases. I might even implement queueing shared signals for after the fork. As it is looking increasingly less difficult. Eric