Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp261789rwb; Mon, 26 Sep 2022 12:00:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4qIq+xcPhgEJWRZQjq0WZ5fNQP/0Bx1KcBAlOh0g+6kMDohJYFAETFizz/NExKZzQ1aEkX X-Received: by 2002:a17:902:b209:b0:178:a537:4f13 with SMTP id t9-20020a170902b20900b00178a5374f13mr23674408plr.138.1664218850802; Mon, 26 Sep 2022 12:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664218850; cv=none; d=google.com; s=arc-20160816; b=y4IorjwxCBwVhbc5BSXaO0R4guVKAveV7Fyld9kd7jHWZ4AdegrH3U6cZuMPGCmKoG X/vacF4RdNz5dzw2zhMylmZn1P4IX2efvREWD+NN2IcTNPC6afCUcRCQBU3HlOdRivvZ UBGBGMtsZAI9NHYAFkOvhbF9C2aacSA4EP/aLhgUAXROO4DAgZD57WbTMX2JBgZ+y8RQ TebDrjwJxumKh/xOB33HXFUQXZLTOawIJTVlNWMipapknf33nl62x91uLel6VBqz3yZ/ xJKhf4ghHMDwaXGi+pORepwz7UZ5hDMFL4YnnEDQYTWQH6jnc544xrSdwfg7+aMz0Mzn pgnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=yw5StaodFQZEHTV1q1ehx9OSHinWzo8zB4H1UQnl29c=; b=hSTNCI+FG4NHShKVTxPQiBDBe3J/fumRFuy2Q/TbtAWma8/98i9ULPF9ct6Rtl7n2B f8EraT5+0DkGx3fUIgacn3wzfMX4gu9+KIuDdaa63FUqoipqCP5kZbIJv/tHzylHm781 RCOLfBatC75SCNzIO5nGxiaeZ8tBbnEMo+8y4gr0ZT/DolaPZXf6JCurOGf7lSHzwcDa XEtCHMNJ1wRIlKIDYUZIeeU6vLQGcpbdy9oiZElurWRLNomX4WO8Ls9lOCJ4SIfqY6Gk wBJHuY6K79NZRqEgcrcXR8KbC+KB+EizFFptTWLCvugV+mXBJUJDvKCJLj5tWAHJ0Upv 0jRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=jk6T+bEw; dkim=neutral (no key) header.i=@suse.de; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f22-20020a631f16000000b00434e8ee92a5si18306146pgf.119.2022.09.26.12.00.28; Mon, 26 Sep 2022 12:00: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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=jk6T+bEw; dkim=neutral (no key) header.i=@suse.de; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231367AbiIZSNe (ORCPT + 99 others); Mon, 26 Sep 2022 14:13:34 -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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 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