Thread (7 messages) flat view 7 messages, 3 authors, 16d ago

Re: [PATCH] powerpc/ps3: Fix repository.c build failure

From: Madhavan Srinivasan <maddy@linux.ibm.com>
Date: 2026-09-09 06:19:58
Also in: lkml, stable

On Fri, 03 Jul 2026 18:58:35 +0200, Thorsten Blum wrote:
GCC fails to build ps3_defconfig with the following errors:

  arch/powerpc/platforms/ps3/repository.c: In function ‘make_first_field.constprop’:
  arch/powerpc/platforms/ps3/repository.c:78:9: error: ‘strnlen’ specified bound 8 exceeds source size 3 [-Werror=stringop-overread]
     78 |         memcpy((char *)&n, text, strnlen(text, sizeof(n)));
        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  arch/powerpc/platforms/ps3/repository.c: In function ‘make_first_field.constprop’:
  arch/powerpc/platforms/ps3/repository.c:78:9: error: ‘strnlen’ specified bound 8 exceeds source size 4 [-Werror=stringop-overread]
     78 |         memcpy((char *)&n, text, strnlen(text, sizeof(n)));
        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[...]
Applied to powerpc/fixes.

[1/1] powerpc/ps3: Fix repository.c build failure
      https://git.kernel.org/powerpc/c/5ba79d37403d86082ab4083b0f51ec3008a942cb

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help