There was a patch earlier to fix CFI violations upon sysfs file access, stemming from Xe's invalid usage of device pointers instead of kobject pointers in those sysfs file access handlers.
When CFI was disabled, it made no functional difference, because the `struct device *` decays to a `struct kobject *` (its first member). However, with CFI enabled this is detected and the kernel is intentionally crashed. The earlier patch missed a few instances of this invalid use of `struct device *` pointers, and a few more have been added to Xe since. This series cleans up all remaining instances, and fixes an unrelated compiler warning issued by clang, noticed while testing. Signed-off-by: Ryan Neph <[email protected]> --- Ryan Neph (2): drm/xe/sysfs: Fix additional sysfs node access CFI violations drm/xe/configfs: fix clang warnings for missing parameter name drivers/gpu/drm/xe/xe_configfs.h | 10 ++++++---- drivers/gpu/drm/xe/xe_gt_ccs_mode.c | 24 ++++++++++++------------ drivers/gpu/drm/xe/xe_survivability_mode.c | 15 ++++++++------- drivers/gpu/drm/xe/xe_vram_freq.c | 20 ++++++++++---------- 4 files changed, 36 insertions(+), 33 deletions(-) --- base-commit: ee74634683e4b3e526a4b014b0358796e97c7ce3 change-id: 20251003-rn-cfi-ab15e1aad8cf Best regards, -- Ryan Neph <[email protected]>
