Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp183756iob; Mon, 2 May 2022 16:32:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb1g3NgTXl0zm1YmqEtlWYOj71HYHK4Cwv6Gi4S0MKnKsj1qrFyiqYL4jN5RTDbnMwrKWv X-Received: by 2002:a17:90a:ee96:b0:1dc:6680:6f2d with SMTP id i22-20020a17090aee9600b001dc66806f2dmr1697911pjz.174.1651534355419; Mon, 02 May 2022 16:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651534355; cv=none; d=google.com; s=arc-20160816; b=YEmXrNQDZTWo4xu2eZiMpYUkKAoxBEk2N0XUO2hJ+NBq2+TuBuKzJbTgcO9z+fjaCT 9MUkxko3gOKEoT/rKCeC1e/dC69248arUEorF8af2ppRpEU8SOExuWcyswvoyECuva8j FTPfTcREqSAVVNiFLTTOYIdDjIr4dOK1/XngCb+rWs9OrdEkac090bjnNYsmC+6FzMVk 2xTRwf6N4qoEain4bommVqqMY+S+6+Hl/NSx5IlIYpvjFRC9rtyDmja3IolJD3F3DI5q 0G7LZaq1JEQPkalmndQtoLAbiedKcxPdgGZlcBp6IBmwrOabtTXUvCHOJ/zz/CZs6ETd q4XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=rCK70YCIekd+wr/DbuX1bEqSok0FDuC7B7kL2Dida9Q=; b=Kx99WGHWp3KiZV8oXSRQDTENc8OiUgM3tAOsXDg8mvCdtwoGJtuhOAvJ6SmcyL/8ZY PJFZLRZ9B/X9F8HkjmoRRkFxcolCvbVWJOtRBL2ntb9E+Ey8m4rTMN+FMF/wRLATDIcr QofK+OrSG+tprly14tphmef1wppd0yHaOPAzUJx5XwOA7ciHGe8VW1eiz/nVqasRX4rX f4qSWZ6HgGhvy8331//NewNFqaCB+i80t3oc0RK5Fmz8aJzEE00X8iMP0yMdd//l94VG oJcLcVPSJB7Piy1beCmPQp9tfrG/xxNIWP0CgPgdSg8Cbdgmnfj42sWbwr1D/Odn/D6n 7AsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4no3pu+W; dkim=neutral (no key) header.i=@linutronix.de header.b="uxpoBt/F"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d1-20020a170903230100b0015eb7d1b2eesi29033plh.67.2022.05.02.16.32.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:32:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4no3pu+W; dkim=neutral (no key) header.i=@linutronix.de header.b="uxpoBt/F"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0CEC52673; Mon, 2 May 2022 16:32:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385322AbiEBNmQ (ORCPT + 99 others); Mon, 2 May 2022 09:42:16 -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> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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