From: Ahmed Salem <x0rw3ll@gmail.com>
To: robert.moore@intel.com, rafael.j.wysocki@intel.com, lenb@kernel.org
Cc: skhan@linuxfoundation.org,
linux-kernel-mentees@lists.linuxfoundation.org,
linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] ACPI: PRM: apply ACPI_NONSTRING annotation
Date: Fri, 4 Apr 2025 10:25:14 +0200 [thread overview]
Message-ID: <00f4b71ec859adedb34bb33b05634cc1ae97cfda.1743754416.git.x0rw3ll@gmail.com> (raw)
In-Reply-To: <cover.1743754416.git.x0rw3ll@gmail.com>
Mark ACPI_COPY_NAMESEG() destination char array with the ACPI_NONSTRING
annotation. prm_content_buffer->signature[ACPI_NAMESEG_SIZE] is 4 bytes
long and not expected to include a NUL terminating character.
Signed-off-by: Ahmed Salem <x0rw3ll@gmail.com>
diff --git a/drivers/acpi/prmt.c b/drivers/acpi/prmt.c
index e549914a636c..7c2553696dd1 100644
--- a/drivers/acpi/prmt.c
+++ b/drivers/acpi/prmt.c
@@ -40,7 +40,7 @@ struct prm_buffer {
};
struct prm_context_buffer {
- char signature[ACPI_NAMESEG_SIZE];
+ char signature[ACPI_NAMESEG_SIZE] ACPI_NONSTRING;
u16 revision;
u16 reserved;
guid_t identifier;
--
2.47.2
next prev parent reply other threads:[~2025-04-04 8:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-04 8:24 [PATCH 0/2] ACPI: apply ACPI_NONSTRING annotations Ahmed Salem
2025-04-04 8:25 ` Ahmed Salem [this message]
2025-04-04 8:25 ` [PATCH 2/2] ACPI: sysfs: apply ACPI_NONSTRING annotation Ahmed Salem
2025-04-05 4:39 ` kernel test robot
2025-04-05 7:04 ` kernel test robot
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=00f4b71ec859adedb34bb33b05634cc1ae97cfda.1743754416.git.x0rw3ll@gmail.com \
--to=x0rw3ll@gmail.com \
--cc=acpica-devel@lists.linux.dev \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel-mentees@lists.linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=robert.moore@intel.com \
--cc=skhan@linuxfoundation.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