Skip to content

drm/xe : avoid the risky function sprintf

Bommu Krishnaiah intel-xe 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyIn review
  2. v32 patches 2 repliesSuperseded
  3. v21 patch 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch1 replySuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/xe: prefer snprintf over sprintfdrivers/gpu/drm/xe/xe_debugfs.c drivers/gpu/drm/xe/xe_exec_queue.c drivers/gpu/drm/xe/xe_gt_debugfs.c +2 more+11 -110 replies
2/2drm/xe/xe_hw_engine_class_sysfs: use sysfs_emit() for attr's _show()drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c+18 -181 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchHimal Prasad Ghimiray
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] drm/xe : avoid the risky function sprintf

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(-)
Signature · 1 line
2.25.1