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
Reply to
Andy Shevchenko, 2026-02-05
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.
Thread (11 messages) 11 messages, 4 authors, last reply 2026-04-30
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help