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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3DF2C433F5 for ; Thu, 29 Sep 2022 16:15:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236135AbiI2QPA (ORCPT ); Thu, 29 Sep 2022 12:15:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236111AbiI2QOo (ORCPT ); Thu, 29 Sep 2022 12:14:44 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E86F0CE36 for ; Thu, 29 Sep 2022 09:14:41 -0700 (PDT) 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 Cc: perex@perex.cz, tiwai@suse.com, pierre-louis.bossart@linux.intel.com, broonie@kernel.org, alsa-devel@alsa-project.org, LKML 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 >