From: Christophe Leroy <christophe.leroy@xxxxxxxxxx> Sent: Thursday, February 27, 2025 2:43 AM
Le 27/02/2025 à 02:38, Stephen Rothwell a écrit :
Hi Venkat,
CC Kees Cook for advice. This is a result of the tests added in commit
bbeb38b8487a ("string.h: Validate memtostr*()/strtomem*() arguments more carefully")
from the kspp tree.
I note that the comment about memtostr() says "Copy a possibly
non-NUL-term string".
Can you tell more about your config and your environment ?
I just tested with ppc64_defconfig and ppc64le_defconfig, with gcc 12.4,
gcc 13.2 and gcc 14.2 and didn't get that build error.
Christophe
FWIW, I see the same build failures related to __must_be_noncstr()
when building natively on x86 and on arm64. In both cases, it's an
Ubuntu 20.04 installation with gcc 9.4.0 and binutils 2.34.