Thread (52 messages) 52 messages, 6 authors, 2024-10-29

Re: [PATCH v6 33/33] kselftest/riscv: kselftest for user mode cfi

From: Zong Li <hidden>
Date: 2024-10-11 11:43:42
Also in: linux-arch, linux-devicetree, linux-fsdevel, linux-kselftest, linux-mm, linux-riscv, lkml

On Fri, Oct 11, 2024 at 6:18 PM Mark Brown [off-list ref] wrote:
On Fri, Oct 11, 2024 at 01:44:55PM +0800, Zong Li wrote:
quoted
On Wed, Oct 9, 2024 at 7:46 AM Deepak Gupta [off-list ref] wrote:
quoted
quoted
+       if (si->si_code == SEGV_CPERR) {
quoted
Hi Deepak,
I got some errors when building this test, I suppose they should be
fixed in the next version.
quoted
riscv_cfi_test.c: In function 'sigsegv_handler':
riscv_cfi_test.c:17:28: error: 'SEGV_CPERR' undeclared (first use in
this function); did you mean 'SEGV_ACCERR'?
   17 |         if (si->si_code == SEGV_CPERR) {
      |                            ^~~~~~~~~~
      |                            SEGV_ACCERR
Did you run "make headers_install" prior to building kselftest to get
the current kernel's headers available for userspace builds?
Yes, I have run "make header" and "make header_install" before
building the kselftest. This error happens when I cross compiled it,
perhaps I can help to check if it is missing some header files or
header search path.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help