Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp366582pxm; Tue, 22 Feb 2022 12:30:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDF/y5SM4fm5xP5eLn2vO+w6PUTRXUDmzNUDd08WT7uxN0luN9Qygs5Hfwb/AjhSMgSRYE X-Received: by 2002:a50:c29a:0:b0:400:47b6:a928 with SMTP id o26-20020a50c29a000000b0040047b6a928mr28195369edf.144.1645561815024; Tue, 22 Feb 2022 12:30:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645561815; cv=none; d=google.com; s=arc-20160816; b=aOy21Rwnw2LtiWeuSJ5staUyTNvtZhZqEn11seVBR43o3+NWRNR6j0R0J28N1YfHBj TscG08vBkBCjEZrx6Y1n7hxa2GYxRtg/ycm2e83oA6dv/gN1Xp/0+9+lCgDFAJi49usj 8CEI0aUMZI1t0suQa8n2vflKVgnlCGWRrJCOZWGkpc4j+5fdosr2vTSWxPzIVcQiwxMc QE5h11odgbW1ZNpmtLuaVZLDYL7fW40sDTFhK/hPFuT46imbwqa/L7V4HhKlmp3tpkni wcJm1HD+6GCvlyC/o4YueDAbZC0OVNK3X+nAA1Y65sUdrBKaR/0Y8HQ21en3eyJUr6ik P/lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=KIDuRiJHhzu2vEL6lRXNUGBwsDBGA5IDZz729oGpCe4=; b=KJkRg5K/Y3TXsfUJhtD61hLCAMBCx4mehx7EHq/sUUSbbGnZQwIzd+/p3Pe2+obQZ5 elYDKmuGlLgbAefxa8IbYGpXb3SZfVHbdISCM7dK5KxrPtXJg2j5AdwO+0FDp5zVJj/8 rJ0F8b4RkFv1CobQLPweqxa4VMeEdlfgdkNdYXyBI9z7SZL4kUssNQIH5o6rY3uGI6fR E4KRNxLHW4yGjDcLLPUl2Kkcd3GEKzL8qHSfAf2HLzhmAagtQMlHL+slf5VRm++B/Hto X0lxFqdp06yRv5zfzizXU1fa1fDVChJkHdRQPG0P0WuuhsdAWLkelyojRmvLN1ce9Cyx HoHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YbYnrovB; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g24si13928514edv.6.2022.02.22.12.29.50; Tue, 22 Feb 2022 12:30:14 -0800 (PST) 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=@linaro.org header.s=google header.b=YbYnrovB; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235006AbiBVScy (ORCPT + 99 others); Tue, 22 Feb 2022 13:32:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235044AbiBVScx (ORCPT ); Tue, 22 Feb 2022 13:32:53 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DCAA12771 for ; Tue, 22 Feb 2022 10:32:27 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id j17so8401054wrc.0 for ; Tue, 22 Feb 2022 10:32:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KIDuRiJHhzu2vEL6lRXNUGBwsDBGA5IDZz729oGpCe4=; b=YbYnrovBwpePB9FhMDqBVWz7PyzYr8s6ua9/B8Yw/lpYx+pwvC7oEuL5eyuE08oDrO KeJfM+UhAV9xZBYWdyBOWU1BKWn3y/V0caEF784MTsrSHXrSj5GKtN+EwsbYrPYNgF2k BunN9JfH8JRswjyeCfZzwJrWlehi5zccMJEvmcpZUJh+KJrDjiaPEyU89f1Y1vX26mpm MRDTENWVtY/LeW8/KtXDYmIyeIgCmvFC8FpeoM9yIbLo7ugLTvExJ2Vi+5ub25C9KXdd PXuG2Ulnex/B2BIKMN0q7nZ72x7pLdCxX1EkDdb+idiwvN/kiWJI/k1Cbva9h6gbaiNA ardg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KIDuRiJHhzu2vEL6lRXNUGBwsDBGA5IDZz729oGpCe4=; b=7NoE9EBpdMKB9CJMO1ReLV5ggzlnXDNyOF5zc47sQv9m8WzJcey5vz7Ty+bAAAljW3 14muwj70IAk2jZsNriRulg5eTsl/3kbuREnczoudcQ4OIwjlBfbKDvylPFKi4WX6KqF0 u8t+4DunI8s2zTc8X8/vTwtGtFvCI9P/6CZKG3KdFZORetDSlV9vYEnVxpnA2uMRND+O uEpBq97No4A3COaUnQNAoTxYxRaydNhcxMlhvWmQoQsbbwFpxY2NKD4qVeqeFA6vcd5v QnBR63SMHd2c1ZEXJaffzIEn8re1KybK85LX7pjp9d0uvgP2WuqGFxppBcZDnXqSf9yQ /1sw== X-Gm-Message-State: AOAM531aFO/H8rya0voGjQVfn+8cgir0YxpFQ/Xo8Ykmd0okPUYMWsl4 Yo1G7pIFVUoaJrcjz8ID3lS8pg== X-Received: by 2002:a05:6000:1684:b0:1ea:8afa:af73 with SMTP id y4-20020a056000168400b001ea8afaaf73mr3506799wrd.489.1645554746209; Tue, 22 Feb 2022 10:32:26 -0800 (PST) Received: from srini-hackbox.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id l28sm57642165wrz.90.2022.02.22.10.32.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Feb 2022 10:32:25 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, quic_srivasam@quicinc.com, Srinivas Kandagatla Subject: [PATCH v2 0/9] ASoC: codecs: qcom fix validation failures Date: Tue, 22 Feb 2022 18:32:03 +0000 Message-Id: <20220222183212.11580-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE 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 Thanks for pointing out to mixer kselftest and VALIDATION Kconfig. This patchset addresses some of the issues in Qualcomm codecs that are discovered with recent mixer kselftest and validations added to ASoC. Mostly these are under 1. accessing integer value type for enum controls, which is clearly an array out of bounds access. 2. Fix incorrect ranges. 3. Fix return values for put functions. Changes since v1: - removed tlv min max patches as "9bdd10d57a ("ASoC: ops: Shift tested values in snd_soc_put_volsw() by +min")" fixed the issue in core. - added checks in wcd934x_rx_hph_mode_put before returning thanks, srini Srinivas Kandagatla (9): ASoC: codecs: rx-macro: fix accessing compander for aux ASoC: codecs: rx-macro: fix accessing array out of bounds for enum type ASoC: codecs: tx-macro: fix accessing array out of bounds for enum type ASoC: codecs: va-macro: fix accessing array out of bounds for enum type ASoC: codecs: wsa-macro: fix accessing array out of bounds for enum type ASoC: codecs: wc938x: fix accessing array out of bounds for enum type ASoC: codecs: wcd938x: fix kcontrol max values ASoC: codecs: wcd934x: fix kcontrol max values ASoC: codecs: wcd934x: fix return value of wcd934x_rx_hph_mode_put sound/soc/codecs/lpass-rx-macro.c | 12 ++++++++---- sound/soc/codecs/lpass-tx-macro.c | 8 ++++---- sound/soc/codecs/lpass-va-macro.c | 4 ++-- sound/soc/codecs/lpass-wsa-macro.c | 10 +++++----- sound/soc/codecs/wcd934x.c | 11 +++++++---- sound/soc/codecs/wcd938x.c | 10 +++++----- 6 files changed, 31 insertions(+), 24 deletions(-) -- 2.21.0