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 CAA81C433EF for ; Mon, 2 May 2022 13:38:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385342AbiEBNmR (ORCPT ); Mon, 2 May 2022 09:42:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384036AbiEBNmN (ORCPT ); Mon, 2 May 2022 09:42:13 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11293DE9B; Mon, 2 May 2022 06:38:44 -0700 (PDT) Date: Mon, 2 May 2022 15:38:40 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1651498723; 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=rCK70YCIekd+wr/DbuX1bEqSok0FDuC7B7kL2Dida9Q=; b=4no3pu+Wyxofhs7LZK9RoECmU958FPN+Uepm/pk0UPnouutOfcuxkug2w4O0nHZVxkUS1j DUhoIdfTRq5Ci0BDqtaN2s2rpkYq7mSGh3gxMXn89TI6RrsUETT12irAV/sAityfH2nI+T mtUnLPY79AWT/gwjMfHq/DJq4YjruFZwpE6pyonCT0XzRXL56bILYdg+PSilOfEBIkuEcL EbPvUdJipBsq8ONbUjq6mwzB0uy1v6v1isV1IiwxK4vWCSowdohS1LO3Yk0RhlYmKHYt6R D3KVZyla2BqIi28HT1EffA73HloLCU7Dh7/wjoSs5JkLVIOuOnQc2zuc5O3tqQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1651498723; 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=rCK70YCIekd+wr/DbuX1bEqSok0FDuC7B7kL2Dida9Q=; b=uxpoBt/FPixZPlqItwmphRlmPiv34Wlmv4nFQwSTcymj6Tww5UrT8L0LKzZ3XYVume+84v gJw9eymNDzwkMyBA== From: Sebastian Andrzej Siewior To: "Eric W. Biederman" Cc: linux-kernel@vger.kernel.org, rjw@rjwysocki.net, oleg@redhat.com, mingo@kernel.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, mgorman@suse.de, Will Deacon , tj@kernel.org, linux-pm@vger.kernel.org, Peter Zijlstra , Richard Weinberger , Anton Ivanov , Johannes Berg , linux-um@lists.infradead.org, Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org, Jann Horn , Kees Cook , linux-ia64@vger.kernel.org, tglx@linutronix.de Subject: Re: [PATCH 0/12] ptrace: cleaning up ptrace_stop Message-ID: References: <20220421150248.667412396@infradead.org> <20220421150654.817117821@infradead.org> <87czhap9dy.fsf@email.froward.int.ebiederm.org> <878rrrh32q.fsf_-_@email.froward.int.ebiederm.org> <87k0b7v9yk.fsf_-_@email.froward.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87k0b7v9yk.fsf_-_@email.froward.int.ebiederm.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-04-29 16:46:59 [-0500], Eric W. Biederman wrote: > > The states TASK_STOPPED and TASK_TRACE are special in they can not > handle spurious wake-ups. This plus actively depending upon and > changing the value of tsk->__state causes problems for PREEMPT_RT and > Peter's freezer rewrite. PREEMPT_RT wise, I had to duct tape wait_task_inactive() and remove the preempt-disable section in ptrace_stop() (like previously). This reduces the amount of __state + saved_state checks and looks otherwise stable in light testing. Sebastian