From: kernel test robot <lkp@intel.com>
To: Dave Hansen <dave.hansen@linux.intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [daveh-devel:shstk-vmalloc 19/19] arch/x86/kernel/shstk_kunit.c:47: Error: `rdsspq' is only supported in 64-bit mode
Date: Tue, 08 Sep 2026 09:41:00 +0800 [thread overview]
Message-ID: <202609080945.4fjnhYMA-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git shstk-vmalloc
head: a820a994160883fea70750876fe26073766d831f
commit: a820a994160883fea70750876fe26073766d831f [19/19] kshstk-onoff-test
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20260908/202609080945.4fjnhYMA-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/20260908/202609080945.4fjnhYMA-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/202609080945.4fjnhYMA-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/x86/kernel/shstk_kunit.c: In function 'enable_kernel_shstk_and_load_ssp':
arch/x86/kernel/shstk_kunit.c:75:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
75 | __wrmsrq(MSR_IA32_PL0_SSP, (u64)token_addr);
| ^
arch/x86/kernel/shstk_kunit.c: Assembler messages:
>> arch/x86/kernel/shstk_kunit.c:47: Error: `rdsspq' is only supported in 64-bit mode
vim +47 arch/x86/kernel/shstk_kunit.c
37
38 /*
39 * Target function to call while S_CET is active.
40 * Marked noinline and notrace so compiler doesn't inline or instrument it.
41 */
42 static noinline notrace void test_shstk_callee(unsigned long expected_ssp_base)
43 {
44 unsigned long current_ssp = 0;
45
46 /* Read current SSP using RDSSPQ (returns 0 if shstk disabled) */
> 47 asm volatile("rdsspq %0" : "=r" (current_ssp) : "0" (0UL));
48
49 pr_info("CET Test: Inside callee, SSP = 0x%lx\n", current_ssp);
50
51 if (current_ssp == 0)
52 pr_err("CET Test: Error! SSP is zero (shadow stack inactive)\n");
53 }
54
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-09-08 1:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202609080945.4fjnhYMA-lkp@intel.com \
--to=lkp@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.