Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5601268ybp; Tue, 8 Oct 2019 05:38:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXJ+m3tmia/Ar9kJSFYBQac64hp59FZG6k50q2QKc4XTOaj+OvVhNEmafOyEEhb7JZlDcY X-Received: by 2002:a17:906:60d0:: with SMTP id f16mr28704440ejk.267.1570538337600; Tue, 08 Oct 2019 05:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570538337; cv=none; d=google.com; s=arc-20160816; b=J/BoAE2wYitwVlgWK7R3N8pMib7TGQytK5m8dYY9bzoHZENubaP3n36BTptVeaUjpi ScR9/aKLPcpToa393Arq99MJoSVESUkrOCJ0Lf2RBha+yS+CGc50ClclKNO+JOf949s7 mnkXE02s+iV+3ROpfa1tQZSvdJ8WbxRKNUGtc5A2/IWrr6oJyRywrLwxOkYzWHb72nkT so/fIJEOr7NQRQ6rVMbfnQrv0IT9ylbpNZSKvl1iHSPXY1G++FXx+GzWypYUUz0PYdNi T7zbnMlU8mofLE2MpUn02UOQwhI4yvrQzHC4cvJCNPWdiVsTfsnQg0tsVFWRh85da31N gCkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tRGvNZMa7ZJRG2r8uRMGUbbxQr6Ld5gTiR2uBT4Ms9A=; b=RDw01Iu1dz5Bw7s+O4xNSkNQqAgsbvVvOXdimNKwxp+32Q+DAIsk4Y6zGMraOcgaZm NweZ0znY3b52waIub7btbqxWvelFI8golAKQDqeQgfczUQeELHfpEmlppP0UMPZBvPDh zS0asDX9bpnrqyTpxYaUiizVA65aZG2isdTg0emSGprb2Hx61eW1fv2gab7CTUbg1ywe ThZcXFUMUmD64d8XmHcR7xfJxvUViFRNL9lEaXes0PqawPWVcYK7YadUgiCMY92Ptw7R bWCVHZ4PtaDsza1LwW97SyfIQiI7Wr4QtCTyMaRWz6oJ7x3dyk6aZ+9xjZ8sqQswyRI9 618g== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i27si8906506ejg.249.2019.10.08.05.38.34; Tue, 08 Oct 2019 05:38:57 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730608AbfJHMgF (ORCPT + 99 others); Tue, 8 Oct 2019 08:36:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54436 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730249AbfJHMgF (ORCPT ); Tue, 8 Oct 2019 08:36:05 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 566FC87717; Tue, 8 Oct 2019 12:36:05 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.43.17.44]) by smtp.corp.redhat.com (Postfix) with SMTP id 2F4CA60605; Tue, 8 Oct 2019 12:36:04 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Tue, 8 Oct 2019 14:36:03 +0200 (CEST) Date: Tue, 8 Oct 2019 14:36:01 +0200 From: Oleg Nesterov To: Bruce Ashfield Cc: Roman Gushchin , "linux-kernel@vger.kernel.org" , "tj@kernel.org" , Richard Purdie Subject: Re: ptrace/strace and freezer oddities and v5.2+ kernels Message-ID: <20191008123601.GA28621@redhat.com> References: <20191002020100.GA6436@castle.dhcp.thefacebook.com> <20191002181914.GA7617@castle.DHCP.thefacebook.com> <20191004000913.GA5519@castle.DHCP.thefacebook.com> <20191007232754.GB11171@tower.DHCP.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.71]); Tue, 08 Oct 2019 12:36:05 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/08, Bruce Ashfield wrote: > > So I've been looking through the config delta's and late last night, I was > able to move the runtime back to a failed 4 minute state by adding the > CONFIG_PREEMPT settings that we have by default in our reference > kernel. Aha... Can you try the patch below? Oleg. --- x/kernel/signal.c +++ x/kernel/signal.c @@ -2205,8 +2205,8 @@ static void ptrace_stop(int exit_code, int why, int clear_code, kernel_siginfo_t */ preempt_disable(); read_unlock(&tasklist_lock); - preempt_enable_no_resched(); cgroup_enter_frozen(); + preempt_enable_no_resched(); freezable_schedule(); cgroup_leave_frozen(true); } else {