tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/fpu
head: fb58f76671de512da1ee76a77977eb6edb4d0071
commit: 8388f5d27cf18ab67cb40c4ff289c5ab3f721369 [5/9] jump_label, x86: Improve error when
we fail expected text
config: x86_64-randconfig-a003-20210309 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
cd9a69289c7825d54450cb6829fef2c8e0f1963a)
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/peterz/queue.git/commit/?...
git remote add peterz-queue
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue x86/fpu
git checkout 8388f5d27cf18ab67cb40c4ff289c5ab3f721369
# 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 >>):
> arch/x86/kernel/jump_label.c:42:31: error: use of undeclared
identifier 'init'
addr, addr, addr,
expect, init, type);
^
1 error generated.
vim +/init +42 arch/x86/kernel/jump_label.c
18
19 static const void *
20 __jump_label_set_jump_code(struct jump_entry *entry, enum jump_label_type type)
21 {
22 const void *expect, *code;
23 const void *addr, *dest;
24
25 addr = (void *)jump_entry_code(entry);
26 dest = (void *)jump_entry_target(entry);
27
28 code = text_gen_insn(JMP32_INSN_OPCODE, addr, dest);
29
30 if (type == JUMP_LABEL_JMP)
31 expect = x86_nops[5];
32 else
33 expect = code;
34
35 if (memcmp(addr, expect, JUMP_LABEL_NOP_SIZE)) {
36 /*
37 * The location is not an op that we were expecting.
38 * Something went wrong. Crash the box, as something could be
39 * corrupting the kernel.
40 */
41 pr_crit("jump_label: Fatal kernel bug, unexpected op at %pS [%p] (%5ph !=
%5ph)) init:%d type:%d\n",
42 addr, addr, addr, expect, init, type);
43 BUG();
44 }
45
46 if (type == JUMP_LABEL_NOP)
47 code = x86_nops[5];
48
49 return code;
50 }
51
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org