linux/drivers/gpu/drm/gma500
Justin Stitt 9edb071c8b drm/gma500: refactor deprecated strncpy
`strncpy` is deprecated for use on NUL-terminated destination strings [1].

We should prefer more robust and less ambiguous string interfaces.

Since `chan->base.name` is expected to be NUL-terminated, a suitable
replacement is `strscpy` [2] due to the fact that it guarantees
NUL-termination on the destination buffer without also unnecessarily
NUL-padding (since `chan` is kzalloc'd already).

Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings [1]
Link: https://manpages.debian.org/testing/linux-manual-4.8/strscpy.9.en.html [2]
Link: https://github.com/KSPP/linux/issues/90
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Justin Stitt <justinstitt@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230919-drivers-gpu-drm-gma500-oaktrail_lvds_i2c-c-v2-1-9ebe6983b4cb@google.com
2023-09-27 12:38:54 +02:00
..
backlight.c drm: Include <linux/backlight.h> where needed 2023-01-13 13:13:57 +01:00
cdv_device.c drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
cdv_device.h
cdv_intel_crt.c drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
cdv_intel_display.c drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
cdv_intel_dp.c drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
cdv_intel_hdmi.c drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
cdv_intel_lvds.c drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
fbdev.c fbdev: Use _IOMEM_ infix for I/O-memory helpers 2023-07-31 20:06:52 +02:00
framebuffer.c drm/gma500: Pass fb_info to psb_fbdev_vm_fault() 2023-03-20 11:19:22 +01:00
framebuffer.h
gem.c drm/gma500: Fix WARN_ON(lock->magic != lock) error 2022-09-09 14:04:29 +02:00
gem.h
gma_device.c
gma_device.h
gma_display.c drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
gma_display.h drm/gma500: Remove unused declarations 2023-08-25 08:48:18 +02:00
gtt.c
gtt.h
intel_bios.c drm: Rename dp/ to display/ 2022-04-25 11:17:45 +02:00
intel_bios.h
intel_gmbus.c
intel_i2c.c drm/gma500: Make gma_i2c_chan a subclass of i2c_adapter 2022-06-02 10:06:21 +02:00
Kconfig fbdev: Use _IOMEM_ infix for I/O-memory helpers 2023-07-31 20:06:52 +02:00
Makefile drm/gma500: Move fbdev code into separate source file 2023-03-20 11:19:03 +01:00
mid_bios.c
mid_bios.h
mmu.c
mmu.h
oaktrail_crtc.c drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
oaktrail_device.c drm/gma500: Refactor backlight support (v2) 2022-09-18 21:02:52 +02:00
oaktrail_hdmi_i2c.c
oaktrail_hdmi.c drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
oaktrail_lvds_i2c.c drm/gma500: refactor deprecated strncpy 2023-09-27 12:38:54 +02:00
oaktrail_lvds.c drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
oaktrail.h
opregion.c drm/gma500: Refactor backlight support (v2) 2022-09-18 21:02:52 +02:00
opregion.h
power.c drm/gma500: Remove unnecessary suspend/resume wrappers 2022-09-17 15:20:40 +02:00
power.h drm/gma500: Remove unnecessary suspend/resume wrappers 2022-09-17 15:20:40 +02:00
psb_device.c drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
psb_device.h
psb_drv.c video/aperture: Provide a VGA helper for gma500 and internal use 2023-04-16 14:18:10 +02:00
psb_drv.h drm/gma500: Fix call trace when psb_gem_mm_init() fails 2023-08-25 08:48:18 +02:00
psb_intel_display.c drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
psb_intel_drv.h drm/gma500: Remove unused declarations 2023-08-25 08:48:18 +02:00
psb_intel_lvds.c drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
psb_intel_modes.c drm: Drop drm_edid.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
psb_intel_reg.h
psb_intel_sdvo_regs.h
psb_intel_sdvo.c drm/gma500: Remove unnecessary include statements for drm_crtc_helper.h 2023-01-18 09:25:31 +01:00
psb_irq.c drm/gma500: Fix call trace when psb_gem_mm_init() fails 2023-08-25 08:48:18 +02:00
psb_irq.h drm/gma500: Fix (vblank) IRQs not working after suspend/resume 2022-09-17 15:20:30 +02:00
psb_lid.c
psb_reg.h