lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <cover.1743313252.git.x0rw3ll@gmail.com>
Date: Sun, 30 Mar 2025 07:53:40 +0200
From: Ahmed Salem <x0rw3ll@...il.com>
To: robert.moore@...el.com, rafael.j.wysocki@...el.com, lenb@...nel.org
Cc: skhan@...uxfoundation.org, 
	linux-kernel-mentees@...ts.linuxfoundation.org, linux-acpi@...r.kernel.org, acpica-devel@...ts.linux.dev, 
	linux-kernel@...r.kernel.org
Subject: [RFC PATCH 0/2] ACPI: replace deprecated strncpy()

strncpy() is deprecated. This patch series is split over two patches,
the first of which annotates destinations with __nonstring, and the
second replaces strncpy() with strtomem() in the ACPI_COPY_NAMESEG
macro. Additionally, two replacements in drivers/acpi/acpica/tbfind.c:60
with memcpy().

This is an effort to avoid using deprecated interfaces, and potential
compiler warnings in the future.

Link: https://github.com/KSPP/linux/issues/90

Ahmed Salem (2):
  ACPI: mark ACPI_COPY_NAMESEG destinations with __nonstring attribute
  ACPI: replace deprecated strncpy() with strtomem()

 drivers/acpi/acpica/acdebug.h                            | 2 +-
 drivers/acpi/acpica/tbfind.c                             | 4 ++--
 drivers/acpi/prmt.c                                      | 2 +-
 drivers/acpi/sysfs.c                                     | 4 ++--
 include/acpi/actbl.h                                     | 6 +++---
 include/acpi/actypes.h                                   | 2 +-
 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c | 2 +-
 tools/power/acpi/tools/acpidump/apfiles.c                | 2 +-
 8 files changed, 12 insertions(+), 12 deletions(-)


base-commit: b3c623b9a94f7f798715c87e7a75ceeecf15292f
-- 
2.47.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ