From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 380E6C433F5 for ; Tue, 26 Apr 2022 05:51:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229854AbiDZFyx (ORCPT ); Tue, 26 Apr 2022 01:54:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbiDZFyw (ORCPT ); Tue, 26 Apr 2022 01:54:52 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5791C68999 for ; Mon, 25 Apr 2022 22:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650952304; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=K9Lg5luhyl9InPs/0fzK0Dw+sdTPiGM7u7co27SwQhs=; b=c/zYwGDTSU4+7+637iARCb3cNqsvPXsbIxscyQuVCNUdVmm9T/LmdceYFczn9szlvdGRHk PczkjlaaJRweQgF4y2s126lHfPnFN1qm/SoJhZ8iE/euZIyoLW4okrUeyLkyTuf6NNPoq0 V03FM9rYoNUhUEHF+QEUL9A0TJhYKWk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-361-InEJlrUuMz28BvC3F_kEng-1; Tue, 26 Apr 2022 01:51:41 -0400 X-MC-Unique: InEJlrUuMz28BvC3F_kEng-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4E753811E90; Tue, 26 Apr 2022 05:51:40 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.40.192.150]) by smtp.corp.redhat.com (Postfix) with SMTP id 26184568657; Tue, 26 Apr 2022 05:51:24 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Tue, 26 Apr 2022 07:51:33 +0200 (CEST) Date: Tue, 26 Apr 2022 07:51:23 +0200 From: Oleg Nesterov To: "Eric W. Biederman" Cc: Peter Zijlstra , rjw@rjwysocki.net, mingo@kernel.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, mgorman@suse.de, bigeasy@linutronix.de, Will Deacon , linux-kernel@vger.kernel.org, tj@kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH v2 2/5] sched,ptrace: Fix ptrace_check_attach() vs PREEMPT_RT Message-ID: <20220426055122.GA29684@redhat.com> References: <20220421150248.667412396@infradead.org> <20220421150654.817117821@infradead.org> <20220425143537.GA12412@redhat.com> <20220425183343.GM2731@worktop.programming.kicks-ass.net> <87pml4llvm.fsf@email.froward.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pml4llvm.fsf@email.froward.int.ebiederm.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On 04/25, Eric W. Biederman wrote: > > I don't see JOBCTL_TRACED_QUIESCE being cleared "if (!current->ptrace)". As Peter explained, in this case we can rely on __ptrace_unlink() which should clear this flag. Oleg.