From patchwork Sat Feb 5 00:52:27 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: 12735902 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 945C4C433EF for ; Sat, 5 Feb 2022 00:54:11 +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=ASjLSAnMO6lWNhsbT2ApNx0GFSXjd8peNbC+saLDSLo=; b=RV9eVuN2C0EGF5 qW2cDwM/OJ/G57P/JExVdyh27oOY9KslJGEO6IGqKz1iN+QVVfQk54gEmeUXxQaCDlbayY62IU895 FHk6qSAdlLtJ0/f5NV5amMpMAJiR0zGxK6wa9VaFopVFGhmblUuA0C7EpIpLYC/HDYyzKfuoyF+Ah 48fYlraRH99hej8cHQOhmyn8TyWfpnQeJKiRK3sh9nfcdEYQk/oc/Vaai66xtrryBbyskDKmQRDy5 7ZIt0TQCr3xzZYCOUBMFSP8KPRQRpWyiuDCqrzGn8tyzFWQc6DLHAHSc/nlaSd2EmHLTW0TYagGuC jsbvUPz587+w11Kw2oGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nG9Jg-005seI-Us; Sat, 05 Feb 2022 00:52:41 +0000 Received: from mout.gmx.net ([212.227.17.21]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nG9Jd-005sdn-8N for linux-arm-kernel@lists.infradead.org; Sat, 05 Feb 2022 00:52:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644022354; bh=wIyL4al0PsasGkNaS8/JAuA3QXn07ABIpg5+HKjlwG8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=HsPdQi53TXygor8N6Zr0DctwaMhOCff5ecNGaa2AGIy0X8cVTGt/jGCjpm55VMvZq 97MlTclckxjK2Q7w0uXbpg5w1Gwg2ZMtQF1NQEmp30Uc5yuNUItf84cqJXj1I18Xqp 19MljIiPVkm/66eHYRkQhSM/ZmNHcmrq1ZO0VNVM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MfpOT-1mZwwF21yT-00gDkq; Sat, 05 Feb 2022 01:52:34 +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 v3 0/4] clk drivers: Terminate clk_div_table with sentinel element Date: Sat, 5 Feb 2022 01:52:27 +0100 Message-Id: <20220205005232.772726-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:9fScLoBVc1AvLdfroCYbMuG7hAIm23Ktivf4fb2VHwt7qUq1wyV P4dVNaVo9hIYZEQm3v3mss2zcKs3XWI/sByMqVsVW42UqnOtT1HIi2vqenx83jMtWPuGcSO 3DBZKVA2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7R6MsrYUruZVl9S8Vsce Jib0wfCUd0DW80O3nviVppC3Q/vZELdZzZsIyo6yjD2lqfTUW/s+4ipmb8OeAdbrezJfOBaa6 V58nIFyYc5swbflC/yfDlq6yR7e0K+RRjlezM5xymiQLPBP1DzhnKlEKkuI8vYUuVO3tYq3g6 S6dNKiD1ZTFk10= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220204_165237_663204_881BAD7D X-CRM114-Status: GOOD ( 11.63 ) 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/ v3: - Change the Actions patch according to Mani's comment 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 | 2 +- drivers/clk/clk-clps711x.c | 2 ++ drivers/clk/hisilicon/clk-hi3559a.c | 4 ++-- drivers/clk/loongson1/clk-loongson1c.c | 1 + 5 files changed, 7 insertions(+), 3 deletions(-) --- 2.34.1