Thread (11 messages) flat view 11 messages, 4 authors, 2026-04-30

Re: [PATCH 2/2] powerpc/text-patching: Fix possible stringop-overread compilation error

From: Xie Yuanbin <hidden>
Date: 2026-02-06 11:14:58
Also in: linux-hardening, lkml

On Thu, 5 Feb 2026 18:40:08 +0200, Andy Shevchenko wrote:
quoted
For strnlen(), if the compiler detects that the maxlen argument exceeds
the valid memory size of the input string object, a compilation error may
occur.

For lastest linux-next source, changing ppc_kallsyms_lookup_name() to
__always_inline,
So, there is no issue in upstream without the mentioned change, right?
Yes. However, before the commit 889b3c1245de48ed0cac ("compiler: remove
CONFIG_OPTIMIZE_INLINING entirely") is merged, inline will be changed to
__always_inline, and this error will be directly triggered.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help