Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp966205rwb; Tue, 27 Sep 2022 06:53:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6HZfmHcfJdCGz5iIo5+uZYXkSz+WalcKEprbx+atkuvSNpNRq04y1JkZ+a+B3LbEZ+2co4 X-Received: by 2002:a17:90b:3809:b0:202:b482:b7d6 with SMTP id mq9-20020a17090b380900b00202b482b7d6mr4629746pjb.209.1664286830798; Tue, 27 Sep 2022 06:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664286830; cv=none; d=google.com; s=arc-20160816; b=ih09I+0zmqlDlzCRuqvB92G45mjAkOiOeANvjTIwryv4DlAIGU7efnm5K47ccw+ykF gDvWf76HpMP/BnV5DhPqbnMvvYNF2spEtTDqSWaJa10KO8rRWwpz4zCzZ66Vk84aqHjG K24AdE2XOpjqRyP79dhkDJXt78lE/E9oo5Z+DnRHvzW5CTT5IHYYc+BAZErFBZCOXvpa KKckfOS0AJBCsWjMP4Ok1OlRhcN8ekU5/g9aSem6C/f/xOp+guJj1vGRu0ThmBM7rskI UKsAlRvLmH+KoIoB2+DE9adZlwZlIzxRFMt3ypcoADkyB5k3ViA35LTR5mj5Yr8K+7GL vJ7w== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=jnm/u5zPVGTHVyx11EQaARVNrMDnK7CPU4XqklKQG8c=; b=gmMbclmm69r1/Mxda+D3bRNMW0k0Or1YvroVes9i+lbh102wQaHwdlQROWhyi6PepB cIOmiINacrxG2+O2HBFc0yvuAk1n4RzCtaSyPokNfiFbAMtM0uZAKKLLundm4R1UZW23 EKxKHUi0rLYyWwQ/wnq4LNO+hKKTqUd3uP0lQ7/xzNe6CGR5ifRnq20UG+C/8ZfoCjz0 OkrW+YTaevRBhbpPUxjs1JWHjTf0U2RxqO6CXKP6ScJXdWJi+Ld4amBc7PdODPfDHPXx H43B/mTvvqVxu+U1rRFTqCJdEtcWvNyUNashts1VhJ3+wLv5afi4d122u/knTsj52ce3 xthQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a170902ce0300b00179eed9bdf2si1564007plg.497.2022.09.27.06.53.39; Tue, 27 Sep 2022 06:53:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232156AbiI0L4c (ORCPT + 99 others); Tue, 27 Sep 2022 07:56:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232147AbiI0L43 (ORCPT ); Tue, 27 Sep 2022 07:56:29 -0400 Received: from hi1smtp01.de.adit-jv.com (smtp1.de.adit-jv.com [93.241.18.167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11DE715566B for ; Tue, 27 Sep 2022 04:56:25 -0700 (PDT) Received: from hi2exch02.adit-jv.com (hi2exch02.adit-jv.com [10.72.92.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hi1smtp01.de.adit-jv.com (Postfix) with ESMTPS id 59A42520214; Tue, 27 Sep 2022 13:56:24 +0200 (CEST) Received: from lxhi-065 (10.72.94.21) by hi2exch02.adit-jv.com (10.72.92.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.12; Tue, 27 Sep 2022 13:56:23 +0200 Date: Tue, 27 Sep 2022 13:56:19 +0200 From: Eugeniu Rosca To: Amadeusz =?utf-8?B?U8WCYXdpxYRza2k=?= CC: Eugeniu Rosca , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , , , Yanmin Zhang , Eugeniu Rosca , Jiada Wang , Zhang Yanmin , Ramesh Babu , Dean Jenkins , Ramesh Babu B , xiao jin , Cezary Rojewski Subject: Re: [PATCH] ASoC: soc-pcm: fix fe and be race when accessing substream->runtime Message-ID: <20220927115619.GA4547@lxhi-065> References: <1664210154-11552-1-git-send-email-erosca@de.adit-jv.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.72.94.21] X-ClientProxiedBy: hi2exch02.adit-jv.com (10.72.92.28) To hi2exch02.adit-jv.com (10.72.92.28) X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Amadeusz, On Di, Sep 27, 2022 at 09:34:49 +0200, Amadeusz Sławiński wrote: > On 9/26/2022 6:35 PM, Eugeniu Rosca wrote: > >From: xiao jin > > > >After start of fe and be, fe might go to close without triggering > >STOP, and substream->runtime is freed. However, be is still at > >START state and its substream->runtime still points to the > >freed runtime. > > > > Well if it is being freed, maybe pointer should be set to NULL instead in > place that happens? > As soon as the agreement is reached that the patch is still relevant/useful on the latest vanilla, I think this review finding will receive proper attention. Thanks, Eugeniu