public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] drm: Constify 'struct bin_attribute'
@ 2024-12-16 11:34 Thomas Weißschuh
  2024-12-16 11:34 ` [PATCH 1/5] drm/sysfs: " Thomas Weißschuh
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Thomas Weißschuh @ 2024-12-16 11:34 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Qiang Yu, Jani Nikula, Joonas Lahtinen,
	Rodrigo Vivi, Tvrtko Ursulin, Alex Deucher, Christian König,
	Xinhui Pan, Harry Wentland, Leo Li, Rodrigo Siqueira
  Cc: dri-devel, linux-kernel, lima, intel-gfx, amd-gfx,
	Thomas Weißschuh

The sysfs core now allows instances of 'struct bin_attribute' to be
moved into read-only memory. Make use of that to protect them against
accidental or malicious modifications.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (5):
      drm/sysfs: Constify 'struct bin_attribute'
      drm/lima: Constify 'struct bin_attribute'
      drm/i915: Constify 'struct bin_attribute'
      drm/amdgpu: Constify 'struct bin_attribute'
      drm/amd/display: Constify 'struct bin_attribute'

 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c             |  6 +++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c                | 14 +++++++-------
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c                | 13 ++++++-------
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c |  8 ++++----
 drivers/gpu/drm/drm_sysfs.c                            | 10 +++++-----
 drivers/gpu/drm/i915/i915_gpu_error.c                  |  8 ++++----
 drivers/gpu/drm/i915/i915_sysfs.c                      | 12 ++++++------
 drivers/gpu/drm/lima/lima_drv.c                        |  8 ++++----
 8 files changed, 39 insertions(+), 40 deletions(-)
---
base-commit: 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8
change-id: 20241215-sysfs-const-bin_attr-drm-9bf7700da886

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>


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

end of thread, other threads:[~2025-02-10 17:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-16 11:34 [PATCH 0/5] drm: Constify 'struct bin_attribute' Thomas Weißschuh
2024-12-16 11:34 ` [PATCH 1/5] drm/sysfs: " Thomas Weißschuh
2024-12-16 11:47   ` Jani Nikula
2025-02-10 17:11   ` Andi Shyti
2024-12-16 11:34 ` [PATCH 2/5] drm/lima: " Thomas Weißschuh
2025-02-10 17:13   ` Andi Shyti
2024-12-16 11:34 ` [PATCH 3/5] drm/i915: " Thomas Weißschuh
2024-12-16 11:48   ` Jani Nikula
2025-02-10 17:14   ` Andi Shyti
2024-12-16 11:34 ` [PATCH 4/5] drm/amdgpu: " Thomas Weißschuh
2024-12-16 19:53   ` Alex Deucher
2024-12-16 11:34 ` [PATCH 5/5] drm/amd/display: " Thomas Weißschuh
2024-12-16 14:57   ` Harry Wentland
2025-02-10 16:50 ` [PATCH 0/5] drm: " Thomas Weißschuh

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