Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3262188pxb; Tue, 12 Jan 2021 10:08:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSY2F9p+flLN6oXHxCmWfql6bV8vDeF0T0z6y2Um70HmUGGeoRm+RNyVF+PZufW4YBsNyb X-Received: by 2002:a17:906:b2da:: with SMTP id cf26mr63692ejb.176.1610474883602; Tue, 12 Jan 2021 10:08:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610474883; cv=none; d=google.com; s=arc-20160816; b=bQZ/EbQ+R1s+EorP3Q4+iEd6BUY8qIdYTLpeJ3kr/0WvjXHhYln0l/fqpCGpdPMUf5 MFMsSzP6Cu2r1qCMsFfolYp/74fYhaybiGAD1Rl/en0TVjjjMA1BsCIck8lm8QwB/HUl LHLRwW8/MaY0N05e0+LQOjmXKwkAnD+IOzzdSjqP9W9bb/whA+dLnlwbGpp874BxIVx3 SNrPxZsA/TmRwJXDTqmCrWSNQJn81+5GXhObj9+zyuDb8QpsH7TTFnnH1OCzDLYwqtkL QhC+/LcowZRLfSpgV8BAxpQTBBjIjw2KcYgLCLAl1/lgnhWonZUdgxbPWsOQbhtygoaU zVKA== 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=dOHGRhvslObM/GuzmsFc46mubvp6npjGzM0rZwSjvCA=; b=jTdkfXP5Gb+fDkdQ6VBVmD0bTxeZhS5Cme6G365sGWihbhGkYgl72ZqWuIzkcMJMak iiBJbmyhQKSutilMUXS14zZngG/dLlmMfrWIjbo97Nkz3DsnttaTxMJ1dOIJ5zAIpHqa GxyVsf/8kxAaIMytbSqaQMNEVqUzlrwo/HUZI44rj0WxV5mihzmRv+4uOSchV0f4dqOW wyKfOjO6a2EAQ3HNGwj+r9rLjIc2mwqHkCpS0xjs/aE75eypTkRfa4O9AeRl2XVUGMOn RmezEuaTDltHjy7CjM8jsEhhb3ddkBNyOt0RHdoKCMv0XaPnXZYPOWonOztXdlQNdeks HB0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=py0yJMeX; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt28si1603218edb.269.2021.01.12.10.07.37; Tue, 12 Jan 2021 10:08:03 -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=@linuxfoundation.org header.s=korg header.b=py0yJMeX; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390768AbhALSER (ORCPT + 99 others); Tue, 12 Jan 2021 13:04:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:55976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726262AbhALSER (ORCPT ); Tue, 12 Jan 2021 13:04:17 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7F02723123; Tue, 12 Jan 2021 18:03:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610474617; bh=CXtTcDMuyJD2uPirDqK5vWUSu3wwkH20NJhizi4U4aM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=py0yJMeXZCkp4tAV79O/A3LzLfLUOLetX0P9q2IvrUZS3lICBhXdv4/RlJ3wNhzM9 Tn1Tv+sygfgy0pQq2erRU6ubFwb2tBIwXvQhjhACY6UeuYk/u6q/9w6ET4WKiv5wgN YlaPiRecGtsXsiFml0uQ82mLJKVjbNmmTPqjVVaQ= Date: Tue, 12 Jan 2021 19:04:45 +0100 From: Greg Kroah-Hartman To: "Rafael J. Wysocki" Cc: Stephan Gerhold , Linux Kernel Mailing List , Peter Chen , Kishon Vijay Abraham I , "open list:ULTRA-WIDEBAND (UWB) SUBSYSTEM:" , Thierry Reding Subject: Re: Infinite recursion in device_reorder_to_tail() due to circular device links Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 12, 2021 at 03:32:04PM +0100, Rafael J. Wysocki wrote: > On Mon, Jan 11, 2021 at 7:46 PM Stephan Gerhold wrote: > > > > Hi, > > > > since 5.11-rc1 I get kernel crashes with infinite recursion in > > device_reorder_to_tail() in some situations... It's a bit complicated to > > explain so I want to apologize in advance for the long mail. :) > > > > Kernel panic - not syncing: kernel stack overflow > > CPU: 1 PID: 33 Comm: kworker/1:1 Not tainted 5.11.0-rc3 #1 > > Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT) > > Call trace: > > ... > > device_reorder_to_tail+0x4c/0xf0 > > device_reorder_to_tail+0x98/0xf0 > > device_reorder_to_tail+0x60/0xf0 > > device_reorder_to_tail+0x60/0xf0 > > device_reorder_to_tail+0x60/0xf0 > > ... > > > > The crash happens only in 5.11 with commit 5b6164d3465f ("driver core: > > Reorder devices on successful probe"). It stops happening when I revert > > this commit. > > Thanks for the report! > > Greg, please revert commit 5b6164d3465f, it clearly is not an > improvement, at least at this point. Now reverted, thanks. greg k-h