Re: [PATCH] ACPICA: Replace strncpy() with strscpy_pad() in acpi_ut_safe_strncpy()
Kees Cook <[email protected]>
| Newsgroups | dev.linux.lists.acpica-devel,org.kernel.vger.linux-acpi,org.kernel.vger.linux-hardening,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <202603240100.E64786C688@keescook> |
On Mon, Mar 23, 2026 at 06:31:20PM +0100, Rafael J. Wysocki wrote: > On Mon, Mar 23, 2026 at 6:24 PM Kees Cook <[email protected]> wrote: > > [...] > > kernel APIs before like ACPI_FLEX_ARRAY and similar helpers. However, > > acpi_ut_safe_strncpy() is an explicit function implementation rather > > than a macro mapping, so the approach for upstreaming this change to > > ACPICA is not clear. What's the best way to land this? > > I can apply this directly, it shouldn't be a major problem for porting > patches from the upstream. Okay, thanks! I wasn't sure if that was going to be a viable approach. :) -Kees -- Kees Cook