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

From: Stephen Rothwell
Date: Thu May 05 2022 - 03:40:42 EST


Hi all,

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

drivers/misc/lkdtm/stackleak.c: In function 'check_stackleak_irqoff':
drivers/misc/lkdtm/stackleak.c:30:46: error: implicit declaration of function 'stackleak_task_low_bound' [-Werror=implicit-function-declaration]
30 | const unsigned long task_stack_low = stackleak_task_low_bound(current);
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/lkdtm/stackleak.c:31:47: error: implicit declaration of function 'stackleak_task_high_bound'; did you mean 'stackleak_task_init'? [-Werror=implicit-function-declaration]
31 | const unsigned long task_stack_high = stackleak_task_high_bound(current);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| stackleak_task_init
drivers/misc/lkdtm/stackleak.c:33:50: error: 'struct task_struct' has no member named 'lowest_stack'; did you mean 'ret_stack'?
33 | const unsigned long lowest_sp = current->lowest_stack;
| ^~~~~~~~~~~~
| ret_stack
drivers/misc/lkdtm/stackleak.c:74:23: error: implicit declaration of function 'stackleak_find_top_of_poison' [-Werror=implicit-function-declaration]
74 | poison_high = stackleak_find_top_of_poison(task_stack_low, untracked_high);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Caused by commit

f4cfacd92972 ("lkdtm/stackleak: rework boundary management")

or maybe commit

cbe7edb47d3c ("stackleak: rework stack low bound handling")

CONFIG_GCC_PLUGIN_STACKLEAK is not set for this build.

I have used the kspp tree from next-20220504 for today.

--
Cheers,
Stephen Rothwell

Attachment: pgpN4aKSQgU_k.pgp
Description: OpenPGP digital signature