Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp632478pxb; Wed, 18 Nov 2020 13:04:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxztdODAqEs4Wz0cPN2POlLJ0tFNV3Ip4H+ZAh5el4ec0l0Q5bEzNtF8CnpPEijCcouz6gH X-Received: by 2002:a50:da46:: with SMTP id a6mr23337085edk.272.1605733467700; Wed, 18 Nov 2020 13:04:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605733467; cv=none; d=google.com; s=arc-20160816; b=WK889lX7m9b1O0maG96k/dwaMBwVtswLgNPqOI2Bnvz7xvuo5r/A9eRgHTLzRFqZpM n1VyP9nxyDqT/D+kLah/eUBclleEhU/Evj687asD0ZmDuzw+dxJQPeiOHp1la/iQdkL4 YhudVbiVkUIvlijKr4z1U00SVwuc3ejWlFG/1aIr7ihd0xcDmM4MpDy+02XipQpdnqWc NmsanJT4TJemLM+OZU/hmiAjK7hacNeVtyldMRODqSmLFYnHtilWJVugAu3hsSDcYIcw GmlFm1taw12hPv7m5XuqTodP/RYiPOdAlgLckfpV/lOcg8FIuyFd8rP3zXdLzcLgs9Lt BoIA== 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:subject:references:in-reply-to:cc:to:from:date :dkim-signature; bh=StGYhB5SBE8UVr9KUTMzfP1mNZLhxTpQmDCI/HoV2bM=; b=qM5s2V49AwYuVkIDj24FLqhLS1MJqA75dhoYZWH4XzewFigNbzNGCX0HSUMz1anZRd LPAbosFuYvJf+/gXaaI9UeKxXofuUMWxe4YwqrF7edo7HS+U2M1YUrg9zLLk/HDytNLi InAcfFxxS3OaWG1SjAEBpdxhhs3iOik/VY6Krjo0M7OM298nSHWj9d44G82VnCkChAp2 QSDu61DaahLYH8LJnIJi09Pd7DIxYzhRggd+1OLXI9X54RKt9E/1hPB5ZFpMGZ3xBusH e2ByWNzRMikelbrZqnynMeycPgJdgwQlK+JYOShCVDxchxDa+Cq1GwVoUKWnLuABaMyk DZEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RMLhtTmG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo5si16808798ejb.102.2020.11.18.13.04.03; Wed, 18 Nov 2020 13:04:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RMLhtTmG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727512AbgKRVAH (ORCPT + 99 others); Wed, 18 Nov 2020 16:00:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:55830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726502AbgKRVAG (ORCPT ); Wed, 18 Nov 2020 16:00:06 -0500 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 01DB9246CA; Wed, 18 Nov 2020 21:00:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605733205; bh=OiRq5n6pYwtlRHg6S3gu6kn/EVUSMv2UVgnqO2UpdH4=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=RMLhtTmGmk2wGvmHCsPi7tJxbedfqVn0u5moSprReTbj/UoMPWB/GpAV7XRROGkbm YSPOexo3xa90oHw8CD+xjv7U2UVnoV2HOuSRj9w9G2zYDa7c1u0tH4LSSXncAS0fuN GSggAxDgvvmOjAnlnOsDYWukxh9FJ7rD5DjCCHgA= Date: Wed, 18 Nov 2020 20:59:45 +0000 From: Mark Brown To: Nishanth Menon , Liam Girdwood Cc: Naresh Kamboju , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, lkft-triage@lists.linaro.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Arnd Bergmann In-Reply-To: <20201118145009.10492-1-nm@ti.com> References: <20201118145009.10492-1-nm@ti.com> Subject: Re: [PATCH] regulator: ti-abb: Fix array out of bound read access on the first transition Message-Id: <160573318504.46660.3881026259686236737.b4-ty@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Nov 2020 08:50:09 -0600, Nishanth Menon wrote: > At the start of driver initialization, we do not know what bias > setting the bootloader has configured the system for and we only know > for certain the very first time we do a transition. > > However, since the initial value of the comparison index is -EINVAL, > this negative value results in an array out of bound access on the > very first transition. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] regulator: ti-abb: Fix array out of bound read access on the first transition commit: 2ba546ebe0ce2af47833d8912ced9b4a579f13cb All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark