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 EDA69C32771 for ; Mon, 26 Sep 2022 18:13:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231402AbiIZSNf (ORCPT ); Mon, 26 Sep 2022 14:13:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231365AbiIZSMq (ORCPT ); Mon, 26 Sep 2022 14:12:46 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72BAD82D1E for ; Mon, 26 Sep 2022 11:01:28 -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 6CDA221FE3; Mon, 26 Sep 2022 18:01:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1664215286; 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=yw5StaodFQZEHTV1q1ehx9OSHinWzo8zB4H1UQnl29c=; b=jk6T+bEwtInj9L0T4f8Apdicm3roYSDKpHbJaINWSjX7R0Y8IMkEVIySAmkns1QmfKmqgF nGgDXWTYXxcxfywYDKLFjWh7pBDVEcsp3s+xiEbccsL+6+yySwMXsny8kRJGv+d0Vv+DnH tLuMprP3hup2r7gGIX20hlxZxTitJqs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1664215286; 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=yw5StaodFQZEHTV1q1ehx9OSHinWzo8zB4H1UQnl29c=; b=l4NeicHhqv8N+WJ34cNPX/YGK/WA43PUVQN71cTxL5ZN8fZMvNozhJUSEcZgmsvi71e0rK kzJXGwPEaM/vYjAQ== 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 3FCEF139BD; Mon, 26 Sep 2022 18:01:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id TeyzDvboMWMrYwAAMHmgww (envelope-from ); Mon, 26 Sep 2022 18:01:26 +0000 Date: Mon, 26 Sep 2022 20:01:25 +0200 Message-ID: <87leq6gglm.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> 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 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