Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4016985rdh; Tue, 28 Nov 2023 09:31:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVBhSwCLxh1GNFA3RfvJv0ltavw9XbWzckEr6FdSkCWQNu0fEbELHjfgKnM3sJSPWdkszA X-Received: by 2002:a05:6830:8:b0:6d8:1635:b375 with SMTP id c8-20020a056830000800b006d81635b375mr12272097otp.8.1701192712337; Tue, 28 Nov 2023 09:31:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701192712; cv=none; d=google.com; s=arc-20160816; b=aRMRW9HJFAQdHbipMwM0VRmINjSSjfkkFo1C4/8hxuWo98v7To//JEGDIoEgdZPx3O gy7W7S0a9l+sVgbavMRR2hcsOfCVV00dThKbHakLbsRiNQH97jdV1HQ49Nnil1w311kg Wk76QRH87XRp9nYaLVYCiBVvOzHipzI212PpCU/ehVrbTLzpv5O/cLDSTgUcbdM5WS5c MNQt+w9vJ+T3T1MWw58syR03QZhyQZmPkMCh8kAw1p7cm1xG9suOZIgDiKiB1qRrrjnZ ZykP6qD7SPIvSJO68ssOLi6CqoD7qNq+blqnYJnhljAjHPhLuxM4y8ZKdgyfAYvUPQ51 Pl0w== 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:date:dkim-signature; bh=TcNNfdi3KsAPDdxCjTj68O8PLD2CqbFi0ErmX0VMdVk=; fh=sUK4cE/ZQKg4Q1HRN44IHrBRCEvK6qHyh5mg/1Fvags=; b=ihynf1zAsJfNVIrGgMVQiRnhUSuOETA5hAKpZ3OgTM5qKLMO8LbtNwZN4JkzZxfaC2 ZDi+E0u3VFJk+2xx8LFQP60cS+LnVeSRjY9yaVxp3L76q22aOEldX61ZoTiZBTF+rtGp dqMFSCkN1R+49vDkZAyOlIXXcfdps6uXVqhD9A+AcX1A4cQujPelYFOPiT09KzrBFJ3p LKuliCHx2pq54BvVMpsOOe8NA5h74Hv+BKpBve7p6y2jPN2PZUokgJndhVD6z09U3dBr RF4b3NTKkRtBIu3lErv9cbqqY8XsRnb0XvbQII1q6mT6zlQO0BCaKCkOoVAnnWotSKwk qaVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=XKMB56KL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z1-20020a05683020c100b006d6473be620si4760908otq.320.2023.11.28.09.31.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 09:31:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=XKMB56KL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EBA54805190F; Tue, 28 Nov 2023 09:31:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345467AbjK1RbY (ORCPT + 99 others); Tue, 28 Nov 2023 12:31:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345622AbjK1RbW (ORCPT ); Tue, 28 Nov 2023 12:31:22 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F20C10F6; Tue, 28 Nov 2023 09:31:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=TcNNfdi3KsAPDdxCjTj68O8PLD2CqbFi0ErmX0VMdVk=; b=XKMB56KL8bYqu43xummWVXIF3E 8ryO6YWJJGoCy0bzflD5VWV5xxOItsOPC9cRyaHTAreOUA4AjWxTkD2r3D9x/NLWaEznM57QPM1Af /W4tyRPNYtmuiEK/9UJJ1CTCgGOwqaYmsV5c4liup7Bz1g+IY9JAWrQlE4S9Rw9ycJL4XwAInjHyx cH2vE8J/bEbU02zXo8zhCe219qcvi6FVSh1LyRTGOH3zUD8LkmkZ5YKn8+cj/iKKnrZwWelUgJmav wmfW5Aj2A66Se2L5X4JyNydg7lxZgHJ9QHzxS+AtcHUSqM0IteCnHmBYHRba8a2xMfuaqQLOCC6JS 7gqxfO6w==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1r81vc-00Gg2z-0D; Tue, 28 Nov 2023 17:31:20 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id B371C3004AB; Tue, 28 Nov 2023 18:31:19 +0100 (CET) Date: Tue, 28 Nov 2023 18:31:19 +0100 From: Peter Zijlstra To: "Aiqun(Maria) Yu" Cc: Elliot Berman , "Rafael J. Wysocki" , Pavel Machek , Ingo Molnar , linux-arm-msm@vger.kernel.org, Pavan Kondeti , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Abhijeet Dharmapurikar Subject: Re: [PATCH 0/2] freezer,sched: do not restore saved_state of a thawed task Message-ID: <20231128173119.GC3818@noisy.programming.kicks-ass.net> References: <20231120-freezer-state-multiple-thaws-v1-0-f2e1dd7ce5a2@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 28 Nov 2023 09:31:44 -0800 (PST) On Tue, Nov 28, 2023 at 05:12:00PM +0800, Aiqun(Maria) Yu wrote: > On 11/21/2023 1:36 AM, Elliot Berman wrote: > > This series applies couple fixes to commit 8f0eed4a78a8 ("freezer,sched: > > Use saved_state to reduce some spurious wakeups") which was found while > > testing with legacy cgroup freezer. My original testing was only with > > system-wide freezer. We found that thaw_task could be called on a task > > which was already frozen. Prior to commit 8f0eed4a78a8 ("freezer,sched: > > Use saved_state to reduce some spurious wakeups"), this wasn't an issue > > as kernel would try to wake up TASK_FROZEN, which wouldn't match the > > thawed task state, and no harm done to task. After commit 8f0eed4a78a8 > > ("freezer,sched: Use saved_state to reduce some spurious wakeups"), it > > was possible to overwrite the state of thawed task. > > > > To: Rafael J. Wysocki > > To: Pavel Machek > > To: Ingo Molnar > > To: Peter Zijlstra (Intel) > > Cc: > > Cc: Pavan Kondeti > > Cc: Aiqun Yu (Maria) > > Cc: > > Cc: > > Signed-off-by: Elliot Berman > Shall we add Fixed tag and Cc: stable@vger.kernel.org ? > Since it is fixing a stable user thread hung issue. If you want this routed through urgent, then yes.