Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp293087lqg; Fri, 1 Mar 2024 05:37:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUjq5CJEA4oBOH8mnxK3tDg8LWN7+33tx7qMTErUVHzdNA/i+ZkxR6f5TdQKGJjl6YPnVtTNrt4+nwAozl11Y2VUgIq0uLFKy+sjSQyFw== X-Google-Smtp-Source: AGHT+IFchdFR+GpgScSKjujEWDEdTSHgS+cdjzPQk90p0ugxf6AtAmTgNdGdlqbNKWU6Q00x+8zv X-Received: by 2002:a05:620a:4485:b0:787:1635:1dd1 with SMTP id x5-20020a05620a448500b0078716351dd1mr2151637qkp.68.1709300245664; Fri, 01 Mar 2024 05:37:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709300245; cv=pass; d=google.com; s=arc-20160816; b=ih6RaDW/Q78cSLu1I5eUQDQP24eaNyqGBzP1tY0kBqH0ShkgF4OjyHNl2bhdSbh0Hb nkAwrGYgwvJS0z4qkQBjKoTKvQ0IvsHZFNVCoxy2s8NhwFqWkrgB1gDuR+QZo76MXA9v 0W4vrqApPeifQIQC2/E/7hTUik0YX2Fv9orMPSU7s0NAAob2HeOkO0g4BoMezpIsyNZM BE6kJmdqTyF2fLa1B5nEFpNEtFTwW1yJJzsFvBL2Jpdxf4hfdbR3bQH+K4EZETXWnvBC gS+odiD66gOk0TL10LtzjhH3NH+mnZ+3oUVIIixnPzYiRx+L+7Sph/Pz00i7MhZ680SF EvhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=hYsIdn7slyGMRDx06FHVOcl6wKc/Fc3obP8a4mN3HAc=; fh=BhK/+Qry2mfR+5nuzrMGgP6RbigriAvsyG+BfWsU6vY=; b=qby03XUVeBhxAsRIpTlk3vT/EMvoZUTmSYthlCQjnVvhSS6FOe27SPE3PowNaFVGuH BfJP4XAkst5x6SCNlG095gxIBNlzk/swJat+bGtAvbdWGoRKidSP1bE/ZF/hghOARum3 KQOFXsxZY+ZT8jcmWftNgQvoWzbuJe1p/uUpQKvlnPJEqbR+J1/bp5VTHxIUzOWQ+oib DAdD+igGdjJizbPu8aaitQqdIQs3KJP+oyHEzuq1FmNAu/T94XAwG15KWzm8k3PMQ6Bu 8z2dQ8hcXthCDTBee9RRUfDoP0oX633Ih9exWZ+vVMdcGHx4c3b6621GibUQa1nq+uJi xvTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=A1PEcL76; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-88491-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88491-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id xz8-20020a05620a5e0800b007873abd40b1si3448724qkn.518.2024.03.01.05.37.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 05:37:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88491-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=A1PEcL76; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-88491-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88491-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 667DD1C222EA for ; Fri, 1 Mar 2024 13:37:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4220E6EB61; Fri, 1 Mar 2024 13:37:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="A1PEcL76" Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B250B4086B; Fri, 1 Mar 2024 13:37:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709300227; cv=none; b=EdLsED8YB5SBOUt1MKHKhwZgwXrhjufcVhYrEql70K/1crWJM1LxtI/3DeUDuEUQUNUlTuP5QUorCaqPzrIJCnS4y1stNQVlsTmuE3EwEKr4yLhBmhOopAZdkvIGcjxy7LbUUfkB+Jfq+p3YDHLQNLYSv/qSRkgN9IlURbH9V14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709300227; c=relaxed/simple; bh=BD5t+SGYCOkw0plPMwDOQ7kt+s0BaaClnOZQvqVXnUU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GI3LjpWJwlwTa0WpxgggUQ6yoAJKzS2thJHA8XM6p/kc0LBdkYYS7UGAcPHmpMuqevODqYTocIga14Nrq7YDMAuHn0bzqCaeBCKFNYCnVEXIIW5+Z0seAnPbtHK9GG6aNAgpH5VxeZAqhmwwxENhQH+zYI7Oxf9oIIMrRRq0XWM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=A1PEcL76; arc=none smtp.client-ip=209.85.208.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2d29aad15a5so24366281fa.3; Fri, 01 Mar 2024 05:37:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709300224; x=1709905024; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hYsIdn7slyGMRDx06FHVOcl6wKc/Fc3obP8a4mN3HAc=; b=A1PEcL76j9W4I3O2nLdHJaUNb4b9ezkTZcSSyxxGht5UYwrlVq0xTpx3tXKZjhvokq 5QqgS0V1P2uAjowo3Im3/cg5vnZQZOZRFgisBhaV8mF3rwNNQ8C9SzZpFvqezhb/g3jY YvVgUqsorctQE02ES/z2UaLo0+zl+nuCLwjVJlDSIf6k25rmnNkXtQ6bRq8qQ+su6ah0 FSBSP5m61x9XJfkSfJk1y9BeULUB0rVCzHvD7y4OsVWTGYA+30yjWZag8iGny6QGanDv T3/wZeWcrbK+e6z8sxwC9wS3SWIDq9bt0NyOOWXjlJHDmrZi2MKLKzXUknyptejC4vUc BeqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709300224; x=1709905024; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hYsIdn7slyGMRDx06FHVOcl6wKc/Fc3obP8a4mN3HAc=; b=ULrqtGP1d8575paNle/0ykYoIWLIaRGcc0H5Q3fFKjODE/KBybacOysJtOZ1TVyQTj 7lXwbjBtUrHIt7aKlKAysePxEbVZrJxyiyRRqDiJk5EpsG7NoQqzP8xfFk6V+6xWTeoQ 6uFR9vlsYoaopZOCxnP8+B7vEO5NGVdLvh6LaMRkIso2A8BD4GCaW1phAACCCV1+xH+o D9GW2HBlG4DX113Sz2xM5oTE3xywiKPrA9KctnwWcq2Rj8oXnMDQXfEJTeVq8AU6ZX9k kWy029kyBJzaJ2Iy2dwaS4II5UHkUZSay6Ce/7Sp4CrT6PMnZc2aVp7zQOeia2h1/4HN xmqw== X-Forwarded-Encrypted: i=1; AJvYcCWE0gs02pDtqBEV2quawihvyEdD778OPywnbv9A0L6S607XajhgAP83BYWtgAoy3vbwWOTDlodzRawQZoPM9fAWqiz9xiV31k2LPEfEJEg0iAjxBsQs8KXrmfv68gR5yFh/ykHzVslfNAgPZGE8IvX13yctLWusKj9pqsDHWtNy1RLsxzNxug== X-Gm-Message-State: AOJu0YyIIe+K/uQbezyTMTwim/aa19IpP0M4LlZBVnaMM+eQsMxCEqK6 YOdpe3wzdgurmp3WDUyC4ryI9wIDgismI4TsIiqQBzTFEiYMR25F X-Received: by 2002:a05:6512:3a85:b0:513:360d:fe7b with SMTP id q5-20020a0565123a8500b00513360dfe7bmr413678lfu.51.1709300223616; Fri, 01 Mar 2024 05:37:03 -0800 (PST) Received: from [192.168.20.170] (57657817.catv.pool.telekom.hu. [87.101.120.23]) by smtp.gmail.com with ESMTPSA id k40-20020a05600c1ca800b00412b643b5a3sm5474992wms.11.2024.03.01.05.37.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Mar 2024 05:37:02 -0800 (PST) Message-ID: <91b36da5-637d-4156-8be4-5aed55fc3c5d@gmail.com> Date: Fri, 1 Mar 2024 14:37:01 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/7] clk: qcom: gcc-ipq5018: fix terminating of frequency table arrays Content-Language: hu To: Johan Hovold 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 References: <20240229-freq-table-terminator-v1-0-074334f0905c@gmail.com> <20240229-freq-table-terminator-v1-1-074334f0905c@gmail.com> From: Gabor Juhos In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Johan, 2024. 03. 01. 10:40 keltezéssel, Johan Hovold írta: > 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). You are right maybe, although I did not find strong enough reasons for adding the stable tags. Only the changes of the gcc-ipq5018 driver has been tested on real hardware the others are not. So those does not fit into the "It must be obviously correct and tested." rule. Since the support for the IPQ5018 platform is quite incomplete as several drivers are missing even in 6.8-rc6, it is quite unlikely that anyone uses a stable kernel for something serious on such boards. Hence backporting the gcc-ipq5018 changes would not help too much in itself. Regards, Gabor