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 BC0BDC636CC for ; Tue, 7 Feb 2023 13:33:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231247AbjBGNdN (ORCPT ); Tue, 7 Feb 2023 08:33:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232170AbjBGNdK (ORCPT ); Tue, 7 Feb 2023 08:33:10 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 410C823869 for ; Tue, 7 Feb 2023 05:33:01 -0800 (PST) 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-out2.suse.de (Postfix) with ESMTPS id EC5D82091B; Tue, 7 Feb 2023 13:32:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1675776779; 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=qujY+mE6PZAdp5jcLzZuoZd/QamUAXdWhzPJJ846N1A=; b=SFGccqUTqpW5keD3a9CAznasFiEgyHDPY7G7QY7dW86Q+wD7O3GJUGYkpIE6nRuurcprOd D4NXYsYiy2wI5yH3sAwbjHgS5vatGHZw93usoNPDkiCAddNrXkPQ8Oxqws6UUw0JymPtPl 3wswz4OI4U4/apvJ+Pq0wIgcpzGNmio= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1675776779; 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=qujY+mE6PZAdp5jcLzZuoZd/QamUAXdWhzPJJ846N1A=; b=RR6/pvd25avyW98EP5UwffMg+RLIT9S+q8ZB+2J7S8k0ZfPVzS6UFJBc5IXuZQ0Y7Ejm26 m2wnhADHRvLI/CDg== 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 C4EB4139ED; Tue, 7 Feb 2023 13:32:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id CJ9ZLwtT4mOOdAAAMHmgww (envelope-from ); Tue, 07 Feb 2023 13:32:59 +0000 Date: Tue, 07 Feb 2023 14:32:59 +0100 Message-ID: <87cz6lzjlg.wl-tiwai@suse.de> From: Takashi Iwai To: Artemii Karasev Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH] ALSA: emux: Avoid potential array out-of-bound in snd_emux_xg_control() In-Reply-To: <20230207132026.2870-1-karasev@ispras.ru> References: <20230207132026.2870-1-karasev@ispras.ru> 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 Tue, 07 Feb 2023 14:20:26 +0100, Artemii Karasev wrote: > > snd_emux_xg_control() can be called with an argument 'param' greater > than size of 'control' array. It may lead to accessing 'control' > array at a wrong index. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Signed-off-by: Artemii Karasev > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Thanks, applied now. Takashi