Message ID | cover.1698117815.git.gustavoars@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1693809vqx; Mon, 23 Oct 2023 20:30:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGtrgMXcFnSnBMyV/Odnk6Y3c3OUOebTewrCt5kBY4TauimZ559/1vvSkAP1GxduAP21vIG X-Received: by 2002:a05:6a00:1142:b0:6be:23dd:d612 with SMTP id b2-20020a056a00114200b006be23ddd612mr10027869pfm.16.1698118248413; Mon, 23 Oct 2023 20:30:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698118248; cv=none; d=google.com; s=arc-20160816; b=gEaQ2J68BhDyIWmhJCm5gdqOzbxTDKv3UBgI54cs6AiC+UoypoJDws+Xl4oZsMUIyu NoILAYUwAYMGv2NPwkFTWHP2VlmwcpylmAQTI9XDl4lAxaS93xt8aNsfeefThh1YvSw1 LQmqUCjr7mGcs04/LYCf4aE+9L3Roicdc/pR2538ecI16B+3Z2KbgllRo6eXhJoH/X0w xLe1Aa13ELLSaCYkcrwBReFxSkYFlWCpK7PMGRHKqiZSUjm50iVAcPYwD15vaAVDAhDp gl2/RNuRGGFEU4nI/KjHnnB+PkHcRUTzCwytEE6b+lm47yBUYzFBNrMwzGmZ8vR+6ZZ4 oB1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=TGemeQvJ7ph/ZKqzc1ZVDTHvgG/359czJGCP8CEqmLI=; fh=qaZb5b+SzlEk47W9CGrElWwI4fh1SuXzc0IA2pDWKLg=; b=hHU2++o5spyjcA1yZ4fWgekWoI8ur2qDx730SYGZbIN4irQRV1rqonzR4TAQQBGrhR VYmA+dZG8tPrVp5dn5K65zNvy47fuz86Q1aoifwM61vaGMoxkC3hOVGElwAAyjWSh7ZE SkLAidO0HHgp9dA99Qwts7A8jG09xfPeHKHO20m6EwR6oAo//FgsIi4+8xpHR6DjSqwU EABIgqDHM++Nc5lN0GRjiUjrOB7+n+Tkp5o9gCBdIQZwAvqS/dLe/iyIlS2RRLJnqb/G rj3aJjl6+QwsNnG0eDVcddFa2mFETCgmHy4MHNjbjVY6iey6EKb/0Yi+EIt1zfvpq4jr ONOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KHQ7sKHW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bu15-20020a63294f000000b005b8edb11b01si210836pgb.142.2023.10.23.20.30.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 20:30:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KHQ7sKHW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1A2AE8032023; Mon, 23 Oct 2023 20:30:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232041AbjJXDaL (ORCPT <rfc822;aposhian.dev@gmail.com> + 27 others); Mon, 23 Oct 2023 23:30:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232029AbjJXDaJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 23 Oct 2023 23:30:09 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2E1FBC; Mon, 23 Oct 2023 20:30:06 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93ECBC433C7; Tue, 24 Oct 2023 03:30:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698118206; bh=m6aDnL/Wqs3CWj+B9Tf1lfn61pxuZpDr4pD8/+/qlYU=; h=Date:From:To:Cc:Subject:From; b=KHQ7sKHWH31O7ePKffnaxCnVkIz59sZ3XmACN8pX5LJL4JtG/MNhKzN+yVNF3EgW6 AmJ+IFocfqLTCC6Fh/ts9yYtDVaQZw74pQbwCiEKE9zrh34V1qZ/CzFsgfoZxdBU6t wTpubIFUGFIDzWGG3+tP3RAhVw96PBGPhXeLCVb9203pOWTzz1kIcZG1hELthejFk/ as0abOc2kbA9ZGw1Zr0EB5K+Qp5sLhXxdKy8UVEHQ4iFYng2TEpgNoaetKACHqGUgF sxS6W4+McVWZ3McNqhlnRvKV+F7vHrwuSs1Lhd2ffHhRRoMD0+Ctq6g5L8EqMZQ4Zw ZrM3wq4/kJ0FA== Date: Mon, 23 Oct 2023 21:30:03 -0600 From: "Gustavo A. R. Silva" <gustavoars@kernel.org> To: Dinh Nguyen <dinguyen@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org> Cc: Kees Cook <keescook@chromium.org>, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" <gustavoars@kernel.org>, linux-hardening@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v3 0/2][next] clk: socfpga: Fix undefined behavior bug and add bounds-checking coverage Message-ID: <cover.1698117815.git.gustavoars@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 20:30:20 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780606040227676671 X-GMAIL-MSGID: 1780606040227676671 |
Series |
clk: socfpga: Fix undefined behavior bug and add bounds-checking coverage
|
|
Message
Gustavo A. R. Silva
Oct. 24, 2023, 3:30 a.m. UTC
This series aims to fix an undefined behavior bug in `struct stratix10_clock_data` and add bounds-checking coverage at run-time for flexible-array member `hws` in `struct clk_hw_onecell_data` when accessed throught `struct stratix10_clock_data`. Changes in v3: - None, really. Just Cc linux-clk@vger.kernel.org this time. Changes in v2: - Mention -Wflex-array-member-not-at-end in the changelog text. - Link: https://lore.kernel.org/linux-hardening/cover.1697493574.git.gustavoars@kernel.org/ v1: - Link: https://lore.kernel.org/linux-hardening/cover.1697059539.git.gustavoars@kernel.org/ Gustavo A. R. Silva (2): clk: socfpga: Fix undefined behavior bug in struct stratix10_clock_data clk: socfpga: agilex: Add bounds-checking coverage for struct stratix10_clock_data drivers/clk/socfpga/clk-agilex.c | 12 ++++++------ drivers/clk/socfpga/clk-s10.c | 6 +++--- drivers/clk/socfpga/stratix10-clk.h | 4 +++- 3 files changed, 12 insertions(+), 10 deletions(-)