* [daveh-devel:kss-2026-10-23 25/25] arch/x86/kernel/cet.c:351:24: error: 'struct thread_struct' has no member named 'kshstk_ssp'
@ 2026-10-24 1:21 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-24 1:21 UTC (permalink / raw)
To: Dave Hansen; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git kss-2026-10-23
head: b6fa923e47fcecf329844fd91ed615de35478ea3
commit: b6fa923e47fcecf329844fd91ed615de35478ea3 [25/25] x86/boot: Add CPU shadow stack bootstrapping
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20261024/202610240302.dne62y4D-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261024/202610240302.dne62y4D-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610240302.dne62y4D-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/x86/kernel/cet.c:277:17: warning: no previous prototype for 'kshstk_build' [-Wmissing-prototypes]
277 | asmlinkage void kshstk_build(unsigned long *root_sp)
| ^~~~~~~~~~~~
arch/x86/kernel/cet.c:330:6: error: redefinition of 'arch_kernel_stack_lock_current'
330 | void arch_kernel_stack_lock_current(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/include/asm/processor.h:30,
from include/linux/sched.h:13,
from include/linux/ptrace.h:6,
from arch/x86/kernel/cet.c:3:
arch/x86/include/asm/shstk.h:49:20: note: previous definition of 'arch_kernel_stack_lock_current' with type 'void(void)'
49 | static inline void arch_kernel_stack_lock_current(void) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/cet.c: In function 'arch_kernel_stack_lock_current':
>> arch/x86/kernel/cet.c:351:24: error: 'struct thread_struct' has no member named 'kshstk_ssp'
351 | current->thread.kshstk_ssp = kshstk_enable_current();
| ^
>> arch/x86/kernel/cet.c:351:38: error: implicit declaration of function 'kshstk_enable_current'; did you mean 'kmsan_enable_current'? [-Wimplicit-function-declaration]
351 | current->thread.kshstk_ssp = kshstk_enable_current();
| ^~~~~~~~~~~~~~~~~~~~~
| kmsan_enable_current
vim +351 arch/x86/kernel/cet.c
320
321 /*
322 * This "locks" the stack in place and does not allow any control
323 * flow manipulation to occur because of changes to the stack.
324 *
325 * CPU enters with shadow stacks disabled and leaves with them
326 * enabled.
327 *
328 * Must be called before the CPU does its first context switch.
329 */
330 void arch_kernel_stack_lock_current(void)
331 {
332 unsigned long flags;
333
334 if (!cpu_feature_enabled(X86_FEATURE_KERN_SHSTK))
335 return;
336
337 kshstk_prepare_pages();
338
339 /*
340 * Regular interrupts are delivered on stack level 0. There
341 * is a window within the enabling where CET_SHSTK_EN=1 but
342 * SSP is not yet set. If an interrupt is delivered in that
343 * window, it would try to push on to this stack. Disable
344 * regular interrupts over this window.
345 *
346 * Interrupts that use other stack levels (like NMI) are OK
347 * because FRED switches stacks for them and does not push
348 * on stack level 0.
349 */
350 local_irq_save(flags);
> 351 current->thread.kshstk_ssp = kshstk_enable_current();
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-24 1:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-24 1:21 [daveh-devel:kss-2026-10-23 25/25] arch/x86/kernel/cet.c:351:24: error: 'struct thread_struct' has no member named 'kshstk_ssp' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.