From patchwork Thu Feb 3 14:21:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 12734200 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DDB1FC433EF for ; Thu, 3 Feb 2022 14:23:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=S+CfDUIwiAWZDGMQG2j4GyOyNkktJQfFT4gpiO8x5+0=; b=H736gKYE8qK8Qj CK0vxhAqL3HojVsueiSlGHqkmU/1PBwnrQBnEYha0QHyPDMPxD7GSFaLn8tIJvNLdNl/F9BCpcRZ0 +jQTV7PQEWeXcTZeSHpqcIShRwL16oFHM3Gud9blB3wGpCamT+b8T/6Ktkd8kkgY/3mKr5pdu2REL JKncsNrLMFebNkCMvhvg2z6qOEZK/MU6U9a5KhMEvA4Oc+oDJB8t05OfdLDIbligOIPVX0/SdJzXV HaHcTELy6iHp4oJGsehcCMNzwmo+jaISIK4Z/WM5K1n0JBRC8snbkbW7AXZdST3UVgiiTaGqYVUA1 fo96XwOAT0zcYTjfIVyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFczy-001YyZ-Cy; Thu, 03 Feb 2022 14:22:10 +0000 Received: from mout.gmx.net ([212.227.17.20]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFczt-001YxN-Pm for linux-arm-kernel@lists.infradead.org; Thu, 03 Feb 2022 14:22:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643898119; bh=Q95YJP28mZgGg0t6civvU1EikTl0r744xu1IfdZHCAk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=WqXepv0zrGYmITAccrZjDkqgoJyAwM0+smZ7JTAXMLsV/UeyPl5kBjOM8Wkryjnmf fRS9XIqFmWzY7J0+bY3DH9QdW6nUeY+kv9EyxK0CcSFIomUE7+Mu1/EwW3IXWX2p7B JMM0qmSxt4s4ztFttQCxavuDcNIwYwHoEXRnNUVA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([185.66.193.41]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MQ5vc-1mtZuI3iBE-00M4Sr; Thu, 03 Feb 2022 15:21:58 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= Subject: [PATCH v2 0/4] clk drivers: Terminate clk_div_table with sentinel element Date: Thu, 3 Feb 2022 15:21:49 +0100 Message-Id: <20220203142153.260720-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:eH8qSdx3Bc59VEMHMpcwL0XOkQsD6fTF5VZ1W4SPuu0K5tdnCbH wzXVCXZwq1kE3p8NZ/7alwh0B1MvhS2YTAuJpuMkG08r7oUDlqpuGfWCmGpFkDb69ifww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B+Mxtv1Mh4EDEehcgRUFgKuFgvIxMsE7q VROeuiNHvy6bLJLUC90K4WL4+dd6rco7Yf2Q/EZyoRKxoHYhoJHtuELw065Ryad5NX0/H87WT AFbXYrzm6gtpFUK2kcjP0SzER1cuYHInvd9Q9p903npTIknU57yVGU7aY+o1+eGiVSuGyW8SI 815b535q3a30tk= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220203_062206_174074_4303C624 X-CRM114-Status: GOOD ( 11.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org I noticed that some of the clk_div_tables in different drivers are not terminated with a sentinel element. This may cause the code in clk-divider.c to read garbage that happens to be beyond the end. This patchset fixed all instances of this bug that I could find, except for a case in drivers/phy/ti/phy-j721e-wiz.c that is already fixed in linux-next: https://lore.kernel.org/lkml/20220117110108.4117-1-kishon@ti.com/ v2: - Add Fixes tags Jonathan Neuschäfer (4): clk: actions: Terminate clk_div_table with sentinel element clk: loongson1: Terminate clk_div_table with sentinel element clk: hisilicon: Terminate clk_div_table with sentinel element clk: clps711x: Terminate clk_div_table with sentinel element drivers/clk/actions/owl-s700.c | 1 + drivers/clk/actions/owl-s900.c | 4 ++-- drivers/clk/clk-clps711x.c | 2 ++ drivers/clk/hisilicon/clk-hi3559a.c | 4 ++-- drivers/clk/loongson1/clk-loongson1c.c | 1 + 5 files changed, 8 insertions(+), 4 deletions(-) --- 2.34.1