Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp577239pxb; Thu, 19 Aug 2021 06:32:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPe3teIV4lVNZD1RCr9V+ddUq7jm9Dy7DdWOPRrOJ5lNmpaMrpq9pGqLMtflH3VtUpQ7P0 X-Received: by 2002:aa7:db82:: with SMTP id u2mr16833165edt.299.1629379943461; Thu, 19 Aug 2021 06:32:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629379943; cv=none; d=google.com; s=arc-20160816; b=Ut3jsmDtJD9oaugjQPnUizG3GKfRv8M2xYcXBbJyipOxQWduVdP6jW5snKC5Kx+ELd g7o9gT/KzqArNDEyDu9jbki6TnFv22cOZ3BQ+oKIYpyNJ5FqNkYwjLBPeg4quEWhNDwW YR4e81A0qTGkGwB8wQBN66BQ5znVVX0dJ6H/G6SrEnyA3jlZJl0fXedZLKMh3AvvDnGB KcmBidqjBPUFKB8KKiOtyUVtHWFz8qQBqHFHqy/GmhMDwhwlcQKytV6M4Y0RV/5VL5Zr oFsh1xdPYZfuqT0FUqPdM41TmfTsd75g2OaAQ5aTRKZFIC6LFHIQg19oEE1G4AZejbwn 6YIA== 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=gs3PHCanFIeT8KcvTAI4ClkAOvztjG8fBy9sGqN1u7s=; b=yGQbwqCq6IDuDxAnw9wqjg51Ktelu6WbG99pSJUA/4Lp52udOixg61EopHcLhx9ljD 1HRNPQdK7P3h93oZPKAT2PEtBJBm7EESHPx2Fa6iJyDaAzGIY/5HnPgPKqfEJKqpQ5TW zultT1q55bRDP9Aq8X17OTdmfLxLtWX6hhBfvWEZo3ezbDesyxE4TwWpi5x5oi7cuvX1 CLd51g475lRJTi797/hR7MCNLDz0h2XGO3Wwyv3FQ7V+BLlQuG8wj3z0IsO6CbdGA+nn GRRuEGrjoAcPISbkoESR5iKigPOxXww0jPd/kj5huknYgMp/H5nEF4b6XUqxhcnQVrL1 YrDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tycrSuyO; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si3582822ede.421.2021.08.19.06.31.31; Thu, 19 Aug 2021 06:32:23 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=tycrSuyO; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239919AbhHSN1M (ORCPT + 99 others); Thu, 19 Aug 2021 09:27:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:60192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230136AbhHSN1L (ORCPT ); Thu, 19 Aug 2021 09:27:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6259E60C40; Thu, 19 Aug 2021 13:26:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629379595; bh=PQKS7ifiKL5AQ+28N4ttww+q8yDryty2pNVgBMcPytM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tycrSuyOSNYl1aTSKDaJEM7Mq5BYIH3GS8sAOKgYCNSQLxbpEvRzzholgpUhN6vmj vgt7YP9sgB8H49kOHC9V+ANMjbMvJHcPHJrlSr9Ex2ADGopBwhbuUUMZrcfkG0gMDH ISEUc8/ZdqBVyN232BucS+SxFLLUJTBQOek8uAIwhyIvYS3ztxCcHOxO6Yldq94EHF 5uueggVbebDyajNm4f42tNzlSXCLguWsAW3Gbc5c76Le8r9mcf11CB/HbkQmaof6jS PvIybP/IT3rJ6nk5Dd8iWBLi21jz70AnZM5EV0ZLiXxF8f2+oDG4qb49vgkHwyXMnN Erbk1h2KWub/w== Date: Thu, 19 Aug 2021 09:26:34 -0400 From: Sasha Levin To: Charles Keepax Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Lucas Tanure , Mark Brown , patches@opensource.cirrus.com, alsa-devel@alsa-project.org Subject: Re: [PATCH AUTOSEL 5.13 03/12] ASoC: wm_adsp: Let soc_cleanup_component_debugfs remove debugfs Message-ID: References: <20210817003536.83063-1-sashal@kernel.org> <20210817003536.83063-3-sashal@kernel.org> <20210818131544.GL9223@ediswmail.ad.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210818131544.GL9223@ediswmail.ad.cirrus.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 18, 2021 at 01:15:44PM +0000, Charles Keepax wrote: >On Mon, Aug 16, 2021 at 08:35:27PM -0400, Sasha Levin wrote: >> From: Lucas Tanure >> >> [ Upstream commit acbf58e530416e167c3b323111f4013d9f2b0a7d ] >> >> soc_cleanup_component_debugfs will debugfs_remove_recursive >> the component->debugfs_root, so adsp doesn't need to also >> remove the same entry. >> By doing that adsp also creates a race with core component, >> which causes a NULL pointer dereference >> >> Signed-off-by: Lucas Tanure >> Link: https://lore.kernel.org/r/20210728104416.636591-1-tanureal@opensource.cirrus.com >> Signed-off-by: Mark Brown >> Signed-off-by: Sasha Levin >> --- >> sound/soc/codecs/wm_adsp.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c >> index cef05d81c39b..6698b5343974 100644 >> --- a/sound/soc/codecs/wm_adsp.c >> +++ b/sound/soc/codecs/wm_adsp.c >> @@ -746,7 +746,6 @@ static void wm_adsp2_init_debugfs(struct wm_adsp *dsp, >> static void wm_adsp2_cleanup_debugfs(struct wm_adsp *dsp) >> { >> wm_adsp_debugfs_clear(dsp); >> - debugfs_remove_recursive(dsp->debugfs_root); >> } > >It might be better not to backport this patch to the stable >kernels. The issue has only been seen on one out of tree driver >and the patch looks a little off to me. This >debugfs_remove_recursive should run before the >soc_cleanup_component_debugfs one, and as such it's hard to see >what is actually going on. We are currently investigating internally >but we might end up reverting the change, and it only seems to be >causing issues on the one not upstreamed part. > >Apologies for missing the review of this one when it went up >Mark, I was on holiday at the time. I'll drop it, it didn't go anywhere yet :) Thanks! -- Thanks, Sasha