mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-07 13:11:09 +00:00
`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 |
||
|---|---|---|
| .. | ||
| 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 | ||
| framebuffer.c | ||
| framebuffer.h | ||
| gem.c | ||
| gem.h | ||
| gma_device.c | ||
| gma_device.h | ||
| gma_display.c | ||
| gma_display.h | ||
| gtt.c | ||
| gtt.h | ||
| intel_bios.c | ||
| intel_bios.h | ||
| intel_gmbus.c | ||
| intel_i2c.c | ||
| Kconfig | ||
| Makefile | ||
| mid_bios.c | ||
| mid_bios.h | ||
| mmu.c | ||
| mmu.h | ||
| oaktrail_crtc.c | ||
| oaktrail_device.c | ||
| oaktrail_hdmi_i2c.c | ||
| oaktrail_hdmi.c | ||
| oaktrail_lvds_i2c.c | ||
| oaktrail_lvds.c | ||
| oaktrail.h | ||
| opregion.c | ||
| opregion.h | ||
| power.c | ||
| power.h | ||
| psb_device.c | ||
| psb_device.h | ||
| psb_drv.c | ||
| psb_drv.h | ||
| psb_intel_display.c | ||
| psb_intel_drv.h | ||
| psb_intel_lvds.c | ||
| psb_intel_modes.c | ||
| psb_intel_reg.h | ||
| psb_intel_sdvo_regs.h | ||
| psb_intel_sdvo.c | ||
| psb_irq.c | ||
| psb_irq.h | ||
| psb_lid.c | ||
| psb_reg.h | ||