Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] drm/xe : avoid the risky function sprintf
@ 2023-12-09 23:59 Bommu Krishnaiah
  2023-12-09 23:59 ` [PATCH v4 1/2] drm/xe: prefer snprintf over sprintf Bommu Krishnaiah
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Bommu Krishnaiah @ 2023-12-09 23:59 UTC (permalink / raw)
  To: intel-xe; +Cc: Bommu Krishnaiah

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-03-28 12:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-09 23:59 [PATCH v4 0/2] drm/xe : avoid the risky function sprintf Bommu Krishnaiah
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox