From mboxrd@z Thu Jan 1 00:00:00 1970 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A4654C433FE for ; Thu, 29 Sep 2022 16:15:40 +0000 (UTC) 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 7E171AE8; Thu, 29 Sep 2022 18:14:48 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7E171AE8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1664468138; bh=9NxdpSp7XqdLTZ8DtjNtu+BprN0em1gZ99J8HaIa2rg=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=r4m+kyh/aoQou0YtJo+VY1XJX7EykSTRZTWBJ+YJFk3RL9xGXOFGby2fGpXBkKDbl rFxLxvyG5OJRBmkjwV5azqQhL0mbL09NDTwnd42POczsUaTmZBdGGdwci3OOtdZ5lV S7JcwnrI4lhAMvHKHR02+b7Xhgm5j2EC+WsaddS8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 18DA8F8016D; Thu, 29 Sep 2022 18:14:48 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6C774F8023A; Thu, 29 Sep 2022 18:14:46 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (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 7E98EF80109 for ; Thu, 29 Sep 2022 18:14:40 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7E98EF80109 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="WEfU42mg"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="TfiU9VLf" 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-out1.suse.de (Postfix) with ESMTPS id 1724C2197E; Thu, 29 Sep 2022 16:14:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1664468080; 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=As/OAtjAybrvjP0EinXvUSzkP8e20KVDEibOtPxtOXk=; b=WEfU42mgY8wWXWklPfLOcxwt1eKUciDdzWXcD8QJ93E4e0joJFf9JTj1v4Cjk8McaSu/Lo HVsqoaWUUYON8ddZSD7Eq+YWiX/mqDva8zYkCm63Ya75A4CXDML0L+JcFcTISeSWHJx0vG L48cKUbRVbtsAg63DEJD0SbNeKd9XsQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1664468080; 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=As/OAtjAybrvjP0EinXvUSzkP8e20KVDEibOtPxtOXk=; b=TfiU9VLfxEnBSnp5aRYCCReoVtrglwnC6OXJrydeQz21Fsf3iTBXJr4ESRtFw+bznJ5F3R ZROBLW4jg5x+F0Cw== 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 D8EF01348E; Thu, 29 Sep 2022 16:14:39 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 3cmbM2/ENWPXbwAAMHmgww (envelope-from ); Thu, 29 Sep 2022 16:14:39 +0000 Date: Thu, 29 Sep 2022 18:14:39 +0200 Message-ID: <87tu4q6tu8.wl-tiwai@suse.de> From: Takashi Iwai To: butt3rflyh4ck Subject: Re: A divide error bug in snd_pcm_write In-Reply-To: References: <87v8pa306x.wl-tiwai@suse.de> <87leq6gglm.wl-tiwai@suse.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Cc: alsa-devel@alsa-project.org, LKML , pierre-louis.bossart@linux.intel.com, tiwai@suse.com, broonie@kernel.org 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 Thu, 29 Sep 2022 16:52:10 +0200, butt3rflyh4ck wrote: > > This one fixes the problem. > https://lore.kernel.org/all/20220926135558.26580-2-tiwai@suse.de/ Thanks for confirmation! The fix should be included in 6.1-rc1. Takashi > > Regards, > butt3rflyh4ck. > > On Tue, Sep 27, 2022 at 2:01 AM Takashi Iwai wrote: > > > > On Mon, 26 Sep 2022 19:16:48 +0200, > > butt3rflyh4ck wrote: > > > > > > The latest kernel upstream. > > > Yes, but using mmap, you can map the runtime->status page, and then > > > copy the data through memcpy to overwrite the status->state data, or > > > even more, which is incredible. > > > > Ah, then that's exactly the case my latest patch set covers. > > Either the first patch or the second patch alone should work. > > https://lore.kernel.org/r/20220926135558.26580-2-tiwai@suse.de > > https://lore.kernel.org/r/20220926135558.26580-3-tiwai@suse.de > > > > Could you verify either of them fixes the problem? > > > > > > thanks, > > > > Takashi > > > > -- > Active Defense Lab of Venustech >