From: Thorsten Blum <blum@kernel.org>
To: "David E. Box" <david.e.box@linux.intel.com>,
Kees Cook <kees@kernel.org>,
"Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: Thorsten Blum <blum@kernel.org>,
linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org
Subject: [PATCH] platform/x86/intel/vsec: Annotate deps with __counted_by_ptr()
Date: Tue, 8 Sep 2026 08:34:28 +0200 [thread overview]
Message-ID: <20260908063427.301333-2-blum@kernel.org> (raw)
Add __counted_by_ptr() to intel_vsec_platform_info::deps to enable
access bounds checking via CONFIG_UBSAN_BOUNDS and
CONFIG_FORTIFY_SOURCE.
Signed-off-by: Thorsten Blum <blum@kernel.org>
---
include/linux/intel_vsec.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/intel_vsec.h b/include/linux/intel_vsec.h
index 843cda8f8644..7b9638e16e7c 100644
--- a/include/linux/intel_vsec.h
+++ b/include/linux/intel_vsec.h
@@ -122,7 +122,7 @@ struct vsec_feature_dependency {
struct intel_vsec_platform_info {
struct device *parent;
struct intel_vsec_header **headers;
- const struct vsec_feature_dependency *deps;
+ const struct vsec_feature_dependency *deps __counted_by_ptr(num_deps);
u32 (*acpi_disc)[PMT_DISC_DWORDS];
enum intel_vsec_disc_source src;
void *priv_data;
reply other threads:[~2026-09-08 6:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260908063427.301333-2-blum@kernel.org \
--to=blum@kernel.org \
--cc=david.e.box@linux.intel.com \
--cc=gustavoars@kernel.org \
--cc=kees@kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®