Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp347056pxh; Wed, 10 Nov 2021 02:48:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwdNExhx70VN1dv3FRhSL/yNIjsmMBwoZBBGRgAXdYvmRy4AMw/weGNoQG2m/SZ/aW2HUcq X-Received: by 2002:a05:6e02:18cb:: with SMTP id s11mr10541739ilu.266.1636541287967; Wed, 10 Nov 2021 02:48:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636541287; cv=none; d=google.com; s=arc-20160816; b=LkkhJvD/qwjdg/5i7UuCeTxhxxhmz/ASs0Xrog+ChlB3G5bAqMnOUOTBv0cQ3IBNvx 8cI2JNTMLkek7r+1pxI476gVk6U0tOSExfKm+TX3LGRbLmJI0Lpf528HfJRikR0j4iwr 3MUo07fWDS6fu27d2Se4FffGeibkNinGEipayCLB8smG7B+vpljH1mSGivcbPSj9RYYd I7oQNQGYB5sXRR3KYKrSmz2Uj9UA9PMikH2Zni31lcJMVGKCHBxGY9fHPucecJM4hCu1 Eyi6JosrEfyaB0KL7KK1Ta2Wf6umfIJKrXmVtqCClLp8FdSL4zQi+zi4aIjtH/dGaSNQ cw/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=GUpTvZNhgXgXObp506QhXsYR81By+iDPFzAbaJOpy7E=; b=hpYNkAclLlOXO3+RsI9VyTHeHMa0mkVnoB76OHjY7ydTxEkntOeL0/mgCluUCkcVuQ ZjSbwm6cw8e1iMyTp4tksvr+eFfEhOLGqi3Pp+eZ5YLLZcTXVZMI+22Jx7CTjaPccyjf IM7hFOO0b2GhPyhQG5RH6mI6qXVZ1o/GEDCnVvZBvS/IId+FM5+yo5cP0CHd6fcMA2ZE z/zTGAHGAqdqPrAgW3LTUsAwzF3fZu+9u6Ka3+0xks7nXsBr2cKb1NrXobkuzoC1A48J OiiJYZ5rVG4Es7S5PRTWgraqJYtUfzieM+tQkyD5FMEONx3XTS37BBwvRHWx8xuzcS0I rwzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=TnHZI7aC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si11394082ild.31.2021.11.10.02.47.54; Wed, 10 Nov 2021 02:48:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=TnHZI7aC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231158AbhKJKsA (ORCPT + 99 others); Wed, 10 Nov 2021 05:48:00 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:39196 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbhKJKsA (ORCPT ); Wed, 10 Nov 2021 05:48:00 -0500 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id AE4A31FD3F; Wed, 10 Nov 2021 10:45:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1636541111; h=from:from:reply-to: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=GUpTvZNhgXgXObp506QhXsYR81By+iDPFzAbaJOpy7E=; b=TnHZI7aCI7ViBAvgZ+UQC9O8UDlyQVUJBgV0QPZ0nOaVXq6ntU/j3fSteNuQoFjxEp4pqA sB7sLjxYQF6EqJg+SNCJbDVuQgSjEdwqUYMaWjVeLKGDZj1qhnwUo1wveJNtfIjldukL/C KQp3O7Wh6+WSEy66KMHjfi9VSa6x7u0= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 6A92A13BEA; Wed, 10 Nov 2021 10:45:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id JyhlGbeii2GhQAAAMHmgww (envelope-from ); Wed, 10 Nov 2021 10:45:11 +0000 Date: Wed, 10 Nov 2021 11:45:10 +0100 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Vincent Guittot Cc: Peter Zijlstra , Sultan Alsawaf , Anton Vorontsov , Ben Segall , Colin Cross , Daniel Bristot de Oliveira , Daniel Vetter , David Airlie , Dietmar Eggemann , dri-devel@lists.freedesktop.org, Ingo Molnar , John Ogness , Juri Lelli , Kees Cook , linux-kernel@vger.kernel.org, Maarten Lankhorst , Maxime Ripard , Mel Gorman , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Zimmermann , Tony Luck Subject: Re: printk deadlock due to double lock attempt on current CPU's runqueue Message-ID: <20211110104510.GB20566@blackbody.suse.cz> References: <20211109213847.GY174703@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 10, 2021 at 10:00:35AM +0100, Vincent Guittot wrote: > Is it the same SCHED_WARN_ON(rq->tmp_alone_branch != > &rq->leaf_cfs_rq_list); that generates the deadlock on v5.15 too ? > > one remaining tmp_alone_branch warning has been fixed in v5.15 with > 2630cde26711 ("sched/fair: Add ancestors of unthrottled undecayed cfs_rq") AFAIK, the warning is typically triggered on v5.13 when CPU throttling is employeed. The cfs_rq list is mis-ordered but it shouldn't be fatal. But the throttling currently (since v5.13 too) also exposes a race on task_group removal that can lead to corrupting the cfs_rq list (another thread [1], I'll leave this thread for printk (non)-locking). HTH, Michal [1] https://lore.kernel.org/r/20211011172236.11223-1-mkoutny@suse.com/