Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp183529lqg; Fri, 1 Mar 2024 01:51:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWZRe/KxfGgDWDC/A1auMAn4WKUB0pplwdLmDGJ6JBo6XaJX97Av9NNBfLZL0XzM3RHMR0ZL+4VwB8gAQJL34Ti+rjJP0r62eF3mHGGXA== X-Google-Smtp-Source: AGHT+IFneHI4lJ1GgJ40Ifg3nb21BIyKdU3buKXGtJd0dH3NJKWwtFsoAouXT4IL2BFdAHP9h1KB X-Received: by 2002:a17:90a:9e4:b0:299:9d8:d7c9 with SMTP id 91-20020a17090a09e400b0029909d8d7c9mr1198366pjo.18.1709286692649; Fri, 01 Mar 2024 01:51:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709286692; cv=pass; d=google.com; s=arc-20160816; b=R5J+ifsm3PaiJ0epHVlkPXW3GaMP4gWoPqthWfuGl5rda7luUx8R4X711sVP8Cm5py vu6VJRZE3PLi6L4b/GjPs9PR1H5ldFZcVaWLKXzP7T5P6wY2E2ofiAx8QAcaCSNopflr e+1n6+BtBoFrxpQqbjDFrpDaT2MtgmmwTj9+Oh5n9l/HX6iMa/ZyfAAIib6ljHDPFOVo 6Dn0lEUdujB83SdXaTNRWsdgLweaDh2S5q7m1PtJnXqUjrR2tnI/P4itKgoyQILGd2Qm 6Sdd2xuGMwJAcYd+4fLMUGD/F0r4itOn/GyEFDvXAiXctazCKTyyjPd1hI4QMO5855O0 CF4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=F5IiiImE420gpbTTIKj2sB4gl8WhXS0QOoprGKPhP2E=; fh=V+TJET6Ly37MLkFSCRCfyJq0bPyk3RtsggRmyyPzu/w=; b=cpZgYR85o0lQqkLj8jAq6R62tv9gKu+zssa81Cd4JBA7xOcDAwkULcK4mlT2QwxnNQ 6rFDq+xVawIyhRcSAeyUV8S/9TnptQOzKG01PyldlU/J+mIimyVWzmQHGoGUpzLFIusf wOYZHhTXLRX0BaQ6prKv3TJaZzDwDIaou6h70qFFp4VdXwQmyq1b6JclNrhhowryIH7H GY6cX6EPS1EkEYlvSscMxkAOHXDAHmzQ7fP564qLiW8xlaMqoZLQkEjPaXzSNnhnAd0S rVAHcHvcJf/vFRWc3l0DmxoAuu1lexiOpGvBUFJfyBgA3RfGlvzYDrGBzhECoq5l7rbG NrGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OZDYSkYo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id rm8-20020a17090b3ec800b0029a801335eesi3430944pjb.41.2024.03.01.01.51.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 01:51:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OZDYSkYo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88197-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D6DA6B25F20 for ; Fri, 1 Mar 2024 09:40:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E04126A8BC; Fri, 1 Mar 2024 09:39:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OZDYSkYo" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FEE223BD; Fri, 1 Mar 2024 09:39:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709285994; cv=none; b=CkMXaB04liOKXOJq09yXKTMOjUOxSkks+b9bmqzJ5/kwF0/kNUl3Ts4TwqF7Uq9Lop5lhiKqcvw/5QAbD0GYQKAp6lSu+9WQDsQ3e29rVneuQw4sL3I9MOCzKKNzWMp9ycvMvvf15OZRg0w/YiwJIjIFwSTP2cjDsKtuc8V/f8I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709285994; c=relaxed/simple; bh=2H+wqfnKRplzPg5l6zYg26c/tyBENVooq2HXypPunyY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TzHspioT8+qU6ZIuEiKKGvopzwc22eij77wAvmj5S+gXoA2eAhRw0PHcDFsiBfj0sjeuy5IWenXz1p03pAUmneiBLvvP4E8Jo+JJb9lOi8e21R1OcsiN7g7mxCalOfV1c47vDaz6yMV1Bw+/aGVgp2HLCloU+bEKLDanHhjWt24= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OZDYSkYo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79189C433F1; Fri, 1 Mar 2024 09:39:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709285993; bh=2H+wqfnKRplzPg5l6zYg26c/tyBENVooq2HXypPunyY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OZDYSkYoJ2RjOFFVciA0Fsl1z/GJ9YxbNRyWwBBXRHjkQPIZ6Mx+B6ko/uiQZlOtG 2seV4/AIoopDlGhLxeNPnGrth6CjMm6vT/FbPd0pokIHZ7hbFys+CiWVCcf8ZZSd1M 30GY3nEvEi9oKpRGKVmI8lyjhkD4LhOaREMEuWsvzWir2+pe47Iit/qfmAdbXYwfSY Oaj0DLDvTMNvLe30h+KjhYe50WBYy/jFEkVeEwhDMiBmSTeClO3ZIouTkUuwOuazdP ZKxDil2QbzL7jO8GUGwrq5oRJc/HEcUT/LI2JN/bOgl/j7G1+NkObsLQG27dfoZhWP EOgSpn/OpRW3Q== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rfzN5-000000007Yk-2BYQ; Fri, 01 Mar 2024 10:40:04 +0100 Date: Fri, 1 Mar 2024 10:40:03 +0100 From: Johan Hovold To: Gabor Juhos Cc: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Sricharan Ramabadhran , Varadarajan Narayanan , Gokul Sriram Palanisamy , Devi Priya , Anusha Rao , Bryan O'Donoghue , Georgi Djakov , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/7] clk: qcom: gcc-ipq5018: fix terminating of frequency table arrays Message-ID: References: <20240229-freq-table-terminator-v1-0-074334f0905c@gmail.com> <20240229-freq-table-terminator-v1-1-074334f0905c@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240229-freq-table-terminator-v1-1-074334f0905c@gmail.com> On Thu, Feb 29, 2024 at 07:07:46PM +0100, Gabor Juhos wrote: > The frequency table arrays are supposed to be terminated with an > empty element. Add such entry to the end of the arrays where it > is missing in order to avoid possible out-of-bound access when > the table is traversed by functions like qcom_find_freq() or > qcom_find_freq_floor(). > > Fixes: e3fdbef1bab8 ("clk: qcom: Add Global Clock controller (GCC) driver for IPQ5018") Good find! Looks like these should be backported to the stable kernels as well so someone should add: Cc: stable@vger.kernel.org to all patches except possibly the sc8280xp one (that camera clock controller was added in 6.8-rc1 so that patch does not need it in case you can these fixes in before 6.8 is released). Johan