From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.142.43.55 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796221596; b=sxMFvOKcvM2dUd6Xx7kGo9brHjqqduL2wg4wnDJcoMMjccJIGO4IZOEqrDR51dzjR/PG Vyk8IR9pQ0Y0Cm7VJTLT/qch34cCR7VXcrDs2Yx636emnIwt/ENYtnEhnb5dy3uKmq+0P KkCAIsYnnSpQG/dJqY5QizWIvvU1r988QXlrbTakwTOOjUZNdcm1cP38inPHzbQEKc/9N ytgEmSaVecn2yRp0PF98nc0esdNurf4RKTmr1SyRgou62cyD7RukR5y51ly0HBDUxvRvQ L/LU0jwtESsETsRrMjQLCaqiSPV6FANgc5BsG46q0Lw5/szyrbCB8TqG7Qr/Nv5pUZA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796221596; h=DMARC-Filter:Date:DKIM-Signature:DKIM-Signature:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=994mPeG1M9k//wiw5uMbIMixniet5LNKhNVTbsZzTUc=; b=qnarP5x0piKSS9GweTg5C7Ai4bvfUMaQuTR8Uq45rLQGBxCv7guKzZuOrsSCY5qGdh/n 8ntKKBrtFtnc7UFoKmfcUv8EXIrUSLyhpIhzxzKWOmCI6LKa1eYe4y1lk89IAGDw7hjPa NtoQbfTNwUcyhlK5dqbZiaYzV/J/3d75NjCf6OcFVmfIz3F/UusGDF6sdvMXq8Mu8sBJ8 JWQjN9iquhRLWg5I+RMGe7fvrWm1lNA6j6VFOycB7F5LDcK7EoouFGIt+yFunRFpO6FT6 M862+nSiDPMU8U+MSea5ZbEhc/6fljCJ9IrW5SNEUmCCu+c0RdLZFyJOZoOUo1MUJjw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b="Rdt9/qnX"; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=+G3txDGs; arc=none smtp.remote-ip=193.142.43.55 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F8A8606A31A for ; Wed, 2 Dec 2026 14:26:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8F8A8606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=Rdt9/qnX; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=+G3txDGs Date: Wed, 2 Dec 2026 15:26:31 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1796221592; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=994mPeG1M9k//wiw5uMbIMixniet5LNKhNVTbsZzTUc=; b=Rdt9/qnXf1ApI/yV5o6n98p2cDiq9ekhjdnAHqw3kWoD3FTC1GlraFdZOHqCt0bZNkUayn GihA9PiAcaM8k+3JIRbMphYYnL0/ToceqSrZD9ioDbhjCYqaq41anlmRDNUViJlK0G1e+f 37o4OW0Di9NyRMI0sgq9S04TTy0zWKrFdiwNnugDp4NzhusI0Bb9cI0nedq5d1SDJT8c1S LQfV0lYFlsg7DTYZYO0CCK3/LwyLgzuTLW0bOoHFNAF/YkHU2LAPOjgaUI2TumEHbz2K7o Z7Pa4uu/cOokfAdSXh8Bf7xoNeJkTSW5wGK3acRErsucgtesoBHMKqeAfXChVg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1796221592; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=994mPeG1M9k//wiw5uMbIMixniet5LNKhNVTbsZzTUc=; b=+G3txDGsv+GH+0w/qJN3RgD864xFVFXaMUTQlVN1YtdbdkxNFWKEtuLYsai3IShom1kwMU cR+kGQKCyYxjLlAA== From: Sebastian Andrzej Siewior To: Karl Mehltretter Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, syzbot , Thomas Gleixner , Radu Rendec , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak Subject: Re: [PATCH v3] sched: Reset cpumask if __migrate_task() failed for migration_cpu_stop() Message-ID: <20261202142631.s-mB0_rg@linutronix.de> References: <20261120171658.Cf9qIU-Y@linutronix.de> <20261125172018.GD2668564@noisy.programming.kicks-ass.net> <20261125193735.qrxCdHTx@linutronix.de> <20261126104049.GC49833@noisy.programming.kicks-ass.net> <20261128172430.69629-1-kmehltretter@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20261128172430.69629-1-kmehltretter@gmail.com> On 2026-11-28 18:24:30 [+0100], Karl Mehltretter wrote: > On Thu, 26 Nov 2026 11:40:49 +0100, Peter Zijlstra wrote: > > if (task_on_rq_queued(p)) { > > + int cpu =3D arg->dest_cpu; > > + > > update_rq_clock(rq); > > - rq =3D __migrate_task(rq, &rf, p, arg->dest_cpu); > > + if (!is_cpu_allowed(p, cpu)) > > + cpu =3D select_fallback_rq(rq->cpu, p); > > + > > + rq =3D move_queued_task(rq, &rf, p, cpu); >=20 > This deadlocks.=20 Ach you noticed this, too. Was a bit late=E2=80=A6 Sebastian