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: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: [PATCH v16 14/27] riscv: Implements arch agnostic indirect branch tracking prctls
Date: Sat, 24 May 2025 07:06:32 +0800 [thread overview]
Message-ID: <202505240659.OGVR0xHg-lkp@intel.com> (raw)
In-Reply-To: <20250522-v5_user_cfi_series-v16-14-64f61a35eee7@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/20250523-133343
base: 4181f8ad7a1061efed0219951d608d4988302af7
patch link: https://lore.kernel.org/r/20250522-v5_user_cfi_series-v16-14-64f61a35eee7%40rivosinc.com
patch subject: [PATCH v16 14/27] riscv: Implements arch agnostic indirect branch tracking prctls
config: riscv-randconfig-001-20250524 (https://download.01.org/0day-ci/archive/20250524/202505240659.OGVR0xHg-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250524/202505240659.OGVR0xHg-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/202505240659.OGVR0xHg-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/riscv/kernel/entry.S:172:9: error: immediate must be an integer in the range [-2147483648, 4294967295]
li t0, 0x00040000 | (0x00006000 | 0x00000600) | 0x020000000000
^
vim +172 arch/riscv/kernel/entry.S
155
156 .Lsave_context:
157 REG_S sp, TASK_TI_USER_SP(tp)
158 REG_L sp, TASK_TI_KERNEL_SP(tp)
159 addi sp, sp, -(PT_SIZE_ON_STACK)
160 REG_S x1, PT_RA(sp)
161 REG_S x3, PT_GP(sp)
162 REG_S x5, PT_T0(sp)
163 save_from_x6_to_x31
164
165 /*
166 * Disable user-mode memory access as it should only be set in the
167 * actual user copy routines.
168 *
169 * Disable the FPU/Vector to detect illegal usage of floating point
170 * or vector in kernel space.
171 */
> 172 li t0, SR_SUM | SR_FS_VS | SR_ELP
173
174 REG_L s0, TASK_TI_USER_SP(tp)
175 csrrc s1, CSR_STATUS, t0
176 save_userssp s2, s1
177 csrr s2, CSR_EPC
178 csrr s3, CSR_TVAL
179 csrr s4, CSR_CAUSE
180 csrr s5, CSR_SCRATCH
181 REG_S s0, PT_SP(sp)
182 REG_S s1, PT_STATUS(sp)
183 REG_S s2, PT_EPC(sp)
184 REG_S s3, PT_BADADDR(sp)
185 REG_S s4, PT_CAUSE(sp)
186 REG_S s5, PT_TP(sp)
187
188 /*
189 * Set the scratch register to 0, so that if a recursive exception
190 * occurs, the exception vector knows it came from the kernel
191 */
192 csrw CSR_SCRATCH, x0
193
194 /* Load the global pointer */
195 load_global_pointer
196
197 /* Load the kernel shadow call stack pointer if coming from userspace */
198 scs_load_current_if_task_changed s5
199
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-05-23 23:06 UTC|newest]
Thread overview: 67+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-23 5:31 [PATCH v16 00/27] riscv control-flow integrity for usermode Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 01/27] mm: VM_SHADOW_STACK definition for riscv Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 02/27] dt-bindings: riscv: zicfilp and zicfiss in dt-bindings (extensions.yaml) Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 03/27] riscv: zicfiss / zicfilp enumeration Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 04/27] riscv: zicfiss / zicfilp extension csr and bit definitions Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 05/27] riscv: usercfi state for task and save/restore of CSR_SSP on trap entry/exit Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 06/27] riscv/mm : ensure PROT_WRITE leads to VM_READ | VM_WRITE Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 07/27] riscv mm: manufacture shadow stack pte Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 08/27] riscv mmu: teach pte_mkwrite to manufacture shadow stack PTEs Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 09/27] riscv mmu: write protect and shadow stack Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 10/27] riscv/mm: Implement map_shadow_stack() syscall Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 11/27] riscv/shstk: If needed allocate a new shadow stack on clone Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 12/27] riscv: Implements arch agnostic shadow stack prctls Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 13/27] prctl: arch-agnostic prctl for indirect branch tracking Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 14/27] riscv: Implements arch agnostic indirect branch tracking prctls Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 23:06 ` kernel test robot [this message]
2025-05-23 5:31 ` [PATCH v16 15/27] riscv/traps: Introduce software check exception Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 16/27] riscv: signal: abstract header saving for setup_sigcontext Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 17/27] riscv/signal: save and restore of shadow stack for signal Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 18/27] riscv/kernel: update __show_regs to print shadow stack register Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 19/27] riscv/ptrace: riscv cfi status and state via ptrace and in core files Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 20/27] riscv/hwprobe: zicfilp / zicfiss enumeration in hwprobe Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 21/27] riscv: kernel command line option to opt out of user cfi Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 22/27] riscv: enable kernel access to shadow stack memory via FWFT sbi call Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 23/27] arch/riscv: compile vdso with landing pad Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 6:01 ` Deepak Gupta
2025-05-23 6:01 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 24/27] riscv: create a config for shadow stack and landing pad instr support Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 25/27] riscv: Documentation for landing pad / indirect branch tracking Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 26/27] riscv: Documentation for shadow stack on riscv Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 5:31 ` [PATCH v16 27/27] kselftest/riscv: kselftest for user mode cfi Deepak Gupta
2025-05-23 5:31 ` Deepak Gupta
2025-05-23 8:22 ` Charlie Jenkins
2025-05-23 8:22 ` Charlie Jenkins
2025-05-23 8:34 ` Charlie Jenkins
2025-05-23 8:34 ` Charlie Jenkins
2025-05-23 17:42 ` Charlie Jenkins
2025-05-23 17:42 ` Charlie Jenkins
2025-05-23 5:42 ` [PATCH v16 00/27] riscv control-flow integrity for usermode Deepak Gupta
2025-05-23 5:42 ` 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=202505240659.OGVR0xHg-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=llvm@lists.linux.dev \
--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 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.