linux-next: build failure after merge of the kspp tree

From: Stephen Rothwell
Date: Tue Jan 25 2022 - 00:34:32 EST


Hi all,

After merging the kspp tree, today's linux-next build (powerpc
allmodconfig) failed like this:

In file included from include/linux/string.h:253,
from include/linux/bitmap.h:11,
from include/linux/cpumask.h:12,
from include/linux/mm_types_task.h:14,
from include/linux/mm_types.h:5,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from samples/trace_events/trace-events-sample.c:2:
In function '__fortify_strcpy',
inlined from 'perf_trace_foo_rel_loc' at samples/trace_events/./trace-events-sample.h:519:1:
include/linux/fortify-string.h:47:33: error: '__builtin_strcpy' offset 12 is out of the bounds [0, 4] [-Werror=array-bounds]
47 | #define __underlying_strcpy __builtin_strcpy
| ^
include/linux/fortify-string.h:445:24: note: in expansion of macro '__underlying_strcpy'
445 | return __underlying_strcpy(p, q);
| ^~~~~~~~~~~~~~~~~~~

Exposed by (probably) commit

602670289b69 ("fortify: Detect struct member overflows in memcpy() at compile-time")

Introduced by commit

b466b1332164 ("samples/trace_event: Add '__rel_loc' using sample event")

I have reverted that latter commit for today.

--
Cheers,
Stephen Rothwell

Attachment: pgplsULA0rL4u.pgp
Description: OpenPGP digital signature