From: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
To: srinivas.pandruvada@linux.intel.com, hansg@kernel.org,
ilpo.jarvinen@linux.intel.com
Cc: platform-driver-x86@vger.kernel.org,
Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Subject: [PATCH 0/2] platform/x86/intel/uncore-freq: String handling improvements
Date: Tue, 30 Dec 2025 13:35:43 +0530 [thread overview]
Message-ID: <20251230080545.224954-1-kaushlendra.kumar@intel.com> (raw)
This series replaces unsafe/deprecated string formatting functions in
the Intel uncore frequency driver with their safer alternatives.
Patch 1 replaces sprintf() with sysfs_emit() in sysfs show functions
for proper buffer bounds checking.
Patch 2 replaces sprintf() with snprintf() in device name formatting
to follow kernel best practices.
Kaushlendra Kumar (2):
platform/x86/intel/uncore-freq: Replace sprintf() with snprintf()
platform/x86/intel/uncore-freq: Replace sprintf() with sysfs_emit()
.../uncore-frequency/uncore-frequency-common.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
--
2.34.1
next reply other threads:[~2025-12-30 8:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-30 8:05 Kaushlendra Kumar [this message]
2025-12-30 8:05 ` [PATCH 1/2] platform/x86/intel/uncore-freq: Replace sprintf() with snprintf() Kaushlendra Kumar
2025-12-30 10:48 ` Ilpo Järvinen
2025-12-30 12:45 ` Kumar, Kaushlendra
2025-12-30 8:05 ` [PATCH 2/2] platform/x86/intel/uncore-freq: Replace sprintf() with sysfs_emit() Kaushlendra Kumar
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=20251230080545.224954-1-kaushlendra.kumar@intel.com \
--to=kaushlendra.kumar@intel.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=srinivas.pandruvada@linux.intel.com \
/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