linux-stable/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
cdv_device.c
cdv_device.h
cdv_intel_crt.c
cdv_intel_display.c
cdv_intel_dp.c
cdv_intel_hdmi.c
cdv_intel_lvds.c
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
gem.h
gma_device.c
gma_device.h
gma_display.c
gma_display.h drm/gma500: Remove unused declarations 2023-08-25 08:48:18 +02:00
gtt.c
gtt.h
intel_bios.c
intel_bios.h
intel_gmbus.c
intel_i2c.c
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.h
oaktrail_crtc.c
oaktrail_device.c
oaktrail_hdmi.c
oaktrail_hdmi_i2c.c
oaktrail_lvds.c
oaktrail_lvds_i2c.c drm/gma500: refactor deprecated strncpy 2023-09-27 12:38:54 +02:00
opregion.c
opregion.h
power.c
power.h
psb_device.c
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
psb_intel_drv.h drm/gma500: Remove unused declarations 2023-08-25 08:48:18 +02:00
psb_intel_lvds.c
psb_intel_modes.c
psb_intel_reg.h
psb_intel_sdvo.c
psb_intel_sdvo_regs.h
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
psb_lid.c
psb_reg.h