Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 550F1C433F5 for ; Fri, 5 Nov 2021 09:14:59 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BF75B61262 for ; Fri, 5 Nov 2021 09:14:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BF75B61262 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id E435B1663; Fri, 5 Nov 2021 10:14:06 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E435B1663 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1636103697; bh=GiLPqAge2dsWNkkftcfd8a4ooEPgoVX3MBmUT/LdNAU=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=HAXkJp88bBFFWuLVDBnsn4L5bnGebcitBlqTgxn/i3Tr9BqpuZgEIRAXDdMcRb/R3 8TzaAHSY4HuUR/7D86z7A3k840gXEkgQR1be5mQ1lTPBmMVTo265hnPV5vurje8PfY suwSKtHnusDMByvYg2CucM0kF4e/oL4hsbWaKyDs= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 8F019F80269; Fri, 5 Nov 2021 10:14:06 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 64419F80279; Fri, 5 Nov 2021 10:14:05 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 31078F8012A for ; Fri, 5 Nov 2021 10:13:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 31078F8012A Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="umHq1ME4"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="HqZBUBZP" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 007571FD36; Fri, 5 Nov 2021 09:13:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1636103639; 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=JgTYwQBkTP0N/BiWHVP1GDmsFIEQP6KHCRn1HeuAnNI=; b=umHq1ME4T7FAgSSJRy5z4f11O3etx2ncn3vSPbCsshBEJViOURR79wGpqEYpfU0L2sl8fp 0Gz+DwYYHTbrQcyz+mdf4pXI3a+CBNe5CM/95sGqsZ8AwiHov7te3Y8a36cTHWgUrVlB/q wYYp5mL0XgAMqRib/kSoNrSuFXvhrLA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1636103639; 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=JgTYwQBkTP0N/BiWHVP1GDmsFIEQP6KHCRn1HeuAnNI=; b=HqZBUBZPf1agJ4Na8MSEnIlUIR5lkBnLqmjeU6NMlz8PfDjrXzVSKDkNoU7iHtW9pKoSVP AFVdjoSYhus9ztCw== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id DF6822C144; Fri, 5 Nov 2021 09:13:58 +0000 (UTC) Date: Fri, 05 Nov 2021 10:13:58 +0100 Message-ID: From: Takashi Iwai To: alsa-devel@alsa-project.org Subject: Re: [PATCH] ALSA: timer: Unconditionally unlink slave instances, too In-Reply-To: <20211103160707.21928-1-tiwai@suse.de> References: <20211103160707.21928-1-tiwai@suse.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: Wang Wensheng X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Wed, 03 Nov 2021 17:07:07 +0100, Takashi Iwai wrote: > > Like the previous fix (commit c0317c0e8709 "ALSA: timer: Fix > use-after-free problem"), we have to unlink slave timer instances > immediately at snd_timer_stop(), too. Otherwise it may leave a stale > entry in the list if the slave instance is freed before actually > running. > > Cc: > Signed-off-by: Takashi Iwai This patch changed the behavior of snd_timer_stop_slav(), it doesn't return -EBUSY. I'll submit the revised patch to cover that, too. Takashi