From: kernel test robot <lkp@intel.com>
To: Deepak Gupta <debug@rivosinc.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
Andrew Morton <akpm@linux-foundation.org>,
"Liam R. Howlett" <Liam.Howlett@oracle.com>,
Vlastimil Babka <vbabka@suse.cz>,
Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,
Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Conor Dooley <conor@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Arnd Bergmann <arnd@arndb.de>,
Christian Brauner <brauner@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
Oleg Nesterov <oleg@redhat.com>,
Eric Biederman <ebiederm@xmission.com>,
Kees Cook <kees@kernel.org>, Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Jann Horn <jannh@google.com>, Miguel Ojeda <ojeda@kernel.org>,
Alex Gaynor <alex.gaynor@gmail.com>,
Boqun Feng <boqun.feng@gmail.com>, Gary Guo <gary@garyguo.net>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: [PATCH v14 22/27] riscv: enable kernel access to shadow stack memory via FWFT sbi call
Date: Fri, 2 May 2025 03:50:16 +0800 [thread overview]
Message-ID: <202505020328.CJ8EA6Od-lkp@intel.com> (raw)
In-Reply-To: <20250429-v5_user_cfi_series-v14-22-5239410d012a@rivosinc.com>
Hi Deepak,
kernel test robot noticed the following build errors:
[auto build test ERROR on 4181f8ad7a1061efed0219951d608d4988302af7]
url: https://github.com/intel-lab-lkp/linux/commits/Deepak-Gupta/mm-VM_SHADOW_STACK-definition-for-riscv/20250430-082727
base: 4181f8ad7a1061efed0219951d608d4988302af7
patch link: https://lore.kernel.org/r/20250429-v5_user_cfi_series-v14-22-5239410d012a%40rivosinc.com
patch subject: [PATCH v14 22/27] riscv: enable kernel access to shadow stack memory via FWFT sbi call
config: riscv-randconfig-002-20250501 (https://download.01.org/0day-ci/archive/20250502/202505020328.CJ8EA6Od-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250502/202505020328.CJ8EA6Od-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/202505020328.CJ8EA6Od-lkp@intel.com/
All errors (new ones prefixed by >>):
riscv64-linux-ld: arch/riscv/kernel/head.o: in function `section_table':
>> arch/riscv/kernel/head.S:34:(.head.text+0x1126): undefined reference to `riscv_nousercfi'
vim +34 arch/riscv/kernel/head.S
76d2a0493a17d4 Palmer Dabbelt 2017-07-10 20
e011995e826f85 Atish Patra 2020-03-17 21 __HEAD
76329c693924d8 Clément Léger 2023-10-24 22 SYM_CODE_START(_start)
0f327f2aaad6a8 Atish Patra 2019-06-06 23 /*
0f327f2aaad6a8 Atish Patra 2019-06-06 24 * Image header expected by Linux boot-loaders. The image header data
0f327f2aaad6a8 Atish Patra 2019-06-06 25 * structure is described in asm/image.h.
0f327f2aaad6a8 Atish Patra 2019-06-06 26 * Do not modify it without modifying the structure and all bootloaders
0f327f2aaad6a8 Atish Patra 2019-06-06 27 * that expects this header format!!
0f327f2aaad6a8 Atish Patra 2019-06-06 28 */
cb7d2dd5612a77 Atish Patra 2020-09-17 29 #ifdef CONFIG_EFI
cb7d2dd5612a77 Atish Patra 2020-09-17 30 /*
cb7d2dd5612a77 Atish Patra 2020-09-17 31 * This instruction decodes to "MZ" ASCII required by UEFI.
cb7d2dd5612a77 Atish Patra 2020-09-17 32 */
cb7d2dd5612a77 Atish Patra 2020-09-17 33 c.li s4,-13
cb7d2dd5612a77 Atish Patra 2020-09-17 @34 j _start_kernel
cb7d2dd5612a77 Atish Patra 2020-09-17 35 #else
0f327f2aaad6a8 Atish Patra 2019-06-06 36 /* jump to start kernel */
0f327f2aaad6a8 Atish Patra 2019-06-06 37 j _start_kernel
0f327f2aaad6a8 Atish Patra 2019-06-06 38 /* reserved */
0f327f2aaad6a8 Atish Patra 2019-06-06 39 .word 0
cb7d2dd5612a77 Atish Patra 2020-09-17 40 #endif
0f327f2aaad6a8 Atish Patra 2019-06-06 41 .balign 8
79605f13942619 Sean Anderson 2020-10-22 42 #ifdef CONFIG_RISCV_M_MODE
79605f13942619 Sean Anderson 2020-10-22 43 /* Image load offset (0MB) from start of RAM for M-mode */
79605f13942619 Sean Anderson 2020-10-22 44 .dword 0
79605f13942619 Sean Anderson 2020-10-22 45 #else
0f327f2aaad6a8 Atish Patra 2019-06-06 46 #if __riscv_xlen == 64
0f327f2aaad6a8 Atish Patra 2019-06-06 47 /* Image load offset(2MB) from start of RAM */
0f327f2aaad6a8 Atish Patra 2019-06-06 48 .dword 0x200000
0f327f2aaad6a8 Atish Patra 2019-06-06 49 #else
0f327f2aaad6a8 Atish Patra 2019-06-06 50 /* Image load offset(4MB) from start of RAM */
0f327f2aaad6a8 Atish Patra 2019-06-06 51 .dword 0x400000
79605f13942619 Sean Anderson 2020-10-22 52 #endif
0f327f2aaad6a8 Atish Patra 2019-06-06 53 #endif
0f327f2aaad6a8 Atish Patra 2019-06-06 54 /* Effective size of kernel image */
0f327f2aaad6a8 Atish Patra 2019-06-06 55 .dword _end - _start
0f327f2aaad6a8 Atish Patra 2019-06-06 56 .dword __HEAD_FLAGS
0f327f2aaad6a8 Atish Patra 2019-06-06 57 .word RISCV_HEADER_VERSION
0f327f2aaad6a8 Atish Patra 2019-06-06 58 .word 0
0f327f2aaad6a8 Atish Patra 2019-06-06 59 .dword 0
474efecb65dceb Paul Walmsley 2019-09-13 60 .ascii RISCV_IMAGE_MAGIC
0f327f2aaad6a8 Atish Patra 2019-06-06 61 .balign 4
474efecb65dceb Paul Walmsley 2019-09-13 62 .ascii RISCV_IMAGE_MAGIC2
cb7d2dd5612a77 Atish Patra 2020-09-17 63 #ifdef CONFIG_EFI
cb7d2dd5612a77 Atish Patra 2020-09-17 64 .word pe_head_start - _start
cb7d2dd5612a77 Atish Patra 2020-09-17 65 pe_head_start:
cb7d2dd5612a77 Atish Patra 2020-09-17 66
cb7d2dd5612a77 Atish Patra 2020-09-17 67 __EFI_PE_HEADER
cb7d2dd5612a77 Atish Patra 2020-09-17 68 #else
0f327f2aaad6a8 Atish Patra 2019-06-06 69 .word 0
cb7d2dd5612a77 Atish Patra 2020-09-17 70 #endif
0f327f2aaad6a8 Atish Patra 2019-06-06 71
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-05-01 19:50 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-30 0:16 [PATCH v14 00/27] riscv control-flow integrity for usermode Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 01/27] mm: VM_SHADOW_STACK definition for riscv Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 02/27] dt-bindings: riscv: zicfilp and zicfiss in dt-bindings (extensions.yaml) Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 03/27] riscv: zicfiss / zicfilp enumeration Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 04/27] riscv: zicfiss / zicfilp extension csr and bit definitions Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 05/27] riscv: usercfi state for task and save/restore of CSR_SSP on trap entry/exit Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 06/27] riscv/mm : ensure PROT_WRITE leads to VM_READ | VM_WRITE Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 07/27] riscv mm: manufacture shadow stack pte Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 08/27] riscv mmu: teach pte_mkwrite to manufacture shadow stack PTEs Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 09/27] riscv mmu: write protect and shadow stack Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 10/27] riscv/mm: Implement map_shadow_stack() syscall Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 11/27] riscv/shstk: If needed allocate a new shadow stack on clone Deepak Gupta
2025-05-01 16:12 ` kernel test robot
2025-04-30 0:16 ` [PATCH v14 12/27] riscv: Implements arch agnostic shadow stack prctls Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 13/27] prctl: arch-agnostic prctl for indirect branch tracking Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 14/27] riscv: Implements arch agnostic indirect branch tracking prctls Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 15/27] riscv/traps: Introduce software check exception Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 16/27] riscv: signal: abstract header saving for setup_sigcontext Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 17/27] riscv/signal: save and restore of shadow stack for signal Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 18/27] riscv/kernel: update __show_regs to print shadow stack register Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 19/27] riscv/ptrace: riscv cfi status and state via ptrace and in core files Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 20/27] riscv/hwprobe: zicfilp / zicfiss enumeration in hwprobe Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 21/27] riscv: kernel command line option to opt out of user cfi Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 22/27] riscv: enable kernel access to shadow stack memory via FWFT sbi call Deepak Gupta
2025-05-01 19:39 ` kernel test robot
2025-05-01 19:50 ` kernel test robot [this message]
2025-04-30 0:16 ` [PATCH v14 23/27] arch/riscv: compile vdso with landing pad Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 24/27] riscv: create a config for shadow stack and landing pad instr support Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 25/27] riscv: Documentation for landing pad / indirect branch tracking Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 26/27] riscv: Documentation for shadow stack on riscv Deepak Gupta
2025-04-30 0:16 ` [PATCH v14 27/27] kselftest/riscv: kselftest for user mode cfi Deepak Gupta
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=202505020328.CJ8EA6Od-lkp@intel.com \
--to=lkp@intel.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=alex.gaynor@gmail.com \
--cc=aou@eecs.berkeley.edu \
--cc=arnd@arndb.de \
--cc=boqun.feng@gmail.com \
--cc=bp@alien8.de \
--cc=brauner@kernel.org \
--cc=conor@kernel.org \
--cc=corbet@lwn.net \
--cc=dave.hansen@linux.intel.com \
--cc=debug@rivosinc.com \
--cc=ebiederm@xmission.com \
--cc=gary@garyguo.net \
--cc=hpa@zytor.com \
--cc=jannh@google.com \
--cc=kees@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-mm@kvack.org \
--cc=lorenzo.stoakes@oracle.com \
--cc=mingo@redhat.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=ojeda@kernel.org \
--cc=oleg@redhat.com \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=peterz@infradead.org \
--cc=robh@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=tglx@linutronix.de \
--cc=vbabka@suse.cz \
--cc=x86@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox