From patchwork Thu Oct 12 02:14:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 13418152 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95768CDB465 for ; Thu, 12 Oct 2023 02:14:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233929AbjJLCOu (ORCPT ); Wed, 11 Oct 2023 22:14:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231898AbjJLCOt (ORCPT ); Wed, 11 Oct 2023 22:14:49 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EBF198; Wed, 11 Oct 2023 19:14:48 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75749C433C8; Thu, 12 Oct 2023 02:14:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697076888; bh=c3G3HVGvGIs8FEY0jb1ba95NJxbK+CEvkZgGlWn3Ck8=; h=Date:From:To:Cc:Subject:From; b=WjwYMpdrkWZm3vLulM3RsDQKQum6qGR9K0uqFhKd8F01NZVWAXktIY/Ko1CBeT8x8 WRGwXIXVZTewXpB417CEpj+b0DiWl/L3YO9qkTKxPqNc+7WSO2RbwneUFB0xADWeVS Sd2Lb2J6A+YeGMh7EWLkGT8gQL3wYsLIn7K56oUXa5CVDow7lWGriOTyJ7hZmicXec gkEiDUJ3QwyH1VXFLYl5jHxtGwgwml6rTE+zvqyZ7HoR3GyuPYdUuycvPrvbWnjuCj iXgydgtZP/O7gLo0q6vFbFZIQFHpQfziccSsoFGUsrXAlCKvMnVH++uCGSbnbyItyd N8lANoTEHuT2A== Date: Wed, 11 Oct 2023 20:14:44 -0600 From: "Gustavo A. R. Silva" To: Michael Turquette , Stephen Boyd , Nobuhiro Iwamatsu Cc: Kees Cook , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH 0/2][next] clk: visconti: Fix undefined behavior bug and add bounds-checking coverage Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org This small series aims to fix an undefined behavior bug in `struct visconti_pll_provider` and add bounds-checking coverage at run-time for flexible-array member `hws` in `struct clk_hw_onecell_data` when accessed throught `struct visconti_pll_provider`. Gustavo A. R. Silva (2): clk: visconti: Fix undefined behavior bug in struct visconti_pll_provider clk: visconti: Add bounds-checking coverage for struct visconti_pll_provider drivers/clk/visconti/pll.c | 6 +++--- drivers/clk/visconti/pll.h | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-)