From: Stephen Boyd <sboyd@kernel.org>
To: Gustavo A . R . Silva <gustavoars@kernel.org>,
Haoyu Li <lihaoyu499@gmail.com>, Kees Cook <kees@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
linux-clk@vger.kernel.org, linux-hardening@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: stable@vger.kernel.org, Haoyu Li <lihaoyu499@gmail.com>
Subject: Re: [PATCH] drivers: clk: clk-en7523.c: Initialize num before accessing hws in en7523_register_clocks
Date: Tue, 03 Dec 2024 14:53:44 -0800 [thread overview]
Message-ID: <a83b9497295bd8efd6260dadf37c5a77.sboyd@kernel.org> (raw)
In-Reply-To: <20241203142915.345523-1-lihaoyu499@gmail.com>
Quoting Haoyu Li (2024-12-03 06:29:15)
> With the new __counted_by annocation in clk_hw_onecell_data, the "num"
> struct member must be set before accessing the "hws" array. Failing to
> do so will trigger a runtime warning when enabling CONFIG_UBSAN_BOUNDS
> and CONFIG_FORTIFY_SOURCE.
>
> Fixes: f316cdff8d67 ("clk: Annotate struct clk_hw_onecell_data with __counted_by")
>
> Signed-off-by: Haoyu Li <lihaoyu499@gmail.com>
> ---
Applied to clk-fixes
prev parent reply other threads:[~2024-12-03 22:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-03 14:29 [PATCH] drivers: clk: clk-en7523.c: Initialize num before accessing hws in en7523_register_clocks Haoyu Li
2024-12-03 22:53 ` Stephen Boyd [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a83b9497295bd8efd6260dadf37c5a77.sboyd@kernel.org \
--to=sboyd@kernel.org \
--cc=gustavoars@kernel.org \
--cc=kees@kernel.org \
--cc=lihaoyu499@gmail.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox