Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bommu Krishnaiah <krishnaiah.bommu@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Bommu Krishnaiah <krishnaiah.bommu@intel.com>
Subject: [PATCH v4 0/2] drm/xe : avoid the risky function sprintf
Date: Sun, 10 Dec 2023 05:29:47 +0530	[thread overview]
Message-ID: <20231209235949.54524-1-krishnaiah.bommu@intel.com> (raw)

drm/xe/xe_hw_engine_class_sysfs: use sysfs_emit() for attr's _show()
    sprintf() is deprecated for sysfs, use preferred sysfs_emit() instead.

drm/xe: prefer snprintf over sprintf
    since the sprintf() function lacks built-in protection against buffer
    overflows using the snprintf() function.

Bommu Krishnaiah (2):
  drm/xe: prefer snprintf over sprintf
  drm/xe/xe_hw_engine_class_sysfs: use sysfs_emit() for attr's _show()

 drivers/gpu/drm/xe/xe_debugfs.c               |  2 +-
 drivers/gpu/drm/xe/xe_exec_queue.c            | 12 +++----
 drivers/gpu/drm/xe/xe_gt_debugfs.c            |  2 +-
 drivers/gpu/drm/xe/xe_gt_idle.c               |  4 +--
 drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c | 36 +++++++++----------
 drivers/gpu/drm/xe/xe_hw_fence.c              |  2 +-
 6 files changed, 29 insertions(+), 29 deletions(-)

-- 
2.25.1


             reply	other threads:[~2024-03-25  7:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-09 23:59 Bommu Krishnaiah [this message]
2023-12-09 23:59 ` [PATCH v4 1/2] drm/xe: prefer snprintf over sprintf Bommu Krishnaiah
2023-12-09 23:59 ` [PATCH v4 2/2] drm/xe/xe_hw_engine_class_sysfs: use sysfs_emit() for attr's _show() Bommu Krishnaiah
2024-03-28 12:45   ` Ghimiray, Himal Prasad
2024-03-25  9:01 ` ✓ CI.Patch_applied: success for drm/xe : avoid the risky function sprintf Patchwork
2024-03-25  9:01 ` ✓ CI.checkpatch: " Patchwork
2024-03-25  9:02 ` ✓ CI.KUnit: " Patchwork
2024-03-25  9:14 ` ✓ CI.Build: " Patchwork
2024-03-25  9:16 ` ✓ CI.Hooks: " Patchwork
2024-03-25  9:18 ` ✓ CI.checksparse: " Patchwork
2024-03-25 10:03 ` ✓ CI.BAT: " Patchwork

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=20231209235949.54524-1-krishnaiah.bommu@intel.com \
    --to=krishnaiah.bommu@intel.com \
    --cc=intel-xe@lists.freedesktop.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