tree:
https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/kentry
head: b0d7a5e5a9b11a6ddb50b90e31877e3cb1f93362
commit: 9fd837e7e6824c280b33954f851de6e88bf97730 [9/10] kentry: Check that syscall entries
and syscall exits match
config: x86_64-randconfig-a012-20210321 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
14696baaf4c43fe53f738bc292bbe169eed93d5d)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/commit/?id...
git remote add luto
https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git
git fetch --no-tags luto x86/kentry
git checkout 9fd837e7e6824c280b33954f851de6e88bf97730
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> kernel/entry/common.c:151:12: error: no member named
'kentry_in_syscall' in 'struct task_struct'
current->kentry_in_syscall = true;
~~~~~~~ ^
1 error generated.
vim +151 kernel/entry/common.c
141
142 long kentry_syscall_begin(struct pt_regs *regs, long syscall)
143 {
144 unsigned long work;
145
146 if (IS_ENABLED(CONFIG_DEBUG_ENTRY)) {
147 DEBUG_ENTRY_WARN_ONCE(
148 current->kentry_in_syscall,
149 "entering syscall %ld while already in a syscall",
150 syscall);
151 current->kentry_in_syscall = true;
152 }
153
154 CT_WARN_ON(ct_state() != CONTEXT_KERNEL);
155 lockdep_assert_irqs_enabled();
156
157 work = READ_ONCE(current_thread_info()->syscall_work);
158
159 if (work & SYSCALL_WORK_ENTER)
160 syscall = syscall_trace_enter(regs, syscall, work);
161
162 return syscall;
163 }
164
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org