[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202404271128.ERrCledH-lkp@intel.com>
Date: Tue, 7 May 2024 11:17:25 +0800
From: kernel test robot <yujie.liu@...el.com>
To: Aruna Ramakrishna <aruna.ramakrishna@...cle.com>,
<linux-kernel@...r.kernel.org>
CC: <oe-kbuild-all@...ts.linux.dev>, <x86@...nel.org>,
<dave.hansen@...ux.intel.com>, <tglx@...utronix.de>, <mingo@...nel.org>,
<keith.lucas@...cle.com>, <aruna.ramakrishna@...cle.com>
Subject: Re: [PATCH v3 4/4] selftests/mm: Add new testcases for pkeys
Hi Aruna,
kernel test robot noticed the following build errors:
[auto build test ERROR on tip/x86/core]
[also build test ERROR on akpm-mm/mm-everything tip/master linus/master v6.9-rc5]
[cannot apply to tip/auto-latest next-20240426]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Aruna-Ramakrishna/x86-pkeys-Signal-handling-function-interface-changes-to-accept-PKRU-as-a-parameter/20240426-020800
base: tip/x86/core
patch link: https://lore.kernel.org/r/20240425180542.1042933-5-aruna.ramakrishna%40oracle.com
patch subject: [PATCH v3 4/4] selftests/mm: Add new testcases for pkeys
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 <yujie.liu@...el.com>
| Closes: https://lore.kernel.org/r/202404271128.ERrCledH-lkp@intel.com/
All errors:
linux/tools/testing/selftests/mm$ make
..
gcc -Wall -I /root/linux/tools/testing/selftests/../../.. -isystem /root/linux/tools/testing/selftests/../../../usr/include -no-pie -m32 -mxsave pkey_sighandler_tests.c vm_util.c thp_settings.c -lrt -lpthread -lm -lrt -ldl -lm -o /root/linux/tools/testing/selftests/mm/pkey_sighandler_tests_32
pkey_sighandler_tests.c: In function 'sigsegv_handler':
pkey_sighandler_tests.c:38:23: error: the register specified for 'r10' cannot be accessed by the current target
38 | register long r10 asm("r10") = a4;
| ^~~
pkey_sighandler_tests.c:39:23: error: the register specified for 'r8' cannot be accessed by the current target
39 | register long r8 asm("r8") = a5;
| ^~
pkey_sighandler_tests.c:40:23: error: the register specified for 'r9' cannot be accessed by the current target
40 | register long r9 asm("r9") = a6;
| ^~
In function 'syscall_raw',
inlined from 'sigsegv_handler' at pkey_sighandler_tests.c:58:2:
pkey_sighandler_tests.c:41:9: error: the register 'r11' cannot be clobbered in 'asm' for the current target
41 | asm volatile ("syscall"
| ^~~
pkey_sighandler_tests.c: In function 'thread_segv_maperr_ptr':
pkey_sighandler_tests.c:38:23: error: the register specified for 'r10' cannot be accessed by the current target
38 | register long r10 asm("r10") = a4;
| ^~~
pkey_sighandler_tests.c:39:23: error: the register specified for 'r8' cannot be accessed by the current target
39 | register long r8 asm("r8") = a5;
| ^~
pkey_sighandler_tests.c:40:23: error: the register specified for 'r9' cannot be accessed by the current target
40 | register long r9 asm("r9") = a6;
| ^~
pkey_sighandler_tests.c:38:23: error: the register specified for 'r10' cannot be accessed by the current target
38 | register long r10 asm("r10") = a4;
| ^~~
pkey_sighandler_tests.c:39:23: error: the register specified for 'r8' cannot be accessed by the current target
39 | register long r8 asm("r8") = a5;
| ^~
pkey_sighandler_tests.c:40:23: error: the register specified for 'r9' cannot be accessed by the current target
40 | register long r9 asm("r9") = a6;
| ^~
In function 'syscall_raw',
inlined from 'thread_segv_maperr_ptr' at pkey_sighandler_tests.c:100:9:
pkey_sighandler_tests.c:41:9: error: the register 'r11' cannot be clobbered in 'asm' for the current target
41 | asm volatile ("syscall"
| ^~~
In function 'syscall_raw',
inlined from 'thread_segv_maperr_ptr' at pkey_sighandler_tests.c:107:2:
pkey_sighandler_tests.c:41:9: error: the register 'r11' cannot be clobbered in 'asm' for the current target
41 | asm volatile ("syscall"
| ^~~
pkey_sighandler_tests.c: In function 'test_sigsegv_handler_with_different_pkey_for_stack':
pkey_sighandler_tests.c:38:23: error: the register specified for 'r10' cannot be accessed by the current target
38 | register long r10 asm("r10") = a4;
| ^~~
pkey_sighandler_tests.c:39:23: error: the register specified for 'r8' cannot be accessed by the current target
39 | register long r8 asm("r8") = a5;
| ^~
pkey_sighandler_tests.c:40:23: error: the register specified for 'r9' cannot be accessed by the current target
40 | register long r9 asm("r9") = a6;
| ^~
pkey_sighandler_tests.c:38:23: error: the register specified for 'r10' cannot be accessed by the current target
38 | register long r10 asm("r10") = a4;
| ^~~
pkey_sighandler_tests.c:39:23: error: the register specified for 'r8' cannot be accessed by the current target
39 | register long r8 asm("r8") = a5;
| ^~
pkey_sighandler_tests.c:40:23: error: the register specified for 'r9' cannot be accessed by the current target
40 | register long r9 asm("r9") = a6;
| ^~
In function 'syscall_raw',
inlined from 'test_sigsegv_handler_with_different_pkey_for_stack' at pkey_sighandler_tests.c:233:13:
pkey_sighandler_tests.c:41:9: error: the register 'r11' cannot be clobbered in 'asm' for the current target
41 | asm volatile ("syscall"
| ^~~
In function 'syscall_raw',
inlined from 'test_sigsegv_handler_with_different_pkey_for_stack' at pkey_sighandler_tests.c:247:3:
pkey_sighandler_tests.c:41:9: error: the register 'r11' cannot be clobbered in 'asm' for the current target
41 | asm volatile ("syscall"
| ^~~
make: *** [Makefile:146: /root/linux/tools/testing/selftests/mm/pkey_sighandler_tests_32] Error 1
linux/tools/testing/selftests/mm$ make LLVM=1
..
clang --target=x86_64-linux-gnu -fintegrated-as -Wall -I /root/linux/tools/testing/selftests/../../.. -isystem /root/linux/tools/testing/selftests/../../../usr/include -no-pie -m32 -mxsave pkey_sighandler_tests.c vm_util.c thp_settings.c -lrt -lpthread -lm -lrt -ldl -lm -o /root/linux/tools/testing/selftests/mm/pkey_sighandler_tests_32
pkey_sighandler_tests.c:41:16: error: couldn't allocate input reg for constraint '{r10}'
41 | asm volatile ("syscall"
| ^
pkey_sighandler_tests.c:41:16: error: couldn't allocate input reg for constraint '{r10}'
pkey_sighandler_tests.c:41:16: error: couldn't allocate input reg for constraint '{r10}'
pkey_sighandler_tests.c:41:16: error: couldn't allocate input reg for constraint '{r10}'
pkey_sighandler_tests.c:41:16: error: couldn't allocate input reg for constraint '{r10}'
5 errors generated.
make: *** [Makefile:146: /root/linux/tools/testing/selftests/mm/pkey_sighandler_tests_32] Error 1
vim +41 tools/testing/selftests/mm/pkey_sighandler_tests.c
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 33
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 34 static inline __attribute__((always_inline)) long
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 35 syscall_raw(long n, long a1, long a2, long a3, long a4, long a5, long a6)
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 36 {
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 37 unsigned long ret;
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 38 register long r10 asm("r10") = a4;
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 39 register long r8 asm("r8") = a5;
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 40 register long r9 asm("r9") = a6;
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 @41 asm volatile ("syscall"
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 42 : "=a"(ret)
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 43 : "a"(n), "D"(a1), "S"(a2), "d"(a3), "r"(r10), "r"(r8), "r"(r9)
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 44 : "rcx", "r11", "memory");
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 45 return ret;
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 46 }
6b81215d7e8a34 Aruna Ramakrishna 2024-04-25 47
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists